/* JL Air & Cold — estilos de la landing (v3).
   Un solo tono: la familia azul del Design System. El verde de WhatsApp es la única excepción (función, no decoración).
   Lo memorable es una sola cosa: la página es un vidrio frío que se escarcha con el scroll (DIRECTION.md, sección 10). */

:root {
  --noche: #050F2E;      /* azul noche: hero, franja y pie */
  --navy-900: #071B4D;
  --navy-700: #0A3A8C;
  --blue-500: #0B6FE0;
  --azure-400: #0D9CF1;
  --azure-200: #9ED8FB;  /* texto secundario sobre azul noche */
  --ice-100: #EAF4FD;
  --ice-50: #F5FAFE;
  --surface: #FFFFFF;
  --ink: #071B4D;
  --ink-muted: #4A5B78;
  --silver-300: #C9D3E0;
  --whatsapp: #0F7D41;
  --on-whatsapp: #FFFFFF;
  --on-brand: #FFFFFF;
  --danger: #C62828;

  --font-display: "Barlow Semi Condensed", "JL Display Fallback", "Arial Narrow", system-ui, sans-serif;
  --font-sans: "Barlow", "JL Sans Fallback", system-ui, -apple-system, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  /* Profundidad: sombras azuladas en dos capas (contacto + ambiente), nunca gris neutro. */
  --sombra-1: 0 1px 2px rgba(7, 27, 77, 0.08), 0 4px 14px rgba(7, 27, 77, 0.06);
  --sombra-2: 0 2px 4px rgba(5, 15, 46, 0.14), 0 18px 48px rgba(5, 15, 46, 0.32);
  --shadow-float: 0 6px 20px rgba(7, 27, 77, 0.18);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --g: 16px;
  --wrap: 1160px;
  --header-h: 64px;
  --funde: 120px; /* alto de la disolución azul noche → hielo (arriba en el hero, abajo en el pie) */
  color-scheme: light;
}
@media (min-width: 768px) { :root { --g: 24px; } }
@media (min-width: 1200px) { :root { --g: 32px; --funde: 200px; } }
@media (min-width: 768px) and (max-width: 1199px) { :root { --funde: 160px; } }

@font-face {
  font-family: "JL Display Fallback";
  src: local("Arial Narrow Bold Italic"), local("ArialNarrow-BoldItalic"), local("Liberation Sans Narrow Bold Italic"), local("Arial Bold Italic"), local("Arial-BoldItalicMT"), local("Liberation Sans Bold Italic"), local("Roboto Bold Italic");
  font-style: italic; font-weight: 700 800;
  size-adjust: 85%; ascent-override: 106%; descent-override: 28%; line-gap-override: 0%;
}
@font-face {
  font-family: "JL Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Roboto");
  size-adjust: 92%; ascent-override: 108%; descent-override: 22%; line-gap-override: 0%;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--noche); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--navy-700) var(--ice-100); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ice-100); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--navy-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { a:hover { color: var(--navy-900); } }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--azure-400); color: var(--navy-900); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-style: italic; color: var(--navy-700); text-wrap: balance; }
h2 { font-weight: 800; font-size: 30px; line-height: 32px; letter-spacing: -0.005em; }
h3 { font-weight: 700; font-size: 21px; line-height: 24px; }
@media (min-width: 960px) { h2 { font-size: 42px; line-height: 44px; } h3 { font-size: 23px; line-height: 26px; } }

/* El contenido va por encima de la escarcha fija (z-index 1); los fondos de las secciones, por debajo. */
.wrap { position: relative; z-index: 2; width: 100%; max-width: calc(var(--wrap) + 2 * var(--g)); margin-inline: auto; padding-inline: var(--g); }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: var(--g); top: -100px; z-index: 50; padding: 12px 16px; background: var(--navy-900); color: var(--on-brand); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.saltar:focus { top: 8px; }
.saltar:hover, .saltar:focus { color: var(--on-brand); }

