/* =========================================================================
   EVEREST AIRES Y FRÍO — style.css
   Dirección visual "Cercana": fotos grandes con borde curvo, mucho aire,
   contenido centrado y sin cajas, ondas suaves entre secciones.
   Mobile-first. Solo colores del logo y tonos derivados.
   ========================================================================= */

:root {
  /* Marca (del logo) */
  --navy: #0A2E5C;
  --blue: #02569B;
  --sky: #31B2F6;
  --ice: #C8E5F6;
  --white: #FFFFFF;
  --ink: #1F2933;

  /* Derivados */
  --navy-deep: #071F3F;              /* barra superior */
  --ice-soft: #EAF5FC;               /* foco de campos */
  --muted: #4A5866;                  /* texto secundario: AA sobre blanco y sobre ice */
  --slate: #5B7089;                  /* nombres de marcas (gris azulado) */
  --line: rgba(10, 46, 92, 0.12);    /* líneas finas */
  --line-dark: rgba(255, 255, 255, 0.16);
  --field-line: rgba(10, 46, 92, 0.45); /* borde de campos: 3:1 con el fondo blanco */
  --on-navy: rgba(255, 255, 255, 0.82);
  --wa: #25D366;                     /* botón flotante */
  --wa-btn: #15803D;                 /* botones con texto: AA con blanco */
  --wa-btn-hover: #166534;
  --danger: #B42318;

  /* Forma: fotos rectas, botones y formulario con 6px, sin sombras */
  --radius: 6px;
  /* Textura de las fotos (marcadores): rayas diagonales #C8E5F6 / #C0E0F4 */
  --tex: repeating-linear-gradient(135deg, #C8E5F6 0 16.5px, #C0E0F4 16.5px 33px);
  --shadow-float: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  --shadow-menu: 0 18px 40px rgba(10, 46, 92, 0.12);

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* Layout */
  --header-h: 68px;
  --gutter: 20px;
  --container: 1160px;
  --section-y: clamp(56px, 10vw, 136px);
  --measure: 60ch;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 80px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.15rem + 3vw, 3.25rem); line-height: 1.08; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.625rem, 1.15rem + 1.9vw, 2.5rem); line-height: 1.12; letter-spacing: -0.022em; }
h3, .h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 800; }

