/* ==========================================================================
   SeviCarga — Sistema de diseño base
   Mobile-first. CSS puro, sin frameworks. Un único archivo minificable.
   Identidad: verde bandera de Andalucía + acento ámbar en conversión.
   ========================================================================== */

/* ---------- Custom properties ---------- */
:root {
  /* Marca: paleta oficial SeviCarga — ver /img/README-marca.md.
     Contraste AA verificado con fórmula de luminancia relativa (ver
     scratchpad de la sesión): primary/white 8.04:1, secondary/white 5.36:1,
     dark/white 14.48:1, dark sobre --color-wa 7.30:1. */
  --color-primary: #0D5C3B;        /* Verde bandera oscuro — titulares, header, símbolo */
  --color-secondary: #0F7A50;      /* Verde medio — enlaces, wordmark "Carga" */
  --color-turquesa: #1C9E6B;       /* Verde brillante — olas, detalles, fondos de sección */
  --color-turquesa-claro: #8FE0BB; /* Verde menta claro — decoración sobre fondos oscuros */
  --color-accent: #F5A623;         /* Ámbar arena — SOLO botones y elementos de conversión */
  --color-accent-dark: #D98E1F;    /* Ámbar, estado hover */
  --color-dark: #06301F;           /* Verde noche — footer, fondos oscuros */
  --color-light: #EFF9F3;          /* Verde clarísimo — fondos alternos de sección */
  --color-arena: #F2E9D8;          /* Arena — fondos cálidos puntuales */

  /* Base (utilidad, fuera de la paleta de marca) */
  --color-white: #FFFFFF;
  --color-line: #D2E6E9;
  --color-body: #33474F;
  --color-muted: #5C7680; /* corregido en auditoría: #64808A daba 4.2:1 sobre blanco (falla AA); esta versión da ~4.8:1 */

  /* Utilidad */
  --color-wa: #25D366;
  --color-wa-dark: #1DA851;
  --color-danger: #B0272B;
  --color-danger-bg: #FDECEC;
  --color-danger-line: #F3C4C4;
  --color-ok: #14713F;
  --color-ok-bg: #E7F6EE;
  --color-ok-line: #B6E3C8;

  /* Tipografía: system font stack, sin fuentes externas (rendimiento) */
  --font-heading: -apple-system, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;

  /* Espaciados */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Layout */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(13, 92, 59, 0.12);
  --maxw: 1120px;
  --header-h: 66px;
  --action-bar-h: 68px;
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--action-bar-h);
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-dark); line-height: 1.15; font-weight: 700; }
/* Espacio entre párrafos consecutivos en cualquier bloque de texto (sin
   afectar la separación entre un párrafo y el elemento no-párrafo que le
   sigue, como un botón o un enlace de teléfono, que ya tienen su propio
   margen calculado). */
p + p { margin-top: var(--space-4); }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* Enlaces contextuales dentro de párrafos, listas de texto y respuestas de
   FAQ (no el menú, ni los botones .btn, ni los chips de localidad, que ya
   tienen su propio estilo): sin esto se confunden con el texto normal. */
main p a:not(.btn),
.callout-body a,
.check-list a,
.faq-answer-in a,
.cookie-banner p a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
main p a:not(.btn):hover,
.callout-body a:hover,
.check-list a:hover,
.faq-answer-in a:hover,
.cookie-banner p a:hover {
  color: var(--color-dark);
}
/* Sobre fondos oscuros (hero y banda de cierre) el enlace contextual debe
   seguir leyéndose en blanco en vez del azul marino de arriba. */
.gradient-brand p a:not(.btn) {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}
.gradient-brand p a:not(.btn):hover {
  text-decoration-color: #fff;
}

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

.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;
}