.seccion { padding-block: 44px; scroll-margin-top: var(--header-h); }
@media (min-width: 960px) { .seccion { padding-block: 80px; } }
.seccion--hielo { background: var(--ice-100); }
.seccion--blanca { background: var(--surface); }
.seccion__cabeza { display: grid; gap: 10px; max-width: 720px; margin-bottom: 24px; }
@media (min-width: 960px) { .seccion__cabeza { margin-bottom: 40px; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 22px;
  border: 2px solid transparent; border-radius: var(--radius-md);
  font: 600 18px/24px var(--font-sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn svg { flex: none; width: 20px; height: 20px; }
.btn:active { transform: scale(0.97); }
.btn--wa { background: var(--whatsapp); color: var(--on-whatsapp); }
.btn--tel { background: var(--navy-700); color: var(--on-brand); }
/* Sobre azul noche: botón de contorno claro. */
.btn--claro { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.7); color: var(--on-brand); }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 16px; line-height: 20px; }
.btn--sm svg { width: 18px; height: 18px; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }
@media (hover: hover) and (pointer: fine) {
  .btn--wa:hover, .flotante:hover { background: color-mix(in srgb, var(--whatsapp) 86%, var(--navy-900)); color: var(--on-whatsapp); }
  .btn--tel:hover { background: var(--navy-900); color: var(--on-brand); }
  .btn--claro:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--on-brand); color: var(--on-brand); }
}
.enlace-fuerte { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.enlace-wa { color: var(--whatsapp); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .enlace-wa:hover { color: color-mix(in srgb, var(--whatsapp) 80%, var(--navy-900)); } }

.lista-aire { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lista-aire li { position: relative; padding-left: 26px; }
.lista-aire li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 15px; height: 5px; border-radius: var(--radius-pill); background: var(--blue-500); transform: skewX(-12deg); }

/* ---------- Termómetro: pantalla de split con dígitos de 7 segmentos (decorativo) ---------- */
.d7 { flex: none; overflow: visible; }
.d7 path { fill: currentColor; opacity: 0.13; }
.d7[data-n="0"] :is(.a, .b, .c, .d, .e, .f),
.d7[data-n="1"] :is(.b, .c),
.d7[data-n="2"] :is(.a, .b, .d, .e, .g),
.d7[data-n="3"] :is(.a, .b, .c, .d, .g),
.d7[data-n="4"] :is(.b, .c, .f, .g),
.d7[data-n="5"] :is(.a, .c, .d, .f, .g),
.d7[data-n="6"] :is(.a, .c, .d, .e, .f, .g),
.d7[data-n="7"] :is(.a, .b, .c),
.d7[data-n="8"] :is(.a, .b, .c, .d, .e, .f, .g),
.d7[data-n="9"] :is(.a, .b, .c, .d, .f, .g) { opacity: 1; }
.termo__num { display: flex; transform: skewX(-8deg); }

/* El display va dentro del panel del formulario: el panel es la cara de un aire acondicionado. */
.termo {
  --n: 14;
  display: grid; grid-template-columns: auto auto; align-items: start; gap: 2px 8px;
  padding: 9px 11px 10px; border-radius: 10px;
  background: var(--noche); color: var(--azure-400);
  box-shadow: inset 0 0 0 1px rgba(158, 216, 251, 0.18), inset 0 8px 18px rgba(13, 156, 241, 0.12);
}
.termo__num { gap: 4px; }
.termo .d7 { width: 22px; height: 40px; }
.termo__lado { display: grid; justify-items: start; gap: 6px; }
.termo__unidad { font: italic 700 15px/15px var(--font-display); }
.termo__modo { width: 14px; height: 14px; }
.termo__barra { grid-column: 1 / -1; display: flex; gap: 2px; margin-top: 6px; }
.termo__barra i { flex: 1; height: 4px; border-radius: 1px; background: currentColor; transform: skewX(-12deg); opacity: clamp(0.16, (var(--n) - var(--i) + 1) * 9, 1); }

.termo-mini {
  display: none; align-items: center; gap: 1px;
  width: 52px; height: 32px; padding: 0 7px; border-radius: 8px;
  background: var(--noche); color: var(--azure-400);
  transition: opacity 200ms var(--ease-out);
}
.termo-mini .termo__num { gap: 2px; }
.termo-mini .d7 { width: 12px; height: 22px; }
.termo-mini__grado { align-self: flex-start; margin-top: 2px; font: italic 700 16px/16px var(--font-display); }
@media (min-width: 388px) { .termo-mini { display: inline-flex; } }
/* La mini aparece cuando el display del panel sale de pantalla. Su espacio ya está reservado: no mueve nada. */
.termo-mini { opacity: 0; }
.termo-fuera .termo-mini { opacity: 1; }
.no-termo-io .termo-mini { opacity: 1; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 30; background: var(--surface); box-shadow: 0 1px 0 rgba(7, 27, 77, 0.08); }
.cabecera__in { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--header-h); }
.cabecera__logo { display: flex; align-items: center; min-height: 44px; flex: none; }
.cabecera__logo img { height: 24px; width: auto; }
.cabecera__der { display: flex; align-items: center; gap: 6px; }
.cabecera__llamar { padding-inline: 10px; gap: 6px; }
.cabecera__numero { display: none; }
@media (max-width: 359px) { .cabecera__logo img { height: 22px; } }
@media (min-width: 600px) { .cabecera__logo img { height: 28px; } .cabecera__der { gap: 10px; } .cabecera__llamar { padding-inline: 16px; gap: 8px; } }
@media (min-width: 960px) { .cabecera__numero { display: inline; } }