p { margin: 0; text-wrap: pretty; }
ul, ol.steps, ol.breadcrumb { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Ícono de línea fino en sky, sin fondo */
.icon-badge { display: inline-flex; color: var(--sky); }
.icon-badge .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.icon-badge.wa { color: var(--wa-btn); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--ice); }
.section-alt .lead, .section-alt .prose p, .section-alt p { color: #33475C; }
.section-alt .eyebrow { color: var(--blue); }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head h2 + p { margin-top: 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow .icon { width: 16px; height: 16px; }
.eyebrow-light { color: var(--ice); }

.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.section-head .lead { max-width: var(--measure); margin-inline: auto; }

.grid { display: grid; gap: 40px 32px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.split { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-top { align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }

.prose p { color: var(--muted); max-width: var(--measure); }
.prose .eyebrow, .section-alt .prose .eyebrow { color: var(--blue); }
.prose p + p { margin-top: 16px; }
.prose h2 + p { margin-top: 18px; }
.prose-center { max-width: var(--measure); margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.prose-center p { margin-inline: auto; }

/* ---------- Botones: solo dos estilos ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 20px; height: 20px; stroke-width: 2; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* Principal: WhatsApp */
.btn-wa { background: var(--wa-btn); color: var(--white); }
/* Secundario: Llamar (borde navy) */
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.design-band .btn-outline { color: var(--white); border-color: var(--white); }

@media (hover: hover) and (pointer: fine) {
  .btn-wa:hover { background: var(--wa-btn-hover); }
  .btn-outline:hover { background: var(--navy); color: var(--white); }
  .design-band .btn-outline:hover { background: var(--white); color: var(--navy); }
}
.btn.is-loading { opacity: 0.7; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row > .btn { width: 100%; } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover .icon { transform: translateX(3px); }
}

/* ---------- Header: blanco y limpio ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: block; flex: none; }
.brand picture, .footer-logo picture { display: block; }
.brand img { height: 48px; width: auto; }
@media (min-width: 768px) { .brand img { height: 60px; } }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-call { padding-inline: 12px; font-variant-numeric: tabular-nums; }
.header-call .icon, .header-quote .icon { width: 20px; height: 20px; }
.header-quote { padding-inline: 18px; }

/* Móvil y tablet (≤ 900px): el menú vive en la barra inferior; en el header solo
   quedan el logo y las acciones en versión compacta (solo ícono). */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-call, .header-quote { width: 44px; padding: 0; }
  .header-call-text, .header-quote-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
  }
}

.chev { width: 12px; height: 12px; transition: transform 200ms var(--ease-out); }

/* Escritorio (≥ 901px): menú con desplegables */
@media (min-width: 901px) {
  .nav { margin-left: 12px; }
  .nav-list { display: flex; gap: 6px; height: var(--header-h); }
  .nav-item { position: relative; display: flex; align-items: center; height: 100%; }
  .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    transition: color 180ms ease;
  }
  .has-sub > .nav-link { padding-right: 2px; }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(50% - 15px);
    height: 2px;
    background: var(--sky);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 200ms var(--ease-out);
  }
  .has-sub > .nav-link::after { right: 2px; }
  .nav-link[aria-current="page"], .nav-item.is-current > .nav-link { color: var(--blue); }
  .nav-link[aria-current="page"]::after, .nav-item.is-current > .nav-link::after { transform: scaleX(1); }

  .nav-sub-toggle {
    display: grid;
    place-items: center;
    width: 26px;
    height: 44px;
    margin: 0 6px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--navy);
    cursor: pointer;
    transition: color 180ms ease;
  }
  .nav-sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

  /* Desplegable: empieza justo en el borde del header para no cerrarse al bajar el mouse */
  .nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 240px;
    margin: 0;
    padding: 10px 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-menu);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s linear 160ms;
  }
  .nav-item.is-open > .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s;
  }
  .nav-sub-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
    column-gap: 8px;
    min-width: 460px;
  }
  .nav-sub a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 20px;
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    transition: color 160ms ease;
  }
  .nav-sub a[aria-current="page"] { color: var(--blue); font-weight: 700; }
}
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .nav-link:hover, .nav-item:hover > .nav-sub-toggle { color: var(--blue); }
  .nav-link:hover::after { transform: scaleX(1); }
  .nav-sub a:hover { color: var(--blue); }
}
/* 901–1199px: menú más compacto y acciones solo con ícono para que todo quepa */
@media (min-width: 901px) and (max-width: 1199px) {
  .brand img { height: 48px; }
  .nav { margin-left: 4px; }
  .nav-list { gap: 0; }
  .nav-link { padding-inline: 8px; font-size: 0.875rem; }
  .nav-link::after { left: 8px; right: 8px; }
  .nav-sub-toggle { width: 22px; margin-right: 2px; }
  .header-call, .header-quote { width: 44px; padding: 0; }
  .header-call-text, .header-quote-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
  }
}

/* ---------- Hero: foto a todo el ancho con borde inferior curvo, texto centrado debajo ---------- */

.hero, .page-hero { padding-bottom: clamp(48px, 7vw, 88px); text-align: center; }
.hero-photo {
  height: 140px;
  overflow: hidden;
  background: var(--ice);
  clip-path: ellipse(120% 100% at 50% 0%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Portada del inicio: el aire y la cara del técnico están arriba en la foto, el recorte se ancla arriba */
.hero-home .hero-photo img { object-position: 50% 18%; }
/* Portada de Chillers: el recorte sube un poco para que se vean los ventiladores de los equipos */
.hero-photo img[src*="hero-chillers"] { object-position: 50% 40%; }
/* Portada de Cuartos fríos: la cabeza del trabajador está arriba en la foto */
.hero-photo img[src*="hero-cuartos-frios"] { object-position: 50% 25%; }
/* Portada de Instalación: las cabezas de los técnicos están arriba en la foto */
.hero-photo img[src*="hero-instalacion"] { object-position: 50% 12%; }
/* <picture> (versión celular) no debe alterar el recorte de la foto */
.hero-photo picture, .col-photo picture, .pcard-media picture, .media-frame picture, .person-photo picture { display: contents; }
.hero-home .hero-photo { height: 120px; }
.hero-low .hero-photo { height: 120px; }
@media (min-width: 768px) {
  .hero-photo { height: 260px; clip-path: ellipse(85% 100% at 50% 0%); }
  .hero-home .hero-photo { height: 340px; }
  .hero-low .hero-photo { height: 220px; }
}
@media (min-width: 1024px) {
  .hero-photo { height: 300px; }
  .hero-home .hero-photo { height: 420px; }
  .hero-low .hero-photo { height: 240px; }
}

.hero-body { display: flex; flex-direction: column; align-items: center; max-width: 880px; padding-top: 16px; }
@media (min-width: 768px) { .hero-body { padding-top: 40px; } }
.hero-body .lead { max-width: var(--measure); margin-top: 16px; }
.hero-body .btn-row { justify-content: center; margin-top: 20px; }
@media (min-width: 768px) { .hero-body .btn-row { margin-top: 28px; } }
@media (max-width: 479px) { .hero-body .btn-row { width: 100%; } }
/* Móvil: WhatsApp y Llamar justo debajo del título, visibles sin hacer scroll */
@media (max-width: 767px) {
  .hero-body > .lead, .hero-body > .trust-list, .hero-body > .hero-facts { order: 1; }
  .hero-body h1 { font-size: clamp(1.625rem, 1.2rem + 2.4vw, 2rem); }
  .hero-body .breadcrumb { margin-bottom: 6px; }
  .hero-body .eyebrow { margin-bottom: 8px; }
}

.hero-simple { padding-top: clamp(48px, 7vw, 88px); }

.hero .accent { color: var(--blue); }
.hero-kicker {
  display: none;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
@media (min-width: 640px) { .hero-kicker { display: block; } }
.hero-sub { margin-top: 10px; max-width: var(--measure); font-size: clamp(1rem, 0.95rem + 0.45vw, 1.3125rem); font-weight: 600; line-height: 1.4; color: var(--navy); }
@media (min-width: 768px) { .hero-sub { margin-top: 16px; } }

.trust-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: 0.9375rem; font-weight: 600; color: var(--navy); }
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }
.trust-list .icon { width: 18px; height: 18px; color: var(--sky); stroke-width: 2.5; }


/* Datos rápidos (páginas de línea) */
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; margin: 28px 0 0; }
.hero-facts > div { padding: 4px 20px; }
.hero-facts > div + div { border-left: 1px solid var(--line); }
.hero-facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.hero-facts dd { margin: 2px 0 0; font-size: 0.9375rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
@media (max-width: 559px) {
  .hero-facts > div { flex: 1 1 100%; padding: 8px 0; }
  .hero-facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; font-size: 0.8125rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--sky); }