.skip-link {
  position: absolute; left: 0; top: -48px; z-index: 200;
  background: var(--color-dark); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Utilidades de layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(15, 122, 80, 0.1);
  border: 1px solid rgba(15, 122, 80, 0.22);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

section.block { padding: 44px 0; }
section.block.tint { background: var(--color-light); }

/* Degradado de marca para heros y bandas destacadas (CTA de cierre).
   Corregido en auditoría: la versión anterior terminaba en --color-turquesa,
   que con texto blanco encima solo da ~2.85:1 (falla AA). Este degradado se
   mantiene entre --color-primary y --color-dark, ambos >11:1 con blanco, así
   que el contraste es seguro en cualquier punto del degradado. */
.gradient-brand {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-dark) 100%);
  color: #fff;
}
.gradient-brand h1, .gradient-brand h2, .gradient-brand h3 { color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  padding: 15px 26px; border-radius: var(--radius); border: none;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--color-accent); color: var(--color-dark); }
.btn-call:hover { background: var(--color-accent-dark); }
/* Corregido en auditoría: texto/icono blanco sobre --color-wa daba ~1.98:1
   (falla AA de forma severa). --color-dark sobre el mismo verde da ~7.4:1. */
.btn-wa { background: var(--color-wa); color: var(--color-dark); }
.btn-wa:hover { background: var(--color-wa-dark); }
.btn-ghost { background: transparent; color: var(--color-dark); border: 2px solid var(--color-line); }
.btn-ghost:hover { border-color: var(--color-primary); }
.btn-full { width: 100%; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.link-btn {
  color: inherit; text-decoration: underline; text-underline-offset: 2px;
  font: inherit; cursor: pointer;
}

/* ==========================================================================
   Iconografía (archivos SVG en /img/icons/, insertados inline en el HTML
   para heredar color vía stroke="currentColor" — ver /img/README-marca.md)
   ========================================================================== */
.icon { width: 24px; height: 24px; flex-shrink: 0; display: block; }
.icon--lg { width: 40px; height: 40px; }
.icon--sm { width: 18px; height: 18px; }

/* ==========================================================================
   Header / navegación
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--color-line);
}
/* El fondo difuminado va en un pseudo-elemento y no directamente en .site-header:
   un backdrop-filter en el propio .site-header convertiría a este en el
   contenedor de referencia de .site-nav (que es position: fixed), y el menú
   móvil quedaría encajonado en la altura del header en vez de ocupar toda la
   pantalla al desplegarse. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(8px);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-3); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon { height: 42px; width: 42px; display: block; flex-shrink: 0; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; line-height: 1; color: var(--color-primary); white-space: nowrap; }
.brand-name-accent { color: var(--color-secondary); }

/* Botón hamburguesa (móvil) */
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  color: var(--color-dark);
}
.nav-toggle:hover { background: var(--color-light); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Nav: oculto en móvil hasta abrir, panel a pantalla completa bajo el header */
.site-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--color-white); overflow-y: auto;
  padding: var(--space-5) 20px calc(var(--action-bar-h) + var(--space-5));
  transform: translateX(100%);
  transition: transform .2s ease;
}
.site-nav.is-open { transform: translateX(0); }

.nav-list { display: flex; flex-direction: column; gap: var(--space-1); }
.nav-list > li { border-bottom: 1px solid var(--color-line); }
.nav-list > li > a,
.dropdown-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 4px; font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem;
  color: var(--color-dark); text-align: left;
}
.dropdown-toggle .chev { width: 18px; height: 18px; color: var(--color-muted); transition: transform .15s ease; flex-shrink: 0; }
.dropdown-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  display: none;
  padding: 0 0 var(--space-3) var(--space-3);
}
.dropdown.is-open { display: block; }
.dropdown li a {
  display: block; padding: 10px 4px; font-size: 0.96rem; color: var(--color-body);
}
.dropdown li a:hover { color: var(--color-primary); }

.nav-cta { margin-top: var(--space-5); }

/* ---------- Desktop ----------
   960px y no 860px: con las 5 entradas del menú + el botón "Pide Presupuesto"
   en una sola línea, el menú necesita ~915px reales para no desbordar; 960px
   deja margen de sobra. Debe coincidir con el breakpoint que oculta la
   action-bar móvil más abajo, para no perder el acceso a llamar/WhatsApp en
   la franja intermedia. */