/* ---------- Hero: azul noche, oferta a la izquierda y el formulario como panel ---------- */
.hero {
  position: relative; color: var(--on-brand); isolation: isolate;
  padding-block: 28px calc(12px + var(--funde));
  scroll-margin-top: var(--header-h);
}
/* El fondo va en una capa aparte para poder disolver su borde inferior sin tocar el contenido.
   La disolución sigue la inclinación del logo (la itálica) y pasa por azules fríos, no por grises: se lee como vaho. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 82% 18%, rgba(13, 156, 241, 0.30), rgba(13, 156, 241, 0) 70%),
    radial-gradient(60% 50% at 0% 85%, rgba(11, 111, 224, 0.22), rgba(11, 111, 224, 0) 70%),
    linear-gradient(172deg, #0A2A6B 0%, var(--navy-900) 40%, var(--noche) 66%, #0A2A6B 80%, #2B67B8 90%, #8FC3EE 96%, var(--ice-100) 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--funde) * 0.55), rgba(0,0,0,0.6) calc(100% - var(--funde) * 0.25), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 calc(100% - var(--funde) * 0.55), rgba(0,0,0,0.6) calc(100% - var(--funde) * 0.25), transparent 100%);
}
/* El hero tapa la escarcha: así nunca queda detrás del texto blanco. En las secciones claras sí pasa por detrás del texto oscuro. */
.hero { z-index: 2; }
.hero__grid { display: grid; gap: 28px; }
.hero h1 { color: var(--on-brand); font-weight: 800; font-size: 38px; line-height: 40px; letter-spacing: -0.01em; }
.hero__oferta { margin-top: 16px; font: italic 700 23px/28px var(--font-display); color: var(--on-brand); max-width: 26em; }
.hero__oferta strong { font-weight: 800; color: var(--azure-200); }
.hero__sub { margin-top: 10px; font-size: 18px; line-height: 26px; color: var(--azure-200); max-width: 32em; }
.hero .acciones { margin-top: 24px; }
.aclara { font-size: 14px; line-height: 20px; }
.aclara--hero { margin-top: 12px; color: var(--azure-200); max-width: 34em; }
.aclara--pie { margin-top: 10px; color: var(--azure-200); max-width: 36em; }
.cobertura { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.cobertura__lbl { font-size: 15px; line-height: 20px; color: var(--azure-200); margin-right: 2px; }
.cobertura li:not(.cobertura__lbl) { font: italic 700 16px/20px var(--font-display); letter-spacing: 0.01em; padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid rgba(158, 216, 251, 0.45); background: rgba(158, 216, 251, 0.08); }
.cobertura li.es-aqui { background: var(--azure-400); border-color: var(--azure-400); color: var(--noche); }
@media (max-width: 559px) { .hero .acciones .btn { width: 100%; } }
@media (min-width: 960px) {
  .hero { padding-block: 64px calc(16px + var(--funde)); }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 56px; }
  .hero h1 { font-size: clamp(50px, 4.8vw, 68px); line-height: 1.02; }
  .hero__oferta { margin-top: 22px; font-size: 30px; line-height: 34px; }
  .hero__sub { margin-top: 12px; font-size: 19px; line-height: 28px; }
  .hero .acciones { margin-top: 32px; }
}

/* ---------- Panel del formulario ---------- */
.panel {
  position: relative; scroll-margin-top: calc(var(--header-h) + 12px);
  border-radius: var(--radius-lg); background: var(--surface); color: var(--ink);
  box-shadow: var(--sombra-2), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
/* La cara del aire: la rejilla de salida abajo del panel (tres ranuras). */
.panel::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 10px; height: 2px; border-radius: 2px;
  background: var(--silver-300); box-shadow: 0 -5px 0 var(--ice-100);
}
.panel__cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 0; }
.panel__titulo { font-weight: 800; font-size: 24px; line-height: 26px; color: var(--navy-700); }
@media (min-width: 400px) { .panel__cabeza { padding-inline: 20px; } }
@media (min-width: 960px) { .panel__cabeza { padding: 24px 28px 0; } .panel__titulo { font-size: 28px; line-height: 30px; } }

