/* ============================================================
   DESATASCOS MOLINA DE SEGURA 24 — Sistema CSS Base
   "Modelo Molina" · Basado en arquitectura Hidraxis v2
   Teléfono: 644 800 525
   ============================================================ */

/* ─────────────────────────────────────────
   1. GOOGLE FONTS IMPORT
   ───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');


/* ─────────────────────────────────────────
   2. TOKENS DE MARCA — Variables CSS
   ───────────────────────────────────────── */
:root {

  /* Paleta Principal */
  --color-primary:      #001E50;   /* Azul marino profundo — confianza */
  --color-primary-dark: #001035;   /* Azul hover */
  --color-primary-light:#E8EDF7;   /* Azul muy claro para fondos sutiles */

  --color-accent:       #D42B2B;   /* Rojo urgencia — acento dominante */
  --color-accent-dark:  #B01E1E;   /* Rojo hover */
  --color-accent-light: #FDEAEA;   /* Rojo muy claro para alertas/badges */

  /* Grises del sistema */
  --color-dark:         #0D0F14;   /* Texto principal */
  --color-gray-700:     #2D3748;   /* Texto secundario */
  --color-gray-500:     #718096;   /* Texto muted */
  --color-gray-300:     #CBD5E0;   /* Bordes */
  --color-gray-100:     #F4F6FA;   /* Fondos alternativos */
  --color-white:        #FFFFFF;

  /* Layout Boxed — Modelo Molina */
  --color-frame:        #DDE2EA;   /* Marco exterior pantallas grandes */
  --color-bg-alt:       #F4F6FA;   /* Fondo secciones alternas */

  /* Tipografías */
  --font-display:       'Barlow Condensed', sans-serif;  /* H1–H3, badges */
  --font-body:          'Inter', sans-serif;             /* Párrafos, UI */

  /* Escala tipográfica */
  --text-xs:    0.75rem;    /*  12px */
  --text-sm:    0.875rem;   /*  14px */
  --text-base:  1rem;       /*  16px */
  --text-lg:    1.125rem;   /*  18px */
  --text-xl:    1.25rem;    /*  20px */
  --text-2xl:   1.5rem;     /*  24px */
  --text-3xl:   1.875rem;   /*  30px */
  --text-4xl:   2.25rem;    /*  36px */
  --text-5xl:   3rem;       /*  48px */
  --text-6xl:   3.75rem;    /*  60px */

  /* Espaciado de secciones */
  --section-gap:  6rem;     /* 96px — "aire premium" entre secciones */
  --section-gap-sm: 3rem;   /* 48px — móvil */

  /* Radios */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-pill:999px;

  /* Sombras neutras multicapa (sin color de marca) */
  --shadow-sm:      0 2px 8px rgba(0,0,0,.05);
  --shadow-premium: 0 12px 32px rgba(0,0,0,.06), 0 4px 8px rgba(0,0,0,.04);
  --shadow-hover:   0 20px 48px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.06);
  --shadow-card:    0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);

  /* Transiciones */
  --transition-fast:   0.15s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.5s ease;

  /* Contenedor máximo */
  --container-max:     1440px;
  --container-inner:   1200px;
  --container-narrow:  860px;

  /* Z-index */
  --z-nav:    100;
  --z-modal:  200;
  --z-toast:  300;
}


/* ─────────────────────────────────────────
   3. RESET + BASE
   ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--color-frame);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--color-white);
  box-shadow: 0 0 60px rgba(0,0,0,.12);
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}


/* ─────────────────────────────────────────
   4. TIPOGRAFÍA — Escala de Headings
   ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); font-weight: 800; }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: var(--text-xl); font-weight: 600; }

p {
  max-width: 68ch;
  color: var(--color-gray-700);
  line-height: 1.7;
}

p.lead {
  font-size: var(--text-lg);
  color: var(--color-gray-700);
}

strong { font-weight: 700; color: var(--color-primary); }

/* Acento de color en textos */
.text-accent  { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-gray-500); }


/* ─────────────────────────────────────────
   5. CONTENEDOR + LAYOUT
   ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Secciones con padding vertical estándar */
.section {
  padding: var(--section-gap) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
  color: var(--color-white);
}

/* strong/em/a inside dark contexts MUST be white or accent, never primary-dark */
.section--dark strong,
.section--dark em,
.hero strong,
.hero em {
  color: var(--color-accent);
  font-weight: 700;
}