@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static; transform: none; overflow: visible; background: transparent;
    padding: 0; display: flex; align-items: center; gap: var(--space-6);
  }

  .nav-list { flex-direction: row; align-items: center; gap: var(--space-5); }
  .nav-list > li { border-bottom: none; position: relative; }
  .nav-list > li > a,
  .dropdown-toggle { padding: 8px 2px; font-size: 0.96rem; white-space: nowrap; }
  .nav-cta { white-space: nowrap; }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: block; }

  .dropdown {
    position: absolute; top: 100%; left: 0; min-width: 260px;
    background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); padding: var(--space-2); margin-top: 8px;
  }
  .dropdown li a { border-radius: 6px; padding: 10px 12px; }
  .dropdown li a:hover { background: var(--color-light); }

  .nav-cta { margin-top: 0; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { border-bottom: 1px solid var(--color-line); background: var(--color-light); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: 10px 0; font-size: 0.85rem; color: var(--color-muted); }
.breadcrumbs li { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--color-line); }
.breadcrumbs a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumbs li[aria-current="page"] { color: var(--color-dark); font-weight: 600; }

/* ==========================================================================
   Contenido principal
   ========================================================================== */
main { min-height: 40vh; }
main .wrap { padding-top: var(--space-6); padding-bottom: var(--space-6); }
main h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: var(--space-4); }

/* ---------- Tarjetas / grids genéricos ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 620px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 24px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--color-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .ic .icon { color: var(--color-primary); }

/* Franja de color de marca arriba de cada tarjeta + rotación de icono, de 3 en 3,
   para romper el blanco plano en las cuadrículas de tarjetas sin depender de fotografía */
.grid-3 .card, .grid-4 .card { border-top: 4px solid var(--color-primary); }
.grid-3 .card:nth-child(3n+1), .grid-4 .card:nth-child(3n+1) { border-top-color: var(--color-primary); }
.grid-3 .card:nth-child(3n+2), .grid-4 .card:nth-child(3n+2) { border-top-color: var(--color-secondary); }
.grid-3 .card:nth-child(3n+3), .grid-4 .card:nth-child(3n+3) { border-top-color: var(--color-accent); }
.grid-3 .card:nth-child(3n+1) .ic { background: rgba(13, 92, 59, 0.08); }
.grid-3 .card:nth-child(3n+1) .ic .icon { color: var(--color-primary); }
.grid-3 .card:nth-child(3n+2) .ic { background: rgba(15, 122, 80, 0.1); }
.grid-3 .card:nth-child(3n+2) .ic .icon { color: var(--color-secondary); }
.grid-3 .card:nth-child(3n+3) .ic { background: rgba(245, 166, 35, 0.14); }
.grid-3 .card:nth-child(3n+3) .ic .icon { color: var(--color-accent-dark); }

/* Badge "Paso N" en cabecera de tarjeta: píldora sólida en ámbar en vez del
   tono turquesa translúcido genérico, para que destaque como acento de color */
.card > .eyebrow:first-child { background: var(--color-accent); color: var(--color-dark); border-color: var(--color-accent); }

.card h3 { font-size: 1.1rem; margin-bottom: 7px; }
.card p { font-size: 0.96rem; color: var(--color-body); }
.card .price-tag { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; color: var(--color-primary); margin: 8px 0 6px; }
.card .price-tag small { font-family: var(--font-body); font-weight: 400; font-size: 0.7rem; color: var(--color-muted); display: block; }

/* ---------- Cabeceras de sección ---------- */
.section-head { max-width: 68ch; margin-bottom: var(--space-6); }
.section-head h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin-bottom: var(--space-3); }
.section-head p { color: var(--color-body); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Callout (aviso destacado + CTA dentro de una sección) ---------- */
.callout {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
  margin-top: var(--space-6); padding: var(--space-5);
  background: rgba(15, 122, 80, 0.06);
  border: 1px solid rgba(15, 122, 80, 0.2);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius);
}
.callout-icon {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  background: rgba(15, 122, 80, 0.12); color: var(--color-secondary);
  display: flex; align-items: center; justify-content: center;
}
.callout-body { flex: 1; }
.callout-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.callout-body p { font-size: 0.96rem; color: var(--color-body); }
.callout .btn { flex-shrink: 0; }
@media (min-width: 700px) {
  .callout { flex-direction: row; align-items: center; }
  .callout .btn { white-space: nowrap; }
}

/* ---------- Contenido legal (aviso legal, privacidad, cookies) ---------- */
.legal-content { max-width: 72ch; }
.legal-content h2 { font-size: 1.2rem; margin: var(--space-7) 0 var(--space-3); }
.legal-content h2:first-of-type { margin-top: var(--space-6); }
.legal-content p { margin-bottom: var(--space-4); }
.legal-content ul.check-list { margin-bottom: var(--space-4); gap: 6px; }
.legal-content a { color: var(--color-primary); text-decoration: underline; }
.legal-content table.table-clean { margin: var(--space-4) 0; }