.form { display: grid; gap: 14px; padding: 16px 16px 28px; }
@media (min-width: 400px) { .form { padding-inline: 20px; } }
@media (min-width: 960px) { .form { padding: 20px 28px 32px; gap: 16px; } }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo label, .opciones legend { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.campo input:not([type="radio"]):not([type="checkbox"]) {
  width: 100%; min-width: 0; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--silver-300); border-radius: var(--radius-sm);
  background: var(--ice-50); color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.campo input::placeholder { color: var(--ink-muted); opacity: 1; }
.campo input:not([type="radio"]):not([type="checkbox"]):focus-visible { outline: 3px solid var(--blue-500); outline-offset: 1px; border-color: var(--navy-700); background: var(--surface); }
.campo input[aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]) { border-color: var(--danger); }
.campo__error { font-size: 14px; line-height: 20px; color: var(--danger); font-weight: 600; }
.campo__fila { display: grid; gap: 14px; }
@media (min-width: 560px) { .campo__fila { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.opciones { margin: 0; padding: 0; border: 0; min-width: 0; }
.opciones legend { padding: 0; margin-bottom: 6px; }
.opciones__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opciones--3 .opciones__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opcion {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 10px;
  border: 1px solid var(--silver-300); border-radius: var(--radius-sm); background: var(--surface);
  font-size: 16px; line-height: 20px; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.opcion input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 2px solid var(--navy-700); border-radius: 50%; background: var(--surface); cursor: pointer; }
.opcion input:checked { background: var(--navy-700); box-shadow: inset 0 0 0 3px var(--surface); }
.opcion input:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.opcion:has(input:checked) { border-color: var(--navy-700); background: var(--ice-100); }
@media (hover: hover) and (pointer: fine) { .opcion:hover { border-color: var(--navy-700); } }
.opciones[aria-invalid="true"] .opcion { border-color: var(--danger); }
.opciones .campo__error { margin-top: 6px; }
.campo--check { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.campo--check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--navy-700); cursor: pointer; }
.campo--check label { display: inline-flex; align-items: center; min-height: 44px; font-weight: 400; font-size: 14px; line-height: 20px; cursor: pointer; }
.campo--check .campo__politica { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 20px; font-weight: 600; }
.campo--check .campo__error { flex-basis: 100%; }
.campo--check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.form__trampa { display: none; }
.form__enviar { width: 100%; min-height: 54px; }
.form__enviar[disabled] { opacity: 0.7; cursor: progress; }
.form__nota { margin-top: -4px; font-size: 15px; line-height: 20px; text-align: center; color: var(--ink-muted); }
.form__estado { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--danger); }
.form__estado:empty { display: none; }

/* ---------- Cristalización: capa fija de escarcha (solo con JavaScript, ver main.js) ----------
   Encima de los fondos de las secciones y debajo del contenido (.wrap), la cabecera, el hero angosto, la franja y el pie.
   Cada lado tiene 4 capas: son las etapas de crecimiento de los mismos cristales (tools/escarcha3.py).
   main.js escribe en cada capa solo opacity y transform. */