/* ---------- Ondas entre secciones ---------- */

.wave { height: 36px; line-height: 0; }
.wave svg { width: 100%; height: 100%; }
@media (min-width: 768px) { .wave { height: 60px; } }
.wave-from-white { background: var(--white); }
.wave-from-ice { background: var(--ice); }
.wave-from-navy { background: var(--navy); }
/* Banda con textura: fondo fijo a la pantalla para que las rayas de la onda y la banda coincidan */
.wave-from-tex, .section-intro, .wave-to-tex { background: #C8E5F6 var(--tex) fixed; }
.wave-to-tex { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.wave-to-white path { fill: var(--white); }
.wave-to-ice path { fill: var(--ice); }
.wave-to-navy path { fill: var(--navy); }

/* ---------- Banda de servicio urgente (inicio) ---------- */

.banner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.banner-text { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.banner h2 { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); }
.banner p { margin-top: 8px; }
.banner-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 16px; font-weight: 600; color: var(--navy); }
.banner-points li { display: inline-flex; align-items: center; gap: 8px; }
.banner-points .icon, .banner-note .icon { width: 18px; height: 18px; color: var(--blue); stroke-width: 2.5; }
.banner-note { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
@media (max-width: 479px) { .banner .btn { width: 100%; } }

/* ---------- Columnas centradas con foto (servicios, líneas, mantenimiento) ---------- */

.cols { display: grid; gap: 56px 32px; }
@media (min-width: 768px) { .cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cols { grid-template-columns: repeat(3, 1fr); gap: 64px 40px; } }
@media (min-width: 1024px) { .cols-2 { grid-template-columns: repeat(2, 1fr); gap: 64px; } }

.col, .col-anchor { scroll-margin-top: calc(var(--header-h) + 24px); }
.col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.col-photo { display: block; width: 100%; margin-bottom: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ice); }
.col-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .col:hover .col-photo img, .pcard:hover .pcard-media img { transform: scale(1.03); }
}
/* Título con subrayado de 2px en sky */
.col h3, .col h3 a, .pcard h3 {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.col h3 { font-size: 1.25rem; }
.col > p { max-width: 40ch; margin-top: 14px; color: var(--muted); }
.col .link-arrow { margin-top: 8px; }
.col .check-list { margin-inline: auto; text-align: left; }
.col .btn { margin-top: 24px; }
.col-featured .col-photo { order: -2; }
.col-featured .col-label { order: -1; }
.col-label { margin: 0 0 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }

/* Servicios: el principal (instalación) ocupa una banda propia con foto grande */
@media (min-width: 1100px) { .cols-services { grid-template-columns: repeat(4, 1fr); } }
.cols-services > .col-featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .cols-services > .col-featured {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto auto 1fr;
    column-gap: 56px;
    align-items: start;
    text-align: left;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .cols-services > .col-featured .col-photo { grid-row: 1 / -1; margin: 0; aspect-ratio: 16 / 10; }
  .cols-services > .col-featured h3 { font-size: 1.75rem; align-self: end; }
  .cols-services > .col-featured > p { max-width: none; }
  .cols-services > .col-featured .check-list { margin-inline: 0; }
  .cols-services > .col-featured .col-label { order: -1; margin: 0 0 12px; align-self: end; }
}

/* ---------- Listas de texto en columnas (por qué elegirnos, valores, beneficios) ---------- */

.values, .benefits { gap: 40px 40px; }
/* Valores: filas centradas, así los elementos sueltos de la última fila quedan al centro */
.values { display: flex; flex-wrap: wrap; justify-content: center; }
.values > .feature { flex: 1 1 100%; }
@media (min-width: 640px) { .values > .feature { flex: 0 1 calc((100% - 40px) / 2); } }
@media (min-width: 1024px) { .values > .feature { flex: 0 1 calc((100% - 80px) / 3); } }
.values > .feature, .benefits > .feature { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.feature h3 { font-size: 1.125rem; }
.feature p { max-width: 34ch; color: var(--muted); font-size: 1rem; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Bloques simples (instalación / servicio técnico) ---------- */

.panel h3 { margin-bottom: 4px; }
.media-frame { overflow: hidden; aspect-ratio: 4 / 3; background: var(--ice); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.check-list { display: grid; gap: 10px; margin-top: 18px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.check-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--sky); stroke-width: 2.5; }
.check-list-2 { gap: 10px 28px; }
@media (min-width: 640px) { .check-list-2 { grid-template-columns: 1fr 1fr; } }

/* Filas con línea fina (tipos de instalación, equipos que atendemos, síntomas) */
.type-grid { display: grid; column-gap: 40px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .type-grid { grid-template-columns: repeat(3, 1fr); } }
.type-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.type-card > span:nth-child(2) { flex: 1; }
.type-card strong { display: block; color: var(--navy); font-size: 1.0625rem; transition: color 180ms ease; }
.type-card strong + span { display: block; margin-top: 2px; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
.type-card > .icon { width: 20px; height: 20px; color: var(--blue); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .type-card:hover strong { color: var(--blue); }
  .type-card:hover > .icon { transform: translateX(4px); }
}

.symptom-grid { display: grid; column-gap: 24px; border-top: 1px solid var(--line); }
@media (min-width: 480px) { .symptom-grid { grid-template-columns: repeat(2, 1fr); } }
.symptom { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.symptom .icon-badge .icon { width: 24px; height: 24px; }

/* ---------- Quién te atiende ---------- */

.person { display: grid; gap: 32px; justify-items: center; text-align: center; max-width: 960px; }
.person-photo img { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; background: var(--white); }
.person-text p { max-width: var(--measure); margin-top: 16px; font-size: 1.125rem; color: #33475C; }
.person-sign { font-weight: 700; color: var(--navy) !important; }
@media (min-width: 768px) {
  .person { grid-template-columns: 240px 1fr; gap: 56px; align-items: center; justify-items: start; text-align: left; }
}

/* ---------- Proceso: círculos unidos por una línea ondulada ---------- */

.steps { position: relative; display: grid; gap: 36px; counter-reset: step; }
.steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: var(--ice);
}
.step { position: relative; padding-left: 80px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--sky);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.section-alt .step::before { background: var(--ice); }
.section-alt .steps::before { background: var(--white); }
.step h3 { padding-top: 14px; font-size: 1.125rem; }
.step p { margin-top: 6px; font-size: 1rem; color: var(--muted); }
@media (min-width: 900px) {
  .steps-4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps::before,
  .section-alt .steps::before {
    left: 12.5%;
    right: 12.5%;
    top: 22px;
    bottom: auto;
    width: auto;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='12' viewBox='0 0 80 12'%3E%3Cpath d='M0 6 C 20 0, 20 0, 40 6 S 60 12, 80 6' fill='none' stroke='%2331B2F6' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x center / 80px 12px;
  }
  .step { display: flex; flex-direction: column; align-items: center; padding: 0; text-align: center; }
  .step::before { position: relative; margin-bottom: 18px; }
  .step h3 { padding-top: 0; }
  .step p { max-width: 26ch; }
}

/* ---------- Marcas ---------- */

.brands { padding-block: 40px; }
.brands-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.brands-title { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.brands-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; }
.brands-list li { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.02em; color: var(--slate); }

/* ---------- Zonas: lista de texto centrada ---------- */

.zones { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.zones li { display: flex; align-items: center; }
.zones li + li::before { content: "·"; color: var(--sky); font-weight: 800; }
.zones a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--navy); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .zones a:hover { color: var(--blue); text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 6px; }
}

/* ---------- Páginas de línea: guía/filtro + equipos ---------- */

.filter-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(32px, 5vw, 48px);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.filter-label .icon { width: 18px; height: 18px; color: var(--blue); stroke-width: 2; }

/* Filtros: botones blancos con borde; el activo, relleno en navy con check */
.guide { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.guide-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 72px;
  min-width: 150px;
  padding: 12px 20px;
  border: 1.5px solid rgba(10, 46, 92, 0.25);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  text-align: center;
  color: var(--navy);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.guide-tile:active { transform: scale(0.97); }
.guide-range { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--blue); }
.guide-tile strong { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.guide-count { font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.guide-tile[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.guide-tile[aria-pressed="true"] .guide-range { color: var(--sky); }
.guide-tile[aria-pressed="true"] .guide-count { color: var(--on-navy); }
.guide-tile[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2E5C' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .guide-tile[aria-pressed="false"]:hover { border-color: var(--navy); }
}
@media (max-width: 559px) {
  .guide { display: grid; grid-template-columns: 1fr 1fr; }
  .guide-tile { min-width: 0; padding-inline: 10px; }
}

.pgrid-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin: 24px 0 40px; }
.filter-status { font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--navy); }
/* Selector de unidad: control segmentado */
.unit-toggle { display: inline-flex; align-items: center; }
.unit-label { margin-right: 10px; font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.unit-toggle button {
  min-width: 60px;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid rgba(10, 46, 92, 0.25);
  background: var(--white);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.unit-toggle button:first-of-type { border-radius: var(--radius) 0 0 var(--radius); }
.unit-toggle button:last-of-type { border-radius: 0 var(--radius) var(--radius) 0; }
.unit-toggle button + button { margin-left: -1.5px; }
.unit-toggle button[aria-pressed="true"] { position: relative; background: var(--navy); border-color: var(--navy); color: var(--white); }
.unit-toggle button:focus-visible { position: relative; z-index: 1; }

/* Catálogos: banda con textura para el título y los filtros; cuadrícula de equipos en blanco */
.section-intro { padding-bottom: clamp(40px, 6vw, 72px); }
.section-intro .section-head { margin-bottom: 0; }
.section-intro .pgrid-bar { margin-bottom: 0; }
.section-grid { padding-top: clamp(48px, 7vw, 88px); }

.pgrid { display: grid; gap: 56px 32px; }
@media (min-width: 600px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 64px 40px; } .pgrid-2 { grid-template-columns: repeat(2, 1fr); } }
.pgrid > [hidden] { display: none; }

.pcard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.pcard.is-entering { animation: fade-in 220ms var(--ease-out); }
.pcard-anchor { position: absolute; top: 0; scroll-margin-top: calc(var(--header-h) + 24px); }
/* Equipo enlazado desde el menú: marco sky al llegar */
.pcard:target, .pcard:has(> .pcard-anchor:target) { outline: 2px solid var(--sky); outline-offset: 12px; }
.pcard-media { width: 100%; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ice); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
/* Ilustración del equipo (mientras llega la foto real): completa, sin recortar, sobre fondo ice */
.pcard-media .pcard-illus { object-fit: contain; padding: 18px 28px; background: linear-gradient(180deg, #EAF5FC 0%, var(--ice) 100%); }
.pcard-body { display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; padding-top: 22px; }
.pcard-cap { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 8px; color: var(--navy); font-variant-numeric: tabular-nums; }
.pcard-num { font-size: clamp(2rem, 1.7rem + 1.2vw, 2.625rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.pcard-cap-range .pcard-num { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
.pcard-unit { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.pcard h3 { margin-top: 14px; font-size: 1.125rem; }
.pcard-alias { margin-top: 10px; font-size: 0.875rem; font-weight: 600; color: var(--blue); }
.pcard-ideal { max-width: 36ch; margin-top: 10px; color: var(--muted); }
.pcard-chips { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 12px; font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.pcard-chips li + li::before { content: "·"; margin: 0 8px; color: var(--sky); }
.pcard-body > .btn { width: 100%; max-width: 320px; margin-top: auto; }
.pcard-body > :nth-last-child(2) { margin-bottom: 22px; }
.pcard-lg h3 { font-size: 1.375rem; }
.pcard-lg .pcard-cap-range .pcard-num { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); }

.help-strip { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 72px; text-align: center; }
.help-strip p { max-width: var(--measure); color: var(--muted); }
.help-strip strong { display: block; margin-bottom: 4px; font-size: 1.25rem; color: var(--navy); }
@media (max-width: 479px) { .help-strip .btn { width: 100%; } }

/* Banda de impacto navy (servicio de diseño): una por página como máximo */
.design-band { background: var(--navy); color: var(--on-navy); scroll-margin-top: var(--header-h); }
.design-band h2 { color: var(--white); }
.design-band .lead { margin-top: 16px; color: var(--on-navy); }
.design-steps { counter-reset: dstep; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.design-steps li {
  counter-increment: dstep;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  border-bottom: 1px solid var(--line-dark);
  font-weight: 600;
  color: var(--white);
}
.design-steps li::before {
  content: counter(dstep);
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--sky);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

/* ---------- Preguntas frecuentes ---------- */

.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 0;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(var(--sky), var(--sky)) center / 16px 2px no-repeat,
    linear-gradient(var(--sky), var(--sky)) center / 2px 16px no-repeat;
  transition: transform 220ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; padding: 2px 0 2px 18px; border-left: 2px solid var(--sky); color: var(--muted); }

/* ---------- CTA final + formulario (banda ice) ---------- */

.cta-section { background: var(--ice); }
.cta-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.cta-section .lead { margin-top: 16px; color: #33475C; }
.cta-points { display: grid; gap: 12px; margin: 28px 0 32px; }
.cta-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); }
.cta-points .icon { width: 22px; height: 22px; color: var(--blue); }

.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.contact-grid .form-card { border: 1px solid var(--line); }
.form-card > h2, .form-card > h3 { font-size: 1.375rem; letter-spacing: -0.015em; }
.form-sub { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }

.lead-form { display: grid; gap: 18px; margin-top: 24px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; }
.field > label:not(.check) { font-size: 0.9375rem; font-weight: 600; color: var(--navy); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 1rem; /* 16px evita zoom en iOS */
  color: var(--ink);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230A2E5C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder { color: #75849A; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); background-color: var(--ice-soft); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { font-size: 0.875rem; font-weight: 600; color: var(--danger); }
.field-error:empty { display: none; }

.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--blue); cursor: pointer; }
.field.has-error .check input { outline: 2px solid var(--danger); outline-offset: 2px; }

.lead-form [type="submit"] { min-height: 52px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { font-size: 0.875rem; color: var(--muted); text-align: center; }
.form-status { padding: 14px 16px; border-left: 2px solid var(--wa-btn); background: #ECFDF3; color: #05603A; font-size: 0.9688rem; }
.form-status a { color: inherit; font-weight: 700; }
.form-status code { font-size: 0.875em; }
.form-status.is-error { background: #FEF3F2; border-left-color: var(--danger); color: var(--danger); }
.form-status:focus { outline: none; }

/* ---------- Contacto ---------- */

.section-contact { padding-top: clamp(24px, 4vw, 48px); }
.contact-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.3fr 0.7fr; gap: 64px; } }
.contact-card { display: grid; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.contact-item small { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.contact-item strong { display: block; color: var(--navy); font-size: 1.0625rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; transition: color 180ms ease; }
.contact-item .icon-badge { flex: none; }
@media (hover: hover) and (pointer: fine) {
  a.contact-item:hover strong { color: var(--blue); }
}

/* Mapa con borde curvo arriba */
.map-frame { overflow: hidden; aspect-ratio: 16 / 9; background: var(--white); border-radius: 50% 50% 0 0 / 56px 56px 0 0; }
@media (max-width: 639px) { .map-frame { aspect-ratio: 4 / 5; border-radius: 50% 50% 0 0 / 32px 32px 0 0; } }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Gracias y texto legal ---------- */

.thanks { display: grid; align-items: center; min-height: 60vh; }
.thanks-inner { max-width: 640px; text-align: center; }
.thanks-inner .lead { margin-top: 12px; }
.thanks-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border: 2px solid var(--sky);
  border-radius: 50%;
  color: var(--navy);
}
.thanks-icon .icon { width: 34px; height: 34px; stroke-width: 2.25; }

.section-legal { padding-top: 0; }
.legal { max-width: calc(68ch + var(--gutter) * 2); }
.legal h2 { margin-top: 40px; font-size: 1.25rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { margin-top: 12px; color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal-content { max-width: 68ch; margin-inline: auto; }
.legal ol { list-style: decimal; padding-left: 22px; }
.legal li::marker { color: var(--blue); }
.legal strong { color: var(--navy); }
.legal-updated {
  display: inline-block;
  margin-bottom: 32px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sky);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Footer (navy, con onda arriba) ---------- */

.site-footer { padding-top: clamp(40px, 6vw, 72px); background: var(--navy); color: var(--on-navy); font-size: 0.9688rem; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer-logo { display: inline-block; padding: 14px 18px; border-radius: var(--radius); background: var(--white); }
.footer-logo img { height: 88px; width: auto; }
.footer-brand p { margin-top: 20px; max-width: 340px; }
.footer-brand strong { color: var(--white); }

.site-footer h2 { margin-bottom: 12px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
.footer-links, .footer-contact { display: grid; gap: 2px; }
.footer-links a, .footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--on-navy);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color 180ms ease;
}
.footer-contact .icon { width: 18px; height: 18px; color: var(--sky); }
.footer-contact p { display: flex; gap: 10px; align-items: flex-start; padding-block: 8px; }
.footer-contact p .icon { margin-top: 3px; }

.footer-zones { display: grid; gap: 4px; padding-block: 24px; border-top: 1px solid var(--line-dark); }
.footer-zones ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-zones a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-navy); text-decoration: none; transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover, .footer-contact a:hover, .footer-zones a:hover { color: var(--sky); }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.78); }

/* ---------- Barra de pestañas inferior (solo móvil y tablet, ≤ 900px) ---------- */

:root { --tabbar-h: 59px; } /* 4px + 50px + 4px de padding + 1px de borde */

.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    padding: 4px 4px env(safe-area-inset-bottom);
    padding-bottom: calc(4px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(10, 46, 92, 0.06);
  }
  .tabbar-link {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 50px;
    padding: 4px 2px;
    border-radius: var(--radius);
    color: #5F6E80;                  /* gris tenue: 5:1 sobre blanco */
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 160ms ease, color 160ms ease;
  }
  .tabbar-link .icon { width: 1.3rem; height: 1.3rem; stroke-width: 1.75; }
  .tabbar-link span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .tabbar-link:active { background: var(--ice-soft); }
  .tabbar-link.active { color: var(--blue); }
  .tabbar-link.active .icon { stroke-width: 2.25; }
  .tabbar-link:focus-visible { outline-offset: -3px; }

  /* El final del footer no queda tapado por la barra */
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}

/* ---------- Botones flotantes: WhatsApp (abajo) y Llamar (encima) ---------- */
/* En móvil y tablet se suben para quedar por encima de la barra de pestañas. */

.wa-float, .call-float {
  position: fixed;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out);
}
.wa-float {
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  background: var(--wa);
  box-shadow: var(--shadow-float);
  animation: fade-in 400ms var(--ease-out) 500ms both;
}
.wa-float svg { width: 30px; height: 30px; }
.call-float {
  right: calc(20px + env(safe-area-inset-right));
  bottom: calc(var(--tabbar-h) + 14px + 56px + 12px + env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  background: var(--navy);
  box-shadow: 0 8px 22px rgba(10, 46, 92, 0.3);
  animation: fade-in 400ms var(--ease-out) 600ms both;
}
.call-float .icon { width: 22px; height: 22px; stroke-width: 2; }
.wa-float:active, .call-float:active { transform: scale(0.94); }

@media (min-width: 901px) {
  .wa-float { right: 28px; bottom: 28px; width: 64px; height: 64px; }
  .wa-float svg { width: 34px; height: 34px; }
  .call-float { right: 34px; bottom: 106px; width: 52px; height: 52px; }
  .call-float .icon { width: 24px; height: 24px; }
}

.wa-float-label, .float-label {
  position: absolute;
  right: calc(100% + 12px);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.wa-float:focus-visible .wa-float-label, .call-float:focus-visible .float-label { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover .wa-float-label, .call-float:hover .float-label { opacity: 1; transform: none; }
}

/* =========================================================================
   AJUSTES MÓVIL: versión más compacta (escritorio no cambia)
   ========================================================================= */
@media (max-width: 767px) {
  .section-head { margin-bottom: 32px; }

  /* Servicios: el principal a todo el ancho; los otros cuatro en cuadrícula 2 × 2 */
  .cols-services { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .cols-services > .col-featured { grid-column: 1 / -1; }
  .cols-services > .col:not(.col-featured) .col-photo { margin-bottom: 14px; }
  .cols-services > .col:not(.col-featured) h3 { font-size: 1rem; text-underline-offset: 4px; }
  .cols-services > .col:not(.col-featured) > p { margin-top: 8px; font-size: 0.875rem; line-height: 1.5; }

  /* Líneas de producto: filas con foto cuadrada a la izquierda */
  .cols:has(> .col-anchor) { gap: 28px; }
  .col-anchor .col {
    display: grid;
    grid-template-columns: 128px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    align-items: center;
    text-align: left;
  }
  .col-anchor .col-photo { grid-row: 1 / 4; margin: 0; aspect-ratio: 1; }
  .col-anchor .col h3 { font-size: 1.0625rem; align-self: end; }
  .col-anchor .col > p { max-width: none; margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; }
  .col-anchor .col .link-arrow { display: inline; min-height: 0; margin-top: 0; padding-block: 8px; align-self: start; font-size: 0.9375rem; line-height: 1.4; }
  .col-anchor .col .link-arrow .icon { display: inline-block; vertical-align: -3px; margin-left: 4px; }

  /* Por qué elegirnos / valores / beneficios: dos columnas */
  .values, .benefits { gap: 28px 16px; }
  .values > .feature { flex: 0 1 calc((100% - 16px) / 2); }
  .benefits { grid-template-columns: 1fr 1fr; }
  .values > .feature h3, .benefits > .feature h3 { font-size: 1rem; }
  .values > .feature p, .benefits > .feature p { font-size: 0.875rem; line-height: 1.5; }
  .prose-center { margin-bottom: 40px; }

  /* Quién te atiende */
  .person-photo img { width: 200px; height: 200px; }

  /* Footer: Servicios y Productos lado a lado */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; padding-bottom: 32px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-logo img { height: 64px; }
  .footer-brand p { margin-top: 14px; }

  /* Equipos (Chillers y Aires): tarjetas en dos columnas */
  .pgrid:not(.pgrid-2) { grid-template-columns: 1fr 1fr; gap: 36px 14px; }
  .pgrid:not(.pgrid-2) .pcard-body { padding-top: 14px; }
  .pgrid:not(.pgrid-2) .pcard-num { font-size: 1.625rem; }
  .pgrid:not(.pgrid-2) .pcard-cap-range .pcard-num { font-size: 1.0625rem; }
  .pgrid:not(.pgrid-2) .pcard-unit { font-size: 0.6875rem; }
  .pgrid:not(.pgrid-2) .pcard h3 { margin-top: 8px; font-size: 0.9375rem; text-underline-offset: 4px; }
  .pgrid:not(.pgrid-2) .pcard-alias { margin-top: 6px; font-size: 0.75rem; }
  .pgrid:not(.pgrid-2) .pcard-ideal { margin-top: 6px; font-size: 0.8125rem; line-height: 1.45; }
  .pgrid:not(.pgrid-2) .pcard-body > :nth-last-child(2) { margin-bottom: 14px; }
  .pgrid:not(.pgrid-2) .pcard .btn { min-height: 44px; padding: 0 10px; font-size: 0.875rem; }
  .pgrid:not(.pgrid-2) .pcard-media .pcard-illus { padding: 10px 12px; }
}
@media (max-width: 900px) {
  /* Que los botones flotantes no tapen el final del footer */
  .footer-bottom { padding-right: 76px; }
}

/* ---------- Movimiento: solo fundido corto al aparecer ---------- */

.js .reveal { opacity: 0; transition: opacity 500ms var(--ease-out) var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Contenido condicionado por config.js ----------
   data-requires: oculto hasta que el dato exista (sin JS, la promesa no se muestra).
   data-unless:   visible hasta que el dato exista.                                  */

[data-requires]:not(.is-on) { display: none !important; }
[data-unless].is-off { display: none !important; }

/* ---------- Utilidades ---------- */

.mb-16 { margin-bottom: 16px; }
.mb-48 { margin-bottom: 48px; }
.mb-48:not(:has(> .is-on)) { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.center { text-align: center; }
.justify-center { justify-content: center; }

/* ---------- Accesibilidad: preferencias del sistema ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transition-duration: 150ms; transition-delay: 0ms; }
  .wa-float, .call-float { animation-duration: 200ms; }
  .pcard.is-entering { animation: none; }
  .nav-sub, .nav-item.is-open > .nav-sub { transform: none; }
  .tabbar-link { transition: none; }
  .chev { transition: none; }
  .btn:active, .wa-float:active, .call-float:active { transform: none; }
  .col:hover .col-photo img, .pcard:hover .pcard-media img,
  .link-arrow:hover .icon, .type-card:hover > .icon { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(10, 46, 92, 0.5); --field-line: var(--navy); }
  .lead, .prose p, .feature p, .pcard-ideal, .faq details p { color: var(--ink); }
}

@media print {
  .site-header, .tabbar, .wa-float, .call-float, .cta-section, .wave { display: none !important; }
}