/* ---------- Lista con check ---------- */
.check-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .check-list { grid-template-columns: repeat(2, 1fr); } }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.96rem; }
.check-list .icon { color: var(--color-secondary); flex-shrink: 0; margin-top: 2px; }

/* ---------- Tabla limpia (potencias, precios) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius); }
table.table-clean { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 0.93rem; }
table.table-clean caption { caption-side: top; text-align: left; padding: 14px 18px 0; font-size: 0.85rem; color: var(--color-muted); }
table.table-clean th, table.table-clean td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--color-line); }
table.table-clean thead th { font-family: var(--font-heading); background: var(--color-primary); color: #fff; }
table.table-clean tbody tr:last-child td { border-bottom: none; }

/* ---------- Rejilla de localidades (chips) ---------- */
.chip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .chip-grid { grid-template-columns: repeat(3, 1fr); } }
.chip {
  display: block; text-align: center; padding: 14px 10px;
  background: var(--color-white); border: 1.5px solid var(--color-line); border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem; color: var(--color-dark);
  transition: border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.zone-group + .zone-group { margin-top: var(--space-6); }
.zone-group h3 { font-size: 1rem; color: var(--color-muted); font-weight: 700; margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 52px; }
.hero-grid { align-items: start; }
/* Fondos oscuros (hero y banda de cierre, ambos .gradient-brand): el eyebrow
   turquesa translúcido por defecto no da suficiente contraste sobre el
   degradado azul marino, así que aquí se fuerza la versión clara. */
.gradient-brand .eyebrow { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.32); color: #fff; margin-bottom: var(--space-4); }
.hero-lead { font-size: 1.1rem; max-width: 54ch; margin-top: var(--space-4); opacity: 0.96; }
.hero-phone { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--space-5); font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: #fff; }
.hero-phone .icon { color: var(--color-accent); }
.hero-trust { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-6); font-size: 0.92rem; }
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust .icon { color: var(--color-turquesa-claro); flex-shrink: 0; }
.hero .form-card { color: var(--color-body); }

/* ---------- Banda CTA de cierre ---------- */
.cta-band { text-align: center; }
.cta-band .section-head { margin: 0 auto var(--space-6); text-align: center; }
.cta-band .section-head p { color: rgba(255,255,255,0.88); }
.cta-band .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: var(--space-7); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---------- Placeholder de foto (hasta disponer de fotografía real) ----------
   Ver /docs/03-listado-fotos-pendientes.md para el listado de fotos pendientes
   y las medidas de cada hueco. */
.photo-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  min-height: 200px; padding: var(--space-5);
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border: none;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.92); font-size: 0.85rem; line-height: 1.5;
  position: relative; overflow: hidden;
}
.photo-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.14) 0, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(245,166,35,0.22) 0, transparent 40%);
  pointer-events: none;
}
.photo-placeholder span { position: relative; font-weight: 600; }
.photo-placeholder .wave-divider { height: 22px; max-width: 220px; opacity: 0.7; position: relative; --wave-fill: rgba(255,255,255,0.5) !important; }
.photo-placeholder.is-loaded {
  display: block; min-height: 0; padding: 0; border: none; background: none;
  border-radius: var(--radius); overflow: hidden;
}
.photo-placeholder.is-loaded iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Fotografía real (sustituye a .photo-placeholder cuando ya hay foto) ---------- */
.photo-real { width: 100%; height: auto; display: block; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }

/* ==========================================================================
   Formulario
   ========================================================================== */
.form-card { background: var(--color-white); border: 1px solid var(--color-line); border-radius: 20px; box-shadow: var(--shadow); padding: 26px; }
.form-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.form-card p.sub { font-size: 0.94rem; color: var(--color-muted); margin-bottom: 18px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--color-dark); margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--color-dark);
  padding: 13px 14px; border: 1.5px solid var(--color-line); border-radius: 11px; background: #fff;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); }