.cristal { position: fixed; inset: var(--header-h) 0 0; z-index: 1; pointer-events: none; overflow: hidden; contain: strict; }
.cristal__capa { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.cristal i { position: absolute; display: block; background-repeat: no-repeat; }
.cristal .izq, .cristal .der { top: 0; bottom: 0; width: 72px; background-repeat: repeat-y; background-size: 72px auto; }
.cristal .izq { left: 0; }
.cristal .der { right: 0; transform: scaleX(-1); }
.cristal .esq { width: 160px; height: 160px; background-size: 100% 100%; }
.cristal .tl { left: 0; top: 0; }
.cristal .tr { right: 0; top: 0; transform: scaleX(-1); }
.cristal .bl { left: 0; bottom: 0; transform: scaleY(-1); }
.cristal .br { right: 0; bottom: 0; transform: scale(-1, -1); }
.cristal--carga .e1 .izq, .cristal--carga .e1 .der { background-image: url("../img/escarcha/tira-sm-1.webp"); }
.cristal--carga .e2 .izq, .cristal--carga .e2 .der { background-image: url("../img/escarcha/tira-sm-2.webp"); }
.cristal--carga .e3 .izq, .cristal--carga .e3 .der { background-image: url("../img/escarcha/tira-sm-3.webp"); }
.cristal--carga .e4 .izq, .cristal--carga .e4 .der { background-image: url("../img/escarcha/tira-sm-4.webp"); }
.cristal--carga .e1 .esq { background-image: url("../img/escarcha/esquina-sm-1.webp"); }
.cristal--carga .e2 .esq { background-image: url("../img/escarcha/esquina-sm-2.webp"); }
.cristal--carga .e3 .esq { background-image: url("../img/escarcha/esquina-sm-3.webp"); }
.cristal--carga .e4 .esq { background-image: url("../img/escarcha/esquina-sm-4.webp"); }
/* Desde tableta: tiras de 280 px y esquinas de 420 px. Pasan por detrás de las secciones claras (texto oscuro encima),
   nunca por detrás del hero, la franja ni el pie, que van por encima de la capa. */
@media (min-width: 960px) {
  .cristal .izq, .cristal .der { width: 280px; background-size: 280px auto; }
  .cristal .esq { width: 420px; height: 420px; }
  .cristal--carga .e1 .izq, .cristal--carga .e1 .der { background-image: url("../img/escarcha/tira-1.webp"); }
  .cristal--carga .e2 .izq, .cristal--carga .e2 .der { background-image: url("../img/escarcha/tira-2.webp"); }
  .cristal--carga .e3 .izq, .cristal--carga .e3 .der { background-image: url("../img/escarcha/tira-3.webp"); }
  .cristal--carga .e4 .izq, .cristal--carga .e4 .der { background-image: url("../img/escarcha/tira-4.webp"); }
  .cristal--carga .e1 .esq { background-image: url("../img/escarcha/esquina-1.webp"); }
  .cristal--carga .e2 .esq { background-image: url("../img/escarcha/esquina-2.webp"); }
  .cristal--carga .e3 .esq { background-image: url("../img/escarcha/esquina-3.webp"); }
  .cristal--carga .e4 .esq { background-image: url("../img/escarcha/esquina-4.webp"); }
}

/* ---------- Barra de confianza ---------- */
.confianza { background: var(--ice-100); padding-block: 4px 20px; }
.confianza__lista { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.confianza__lista li { position: relative; padding-left: 24px; font-weight: 600; font-size: 16px; line-height: 20px; color: var(--ink); }
.confianza__lista li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 14px; height: 5px; border-radius: var(--radius-pill); background: var(--blue-500); transform: skewX(-12deg); }
@media (min-width: 960px) {
  .confianza { padding-block: 8px 32px; }
  .confianza__lista { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 24px; }
}

/* ---------- Servicios ---------- */
.servicios { display: grid; gap: 12px; }
.servicio {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 20px;
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--sombra-1);
  overflow: hidden;
}
/* Cada tarjeta lleva arriba su franja de aire, con el tono de su servicio. */
.servicio::before { content: ""; position: absolute; left: 20px; top: 0; width: 64px; height: 6px; border-radius: 0 0 4px 4px; background: var(--franja, var(--navy-700)); transform: skewX(-12deg); }
.servicio--mantenimiento { --franja: var(--blue-500); }
.servicio--cuartos { --franja: var(--azure-400); }
.servicio__icono { width: 40px; height: 40px; color: var(--franja, var(--navy-700)); }
.servicio__acciones { margin-top: auto; padding-top: 4px; display: grid; }
.servicio__enlace { justify-self: start; margin-block: -6px; }
.servicio__acciones .btn { width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; }
@media (min-width: 900px) {
  .servicios { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .servicio { padding: 28px 26px 26px; }
}

/* ---------- Equipos: la franja delgada ----------
   Lamas inclinadas con las fotos. Con el mouse, la franja se desliza hacia donde se mueve el cursor
   y la foto bajo el cursor crece (efecto lupa). Con el dedo, se desliza normal. Se arma en main.js. */
.equipos { position: relative; padding-block: 44px 40px; background: var(--ice-100); scroll-margin-top: var(--header-h); }
.equipos__cabeza { display: grid; gap: 8px; margin-bottom: 20px; }
.equipos__nota { color: var(--ink-muted); }
.franja {
  --alto: 112px; --lama: 116px;
  position: relative; z-index: 2; height: var(--alto);
  /* Como la pantalla de un aire: azul noche liso, un brillo frío arriba y una sola rejilla fina abajo. */
  background: linear-gradient(180deg, #0A2152 0%, var(--noche) 55%);
  box-shadow: inset 0 1px 0 rgba(158, 216, 251, 0.28), inset 0 -1px 0 rgba(158, 216, 251, 0.10);
}
.franja::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(158, 216, 251, 0.35) 15%, rgba(158, 216, 251, 0.35) 85%, transparent);
}
.franja__ventana { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.franja__ventana::-webkit-scrollbar { display: none; }
.franja__fila { display: flex; align-items: center; gap: 18px; height: 100%; width: max-content; margin: 0; padding: 0 var(--g); list-style: none; }
.franja__item { flex: none; }
.lama {
  position: relative; display: block; width: var(--lama); height: calc(var(--alto) - 40px); padding: 0;
  border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in;
  background: var(--navy-700); transform: skewX(-12deg);
  box-shadow: 0 0 0 1px rgba(158, 216, 251, 0.18), 0 6px 16px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
}
.lama img, .lama video { position: absolute; inset: -4px -14px; width: calc(100% + 28px); height: calc(100% + 8px); max-width: none; object-fit: cover; transform: skewX(12deg); }
.lama img:not([src]) { visibility: hidden; }
.lama__play { position: absolute; right: 8px; bottom: 6px; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(5, 15, 46, 0.8); color: var(--on-brand); transform: skewX(12deg); }
.lama__play svg { width: 11px; height: 11px; }
.lama:focus-visible { outline: 3px solid var(--on-brand); outline-offset: 2px; }
@media (min-width: 960px) {
  .equipos { padding-block: 80px 64px; }
  .equipos__cabeza { margin-bottom: 28px; }
  .franja { --alto: 140px; --lama: 150px; }
  .franja__fila { gap: 26px; }
}
/* Con mouse: la franja se mueve sola (transform) y las lamas crecen como lupa. La franja deja ver lo que sobresale. */
.franja--lupa { overflow-x: clip; overflow-y: visible; margin-block: 52px 48px; }
.franja--lupa .franja__ventana { overflow: visible; touch-action: auto; }
.franja--lupa .franja__fila { will-change: transform; padding: 0; }
.franja--lupa .lama { transform-origin: center; will-change: transform; transition: box-shadow 200ms var(--ease-out); }
.franja--lupa .lama.activa { z-index: 3; box-shadow: 0 0 0 2px var(--on-brand), var(--sombra-2); }
.equipos__pie { margin-top: 24px; }

/* Visor de la galería */
.visor { width: min(calc(100vw - 32px), 1040px); max-width: none; max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: var(--radius-md); background: var(--noche); color: var(--on-brand); overflow: hidden; }
.visor::backdrop { background: rgba(5, 15, 46, 0.88); }
.visor__fig { margin: 0; display: grid; }
.visor__media { display: grid; place-items: center; background: #030A20; }
.visor__media img, .visor__media video { width: 100%; height: auto; max-height: calc(100svh - 32px - 64px); object-fit: contain; }
.visor__pie { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 10px 10px 10px 16px; }
.visor__texto { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.visor__cuenta { font-weight: 400; color: var(--azure-200); }
.visor__btn { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: var(--radius-md); background: transparent; color: var(--on-brand); cursor: pointer; }
.visor__btn svg { width: 22px; height: 22px; }
.visor__btn--ant svg { transform: scaleX(-1); }
.visor__btn:focus-visible { outline-color: var(--on-brand); }
@media (hover: hover) and (pointer: fine) { .visor__btn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--on-brand); } }
@media (prefers-reduced-motion: no-preference) {
  .visor[open] { animation: visor-entra 200ms var(--ease-out); }
  .visor[open]::backdrop { animation: velo-entra 200ms var(--ease-out); }
}
@keyframes visor-entra { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes velo-entra { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Proceso: 3 pasos unidos por una franja de aire ---------- */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: paso; position: relative; }
.paso { counter-increment: paso; position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; }
.paso::before {
  content: counter(paso); grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: var(--navy-700); color: var(--on-brand); font: italic 800 30px/1 var(--font-display); transform: skewX(-12deg);
}
.paso:nth-child(2)::before { background: var(--blue-500); }
.paso:nth-child(3)::before { background: var(--azure-400); color: var(--noche); }
.paso p { color: var(--ink); max-width: 36ch; }
@media (min-width: 900px) {
  .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .pasos::before { content: ""; position: absolute; left: 26px; right: 0; top: 24px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--navy-700), var(--blue-500), var(--azure-400) 70%, rgba(13, 156, 241, 0)); transform: skewX(-12deg); }
  .paso { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .paso::before { grid-row: auto; position: relative; z-index: 1; }
}

/* ---------- Cobertura (solo en la principal) ---------- */
.ciudades { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ciudad { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: var(--radius-md); background: var(--ice-100); }
.ciudad__nombre { font-weight: 800; font-size: 26px; line-height: 30px; }
.ciudad__nombre a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-right: 8px; }
@media (hover: hover) and (pointer: fine) { .ciudad__nombre a:hover { text-decoration: underline; } }
@media (min-width: 960px) { .ciudades { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .ciudad { padding: 16px 16px 16px 24px; } }

/* ---------- Preguntas frecuentes (todas cerradas) ---------- */
.faq { display: grid; gap: 8px; max-width: 880px; }
.faq details { border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--sombra-1); transition: background-color 200ms var(--ease-out); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 18px; cursor: pointer; list-style: none; border-radius: var(--radius-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 20px; line-height: 24px; }
.faq .mas { position: relative; flex: none; width: 16px; height: 16px; }
.faq .mas::before, .faq .mas::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; border-radius: 2px; background: var(--navy-700); transition: transform 240ms var(--ease-out), background-color 200ms var(--ease-out); }
.faq .mas::after { transform: rotate(90deg); }
.faq details[open] { background: var(--navy-700); }
.faq details[open] summary h3 { color: var(--on-brand); }
.faq details[open] .mas::before, .faq details[open] .mas::after { background: var(--on-brand); }
.faq details[open] .mas::after { transform: rotate(0deg); }
.faq .respuesta { padding: 0 18px 18px; color: var(--ink); max-width: 62ch; }
.faq details[open] .respuesta { color: var(--on-brand); }
.faq details[open] summary:focus-visible { outline-color: var(--on-brand); }
@media (min-width: 960px) {
  .faq summary { min-height: 64px; padding: 14px 24px; }
  .faq summary h3 { font-size: 22px; line-height: 26px; }
  .faq .respuesta { padding: 0 24px 22px; }
}

/* ---------- Pie: el vidrio ya congelado ---------- */
.pie {
  position: relative; overflow: clip; color: var(--on-brand);
  padding-block: calc(var(--funde) + 24px) 40px;
  /* Espejo del hero: el hielo se condensa en azul noche y termina en un solo color plano. */
  background: linear-gradient(to bottom, rgba(234, 244, 253, 0) 0, rgba(143, 195, 238, 0.6) calc(var(--funde) * 0.2), #2B67B8 calc(var(--funde) * 0.45), #0A2A6B calc(var(--funde) * 0.72), var(--noche) var(--funde), var(--noche) 100%);
}
/* Escarcha completa y quieta (sin JavaScript también): los mismos cristales de la capa que crece, en las 4 etapas.
   Ocupa solo los márgenes, así nunca queda detrás del texto blanco. */
/* ---- El final: el vidrio termina de congelarse ----
   Es la MISMA escarcha de toda la página: la capa fija (.cristal) pasa por encima del fondo del pie, así que los bordes
   laterales y las esquinas siguen sin corte desde las preguntas hasta el final.
   Lo único nuevo en el pie es el borde inferior: los mismos cristales (las 4 etapas de tools/escarcha3.py, giradas),
   que crecen desde abajo cuando llega el pie (--crece de 0% a 100%), una sola vez. */
@property --crece { syntax: "<percentage>"; inherits: true; initial-value: 100%; }
.pie__escarcha {
  position: absolute; left: 0; right: 0; bottom: 0; height: 280px; z-index: 1; pointer-events: none; --crece: 100%;
  background-repeat: repeat-x; background-position: center bottom; background-size: auto 100%;
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--crece) - 30%), transparent var(--crece));
          mask-image: linear-gradient(to top, #000 calc(var(--crece) - 30%), transparent var(--crece));
}
.hielo-carga .pie__escarcha { background-image: url("../img/escarcha/base.webp"); }
@media (max-width: 959px) {
  .pie__escarcha { height: 72px; }
  .hielo-carga .pie__escarcha { background-image: url("../img/escarcha/base-sm.webp"); }
}
@media (prefers-reduced-motion: no-preference) {
  .clima-on .pie:not(.congelado) .pie__escarcha { --crece: 0%; }
  .clima-on .pie.congelado .pie__escarcha { transition: --crece 2400ms cubic-bezier(0.3, 0.1, 0.2, 1); }
}
/* Tinte de noche: sobre el azul noche la escarcha se ve azul hielo, no blanca. Una capa "multiply" encima de la escarcha
   (y debajo del contenido) la tiñe solo dentro del pie, entrando suave por la misma disolución de arriba. */