/* Links inside dark sections — prevent blue bleed */
.section--dark a:not(.btn),
.hero a:not(.btn) {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Grid genérico de 2 y 3 columnas */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}


/* ─────────────────────────────────────────
   6. BOTONES (CTAs de Conversión)
   ───────────────────────────────────────── */

/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

/* CTA Teléfono — Principal */
.btn--tel {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(212, 43, 43, .30);
}

.btn--tel:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 43, 43, .40);
}

/* CTA WhatsApp */
.btn--wa {
  background: #25D366;
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, .25);
}

.btn--wa:hover {
  background: #1EB858;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, .35);
}

/* CTA Secundario (outline) */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Botón fantasma sobre fondo oscuro */
.btn--ghost {
  background: rgba(255,255,255,.12);
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,.30);
}

.btn--ghost:hover {
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.60);
}

/* Tamaños */
.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-lg);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
}


/* ─────────────────────────────────────────
   7. BADGES Y TRUST PILLS
   ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--urgent {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  border: 1px solid rgba(212,43,43,.15);
}

.badge--trust {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(0,30,80,.10);
}

/* Trust pills — fila de confianza */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
  margin: 1.25rem 0;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.45rem 0.9rem;
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-300);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-700);
  box-shadow: var(--shadow-sm);
}


/* ─────────────────────────────────────────
   8. HERO — Sección Principal
   ───────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--color-primary);
  overflow: hidden;
  padding: 5rem 0 4rem;
}

/* Fondo decorativo con patrón sutil */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(212,43,43,.12) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__label {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(var(--text-4xl), 4.5vw, 4rem);
}

.hero h1 span {
  color: var(--color-accent);
}

.hero p.lead {
  color: rgba(255,255,255,.80);
  font-size: var(--text-lg);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

/* Card de contacto flotante en el Hero */
.hero__contact-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__contact-card h3 {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.hero__phone-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
}

.hero__phone-display strong {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}


/* ─────────────────────────────────────────
   9. TARJETAS DE SERVICIO
   ───────────────────────────────────────── */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-gray-100);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-card__icon {
  width: 72px;
  height: 72px;
  background: var(--color-accent-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: background var(--transition-base), color var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Iconos bicolor (SVG inline) — fondo claro, acento rojo */
svg.icon-bicolor path         { fill: currentColor; stroke: none; }
svg.icon-bicolor path.accent  { fill: var(--color-primary); stroke: none; }
svg.icon-bicolor circle       { fill: currentColor; stroke: none; }

/* icon-svg del sprite — hereda color del padre */
.icon-svg { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: middle; flex-shrink: 0; }

.service-card__title {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.service-card__desc {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  line-height: 1.65;
  max-width: none;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.service-card__link:hover { gap: 0.625rem; }

/* Foto en tarjetas (reemplaza iconos) */
.service-card__img {
  margin: -2.5rem -2.5rem 1.25rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  height: 180px;
}
.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.4s ease;
  display: block;
}
.service-card:hover .service-card__img img {
  transform: scale(1.04);
}


/* ─────────────────────────────────────────
   10. TARJETAS DE GARANTÍA / TRUST
   ───────────────────────────────────────── */
.trust-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-gray-100);
}

.trust-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  font-size: 1.5rem;
}

.trust-card__body h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.trust-card__body p {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  max-width: none;
}


/* ─────────────────────────────────────────
   11. NAVEGACIÓN
   ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--color-white);
  border-bottom: 1.5px solid var(--color-gray-100);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.nav__logo span { color: var(--color-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-700);
  transition: color var(--transition-fast);
}

.nav__link:hover { color: var(--color-primary); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburguesa mobile */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}

.nav__burger span {
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}