.field textarea { resize: vertical; min-height: 86px; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--color-danger); }
.field-error { display: none; color: var(--color-danger); font-size: 0.82rem; margin-top: 6px; }
.field.has-error .field-error { display: block; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.83rem; color: var(--color-muted); margin: 6px 0 16px; }
.consent input { margin-top: 3px; flex-shrink: 0; }
.consent a { color: var(--color-primary); text-decoration: underline; }

/* Honeypot anti-spam, oculto para personas, visible para bots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-note { text-align: center; font-size: 0.82rem; color: var(--color-muted); margin-top: 12px; }
.form-note a { text-decoration: none; color: var(--color-primary); font-weight: 700; }

.form-status { font-size: 0.95rem; margin-top: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: var(--color-ok-bg); color: var(--color-ok); border: 1px solid var(--color-ok-line); }
.form-status.err { display: block; background: var(--color-danger-bg); color: var(--color-danger); border: 1px solid var(--color-danger-line); }
.form-status .btn { margin-top: 12px; }

/* ==========================================================================
   Acordeón FAQ
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--color-line); border-left: 4px solid transparent; border-radius: var(--radius-sm); background: var(--color-white); overflow: hidden; transition: border-color .15s ease; }
.faq-item:has(.faq-question[aria-expanded="true"]) { border-left-color: var(--color-accent); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  width: 100%; padding: 16px 18px; text-align: left;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--color-dark);
}
.faq-question .chev { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; transition: transform .2s ease; }
.faq-question[aria-expanded="true"] .chev { transform: rotate(180deg); }

.faq-answer { height: 0; overflow: hidden; transition: height .2s ease; }
.faq-answer-in { padding: 0 18px 16px; font-size: 0.95rem; color: var(--color-body); }

/* ==========================================================================
   Separador de ola (ola-separador.svg, insertado inline en el HTML)
   El path del SVG usa fill="currentColor": el color se fija aquí vía la
   propiedad `color`, modificable por instancia con la custom property
   --wave-fill (style="--wave-fill: var(--color-turquesa)"). Añadir
   .wave-divider--flip para voltearlo cuando remate el borde superior de una
   banda en lugar del inferior.
   ========================================================================== */
.wave-divider { display: block; width: 100%; height: 44px; color: var(--wave-fill, var(--color-light)); }
.wave-divider--flip { transform: scaleY(-1); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(165deg, var(--color-primary) 0%, var(--color-dark) 100%);
  color: #A9C4CC; padding: 0 0 26px; margin-top: 4px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding-top: 36px; padding-bottom: 30px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-heading); font-size: 1rem; margin-bottom: 12px; }
.brand-logo-footer { height: 32px; width: auto; display: block; }
.site-footer p { margin-top: 10px; max-width: 26em; font-size: 0.92rem; }
.site-footer a { color: #A9C4CC; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nap p { margin-bottom: 2px; margin-top: 8px; font-size: 0.92rem; }
.footer-nap p:first-child { margin-top: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.16); margin-top: 6px; padding-top: 18px;
  font-size: 0.82rem; display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 700px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom .link-btn { color: #A9C4CC; font-size: 0.82rem; }
.footer-bottom .link-btn:hover { color: #fff; }

/* ==========================================================================
   Flotantes / barra de acción móvil
   ========================================================================== */
.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border-top: 1px solid var(--color-line);
  height: var(--action-bar-h);
}
.action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700; text-decoration: none; font-size: 1rem; }
.action-bar svg { width: 19px; height: 19px; }
.action-bar .ab-call { background: var(--color-accent); color: var(--color-dark); }
.action-bar .ab-wa { background: var(--color-wa); color: var(--color-dark); } /* corregido en auditoría: contraste insuficiente con blanco */

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
}

/* ==========================================================================
   Banner de cookies
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--color-white); border-top: 1px solid var(--color-line); box-shadow: 0 -10px 30px rgba(13,92,59,0.14);
  padding: var(--space-4) 0 calc(var(--action-bar-h) + var(--space-4));
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-in { display: flex; flex-direction: column; gap: var(--space-4); }
.cookie-banner p { font-size: 0.88rem; color: var(--color-body); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 11px 18px; font-size: 0.9rem; }

@media (min-width: 860px) {
  .cookie-banner { padding: var(--space-4) 0; }
  .cookie-banner-in { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-banner p { max-width: 62em; }
}