.pie__velo {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(to bottom, rgba(150, 192, 238, 0) 0, rgba(150, 192, 238, 0) calc(var(--funde) * 0.45), #96C0EE var(--funde), #96C0EE 100%);
}
.pie .wrap { z-index: 3; }
.pie__logo { filter: drop-shadow(0 0 10px rgba(5, 15, 46, 0.95)) drop-shadow(0 0 4px rgba(5, 15, 46, 0.9)); }
/* Vidrio despejado detrás del texto: un óvalo azul noche muy difuso, para que nada de hielo baje el contraste. */
.pie__cta, .pie__cols { position: relative; isolation: isolate; }
.pie__cta::before, .pie__cols::before {
  content: ""; position: absolute; z-index: -1; inset: -28px -48px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 15, 46, 0.78) 55%, rgba(5, 15, 46, 0.4) 80%, rgba(5, 15, 46, 0) 100%);
}
.pie__in { position: relative; }
/* Cada línea de texto del pie lleva su propio vidrio limpio: un parche azul noche difuminado justo detrás.
   Así el hielo puede llegar hasta el contenido en cualquier ancho sin bajar el contraste de 4,5:1. */
.pie__lista li, .pie__linea, .pie__legal, .pie__titulo, .aclara--pie { position: relative; isolation: isolate; justify-self: start; }
.pie__lista li::before, .pie__linea::before, .pie__legal::before, .pie__titulo::before, .aclara--pie::before {
  content: ""; position: absolute; z-index: -1; inset: -6px -14px; border-radius: 14px; pointer-events: none;
  background: rgba(5, 15, 46, 0.9); filter: blur(9px);
}
.pie__in { display: grid; gap: 32px; }
.pie__cta { display: grid; gap: 16px; padding-bottom: 32px; border-bottom: 1px solid rgba(158, 216, 251, 0.2); }
.pie__titulo { font: italic 800 30px/32px var(--font-display); color: var(--on-brand); max-width: 18em; text-wrap: balance; }
.pie__cols { display: grid; gap: 20px 48px; }
.pie__logo { width: 200px; height: auto; }
.pie__linea { margin-top: 12px; max-width: 34em; color: var(--azure-200); }
.pie__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--azure-200); }
.pie__lista a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--on-brand); }
@media (hover: hover) and (pointer: fine) { .pie__lista a:hover { color: var(--azure-200); } }
.pie__legal { font-size: 14px; line-height: 20px; color: var(--azure-200); justify-self: start; }
@media (min-width: 960px) {
  .pie { padding-block: calc(var(--funde) + 40px) 48px; }
  .pie__cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .pie__titulo { font-size: 42px; line-height: 44px; }
  .pie__cols { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); align-items: start; }
}