/* ── NAV DROPDOWN (Servicios / Zonas) ──────────────── */
.nav__item { position: relative; list-style: none; }
.nav__item > .nav__link--has-child {
  cursor: pointer;
  display: flex; align-items: center; gap: .3rem;
}
.nav__item > .nav__link--has-child::after {
  content: '▾';
  font-size: .75em;
  transition: transform .2s;
}
.nav__item:hover > .nav__link--has-child::after,
.nav__item.open > .nav__link--has-child::after {
  transform: rotate(-180deg);
}
.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  min-width: 220px;
  padding: .5rem;
  z-index: 200;
  flex-direction: column;
}
.nav__item:hover .nav__dropdown,
.nav__item.open .nav__dropdown {
  display: flex;
}
.nav__dropdown a {
  display: block;
  padding: .55rem 1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav__dropdown a:hover {
  background: var(--color-primary-light);
  color: var(--color-accent);
}
@media (max-width: 900px) {
  .nav__dropdown { position: static; transform: none; box-shadow: none;
    border: none; border-top: 1px solid var(--color-gray-100);
    border-radius: 0; min-width: auto; padding: 0 0 .5rem 1rem; }
}

/* ── Stats Bar (confianza) ──────────────────────────── */
.stats-bar {
  background: var(--color-accent);
  padding: 1rem 0;
}
.stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-white);
}
.stat-item__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
}
.stat-item__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: .85;
  max-width: 9ch;
  line-height: 1.3;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.25);
}

/* ── Breadcrumb ───────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: .375rem; padding: .75rem 0; font-size: var(--text-sm); color: var(--color-gray-500); list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: .375rem; color: var(--color-gray-300); }
.breadcrumb a { color: var(--color-accent); font-weight: 600; }

/* ─────────────────────────────────────────
   12. FOOTER
   ───────────────────────────────────────── */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.70);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.footer__brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.60);
  max-width: 34ch;
}

.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent);
}

.footer__col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.40);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
  transition: color var(--transition-fast);
}

.footer__links a:hover { color: var(--color-white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
  max-width: none;
}


/* ─────────────────────────────────────────
   13. SECCIÓN FAQ
   ───────────────────────────────────────── */
.faq-item {
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--color-gray-100);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--text-base);
  transition: background var(--transition-fast);
}

.faq-item__q:hover { background: var(--color-primary-light); }

.faq-item__q .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.open .faq-item__q .icon { transform: rotate(45deg); }

.faq-item__a {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  line-height: 1.75;
}

.faq-item.open .faq-item__a { display: block; }


/* ─────────────────────────────────────────
   14. BARRA FLOTANTE DE LLAMADA (Mobile)
   ───────────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-max);
  z-index: var(--z-nav);
  background: var(--color-white);
  border-top: 1.5px solid var(--color-gray-100);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding: 0.75rem 1.25rem;
  gap: 0.75rem;
  align-items: center;
}

.sticky-cta a {
  flex: 1;
  text-align: center;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--text-sm);
}


/* ─────────────────────────────────────────
   15. UTILIDADES
   ───────────────────────────────────────── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1        { gap: 0.25rem; }
.gap-2        { gap: 0.5rem; }
.gap-3        { gap: 0.75rem; }
.gap-4        { gap: 1rem; }
.gap-6        { gap: 1.5rem; }
.gap-8        { gap: 2rem; }

.mt-auto      { margin-top: auto; }
.mb-1         { margin-bottom: 0.25rem; }
.mb-2         { margin-bottom: 0.5rem; }
.mb-4         { margin-bottom: 1rem; }
.mb-6         { margin-bottom: 1.5rem; }
.mb-8         { margin-bottom: 2rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.divider {
  border: none;
  border-top: 1.5px solid var(--color-gray-100);
  margin: 0;
}


/* ─────────────────────────────────────────
   16. SCHEMA.org — Datos Estructurados
   (JSON-LD a inyectar en <head> de cada página)

   COPIAR ESTE BLOQUE EN CADA PÁGINA HTML
   ───────────────────────────────────────── 

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Desatascos Molina de Segura 24",
  "telephone": "+34644800525",
  "openingHours": "Mo-Su 00:00-23:59",
  "address": {
    "@type": "PostalAddress",
    "addressLocality": "Molina de Segura",
    "addressRegion": "Murcia",
    "addressCountry": "ES"
  },
  "url": "https://TU-DOMINIO.es"
}
</script>

*/


/* ─────────────────────────────────────────
   17. RESPONSIVE — Breakpoints
   ───────────────────────────────────────── */

/* Tablet grande (< 1200px) */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr 360px; }
}

