/* Cerrajero 24h Alicante - Estilos comunes */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark: #0A2540;
  --orange: #FF6B00;
  --orange-hover: #e55f00;
  --white: #ffffff;
  --gray-light: #f4f7fa;
  --gray-text: #4a5568;
  --shadow: 0 4px 20px rgba(10, 37, 64, 0.12);
  --radius: 12px;
  --header-h: 64px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--blue-dark);
  line-height: 1.6;
  background: var(--white);
  padding-bottom: 80px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--blue-dark);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn--call {
  background: var(--orange);
  color: var(--white);
}

.btn--call:hover {
  background: var(--orange-hover);
}

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn--whatsapp:hover {
  background: #1fb855;
}

.btn--large {
  padding: 1rem 1.75rem;
  font-size: 1.1rem;
  width: 100%;
}

.btn--header {
  display: none;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  background: linear-gradient(160deg, var(--blue-dark) 0%, #123a5c 100%);
  color: var(--white);
  text-align: center;
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 107, 0, 0.2);
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__phone {
  display: block;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero__phone:hover {
  text-decoration: underline;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section--gray {
  background: var(--gray-light);
}

.section__title {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section__subtitle {
  text-align: center;
  color: var(--gray-text);
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}

.section--gray .service-card {
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-left: 4px solid var(--orange);
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
}

/* Zones */
.zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.zone-tag {
  background: var(--blue-dark);
  color: var(--white);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-size: 0.85rem;
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.why-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.why-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.section--gray .testimonial {
  background: var(--white);
}

.testimonial__stars {
  color: var(--orange);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.testimonial p {
  font-style: italic;
  color: var(--gray-text);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.testimonial__author {
  font-weight: 700;
  font-size: 0.85rem;
}

/* FAQ */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.section--gray .faq-item {
  border: 1px solid rgba(10, 37, 64, 0.06);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--orange);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--gray-text);
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.cta-band h2 {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.cta-band__phone {
  display: block;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.cta-band__phone:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer__phone {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  margin: 1rem 0;
}

.footer__phone:hover {
  text-decoration: underline;
}

.footer__badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
}

.footer__legal {
  opacity: 0.6;
  font-size: 0.75rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
  line-height: 1.5;
}

/* Sticky mobile call button */
.sticky-call {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.sticky-call:hover {
  background: var(--orange-hover);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 998;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

/* Tablet+ */
@media (min-width: 640px) {
  .hero__buttons {
    flex-direction: row;
    max-width: 500px;
  }

  .btn--large {
    width: auto;
    flex: 1;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .sticky-call {
    display: none;
  }

  .whatsapp-float {
    bottom: 24px;
  }

  .btn--header {
    display: inline-flex;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Accesibilidad: skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10001;
  padding: 0.75rem 1.25rem;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

/* Focus visible — sin cambiar colores del diseño */
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* CTA band button (antes inline style) */
.cta-band__btn {
  max-width: 320px;
  margin: 0 auto;
  background: var(--blue-dark);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:active,
  .whatsapp-float:hover {
    transform: none;
  }
}