/* ---------- Botón flotante ---------- */
.flotante {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; min-width: 136px; justify-content: center; padding: 0 20px; border-radius: var(--radius-pill);
  background: var(--whatsapp); color: var(--on-whatsapp);
  font-weight: 600; font-size: 16px; text-decoration: none;
  box-shadow: var(--shadow-float);
  transition: transform 260ms var(--ease-out), opacity 200ms var(--ease-out);
  touch-action: manipulation;
}
.flotante svg { width: 22px; height: 22px; }
.js .flotante { opacity: 0; transform: translateY(16px); pointer-events: none; }
.js .flotante.visible { opacity: 1; transform: none; pointer-events: auto; }
.hay-insignia .flotante.visible { transform: translateY(-60px); }

/* ---------- Páginas simples (gracias, política, 404) ---------- */
.simple { padding-block: 40px 96px; background: var(--surface); min-height: calc(100svh - var(--header-h)); overflow-x: clip; }
.simple__in { max-width: 720px; display: grid; gap: 20px; }
.simple h1 { font-weight: 800; font-size: 36px; line-height: 40px; }
.simple h2 { font-size: 20px; line-height: 24px; margin-top: 16px; }
.simple ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.simple__in > p, .simple__in li { max-width: 68ch; }
.simple .acciones { margin-top: 8px; align-items: center; }
.seccion__intro { font-size: 18px; line-height: 26px; color: var(--ink); }
.simple__grid { display: grid; gap: 40px; }
.simple__arte { position: relative; display: flex; align-items: center; min-height: 160px; }
.simple__arte .termo { transform: scale(2); transform-origin: left center; }
@keyframes sube { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .simple__grid .simple__in > * { animation: sube 320ms var(--ease-out) both; }
  .simple__grid .simple__in > :nth-child(2) { animation-delay: 50ms; }
  .simple__grid .simple__in > :nth-child(3) { animation-delay: 100ms; }
}
@media (min-width: 960px) {
  .simple { padding-block: 80px 120px; }
  .simple h1 { font-size: 48px; line-height: 52px; }
  .simple h2 { font-size: 22px; line-height: 26px; }
  .simple__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; min-height: calc(100svh - var(--header-h) - 200px); }
  .simple__arte { justify-content: center; }
  .simple__arte .termo { transform-origin: center; }
}
.pie--simple { padding-block: 32px; }
.pie__legal a { color: var(--on-brand); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Testimonios (se crean desde JS solo si CONFIG los activa) ---------- */
.testimonios { display: grid; gap: 8px; }
.testimonio { margin: 0; padding: 24px; border-radius: var(--radius-md); background: var(--ice-100); display: grid; gap: 12px; align-content: start; min-width: 0; }
.testimonio p { font-size: 18px; line-height: 28px; overflow-wrap: anywhere; white-space: pre-line; }
.testimonio footer { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); overflow-wrap: anywhere; }
@media (min-width: 960px) { .testimonios { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Entrada de los titulares (una sola vez) ---------- */
.aire-pendiente { opacity: 0; transform: translateY(8px); }
.aire-lista { transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .aire-pendiente { opacity: 1; transform: none; }
  .aire-lista, .btn, .flotante, .faq details, .faq .mas::before, .faq .mas::after, .opcion, .termo-mini, .campo input { transition: none; }
}

/* La sección que va antes del pie cede su margen inferior a la disolución. */
#preguntas { padding-bottom: 8px; }
@media (min-width: 960px) { #preguntas { padding-bottom: 16px; } }

/* v4.1 (12-nov): servicios con casillas (se pueden marcar varios) */
.opcion input[type="checkbox"] { border-radius: 5px; }
.opcion input[type="checkbox"]:checked { background: var(--navy-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
.opciones__nota { font-weight: 400; color: var(--ink-muted, #4A5B78); }
/* v4.1: logo del pie en texto vectorial (nítido en cualquier pantalla) */
.pie__logo--texto { width: auto; height: auto; margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -0.01em; color: #fff; filter: none; text-shadow: 0 2px 0 rgba(5, 15, 46, 0.6); }
.pie__logo--texto .pie__logo-b { color: #5CC2FF; }

/* v4.2 (12-nov): logo 2.0 real en el pie, sobre una placa del mismo tono del fondo del logo */
.pie__sello { display: inline-block; padding: 10px 14px; border-radius: 18px; background: linear-gradient(180deg, #F1F9FC 0%, #ECF5F8 100%); box-shadow: 0 0 0 1px rgba(92, 194, 255, 0.35), 0 10px 30px rgba(5, 15, 46, 0.55), 0 0 40px rgba(92, 194, 255, 0.18); }
.pie__sello img { display: block; width: 240px; height: auto; }
.pie__aviso { max-width: 60ch; opacity: 0.85; }