/* Tablet (< 900px) */
@media (max-width: 900px) {
  :root {
    --section-gap: var(--section-gap-sm);
  }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__contact-card { display: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta .btn--outline { display: none; }
}

/* Móvil (< 600px) */
@media (max-width: 600px) {
  body { font-size: var(--text-sm); }

  .container { padding: 0 1rem; }

  .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .trust-pills { gap: 0.5rem; }

  .sticky-cta { display: flex; }
}

/* ─────────────────────────────────────────
   18. ANIMACIONES
   ───────────────────────────────────────── */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(212,43,43,.40); }
  70%  { box-shadow: 0 0 0 12px rgba(212,43,43,.00); }
  100% { box-shadow: 0 0 0 0 rgba(212,43,43,.00); }
}

/* Pulso de urgencia en botón de teléfono */
.btn--tel.pulse {
  animation: pulse-ring 2s infinite;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fade-up 0.6s ease both;
}

/* Stagger de elementos hijos */
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .10s; }
.stagger > *:nth-child(3) { animation-delay: .15s; }
.stagger > *:nth-child(4) { animation-delay: .20s; }
.stagger > *:nth-child(5) { animation-delay: .25s; }
.stagger > *:nth-child(6) { animation-delay: .30s; }

/* icon-svg colour modifiers */
.icon-svg--accent  { stroke: var(--color-accent); }
.icon-svg--dark    { stroke: var(--color-primary-dark); }
.icon-svg--day     { stroke: var(--color-white); }
.icon-svg--primary { stroke: var(--color-primary); }

/* Service card icon — ensure contrast on both states */
.service-card__icon .icon-svg { stroke: currentColor; }
.service-card:hover .service-card__icon .icon-svg { stroke: var(--color-white); }

/* ─────────────────────────────────────────
   SEO ZONE CONTENT BLOCKS — Price Table
   ───────────────────────────────────────── */
.price-col {
  text-align: right;
  white-space: nowrap;
  padding: .625rem 1rem;
  color: var(--color-primary);
}

/* Price table row zebra */
table tbody tr:nth-child(odd)  { background: var(--color-white); }
table tbody tr:nth-child(even) { background: var(--color-bg-alt); }
table tbody td {
  padding: .625rem 1rem;
  border-bottom: 1px solid var(--color-gray-100);
  color: var(--color-gray-700);
  font-size: var(--text-sm);
  vertical-align: middle;
}
table tbody tr:last-child td { border-bottom: none; }

/* Zone SEO 2-col grid → single col on mobile */
@media (max-width: 768px) {
  /* Price + time block */
  .zone-seo-grid {
    grid-template-columns: 1fr !important;
  }
  /* Inline grids used in injected SEO sections */
  [style*="grid-template-columns:1fr 1fr"] {
    display: block !important;
  }
  [style*="grid-template-columns:1fr 1fr"] > div:first-child {
    margin-bottom: 2rem;
  }
}

/* ─── Stats Bar (todas las páginas) ─────────────────── */
.stats-bar {
  background: var(--color-accent);
  padding: 1rem 0;
}
.stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-white);
}
.stat-item__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
}
.stat-item__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: .85;
  max-width: 11ch;
  line-height: 1.3;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}

/* ─── KW / Localidad section grid responsive ─────────── */
.kw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.kw-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.kw-pill {
  background: white;
  border: 1.5px solid var(--color-gray-100);
  border-radius: var(--radius-pill);
  padding: .375rem .875rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: .375rem;
  white-space: nowrap;
}
.kw-pill__dot { color: var(--color-accent); }
.kw-stat-card {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  color: white;
  margin-top: 1.5rem;
}
.kw-stat-card__label { font-size: var(--text-sm); opacity: .8; margin-bottom: .25rem; }
.kw-stat-card__value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; margin: 0; line-height: 1; }
.kw-stat-card__sub { font-size: var(--text-xs); opacity: .7; margin-top: .25rem; }
.kw-mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 1rem;
}
.kw-mini-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  border: 1.5px solid var(--color-gray-100);
}
.kw-mini-card__value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--color-accent); margin: 0; }
.kw-mini-card__value--primary { color: var(--color-primary); }
.kw-mini-card__label { font-size: var(--text-xs); color: var(--color-gray-500); margin: .125rem 0 0; }

@media (max-width: 600px) {
  .stats-bar { padding: 0.875rem 0; }
  .stats-bar__inner { gap: 0; justify-content: space-around; }
  .stat-divider { display: none; }
  .stat-item--hide-mobile { display: none; }
  .kw-grid { grid-template-columns: 1fr; gap: 2rem; }
}
