/* ==========================================================================
   Polar Climatización — hoja de estilos
   Índice: 1 Tokens · 2 Base · 3 Utilidades · 4 Botones · 5 Encabezado
           6 Hero · 7 Cifras · 8 Secciones · 9 Servicios · 11 Por qué · 12 Galería · 13 Marcas · 14 Contacto · 15 Pie
           16 WhatsApp flotante · 17 Visor · 18 Animaciones
   ========================================================================== */

/* 1 ─ Tokens ------------------------------------------------------------- */
:root {
  --navy-950: #050f1c;
  --navy-900: #071425;
  --navy-800: #0c2140;
  --navy-700: #13305a;
  --azul-600: #1d5bff;
  --azul-500: #2f74ff;
  --celeste-400: #38c6f4;
  --celeste-100: #e3f6fd;
  --gris-50: #f5f7fa;
  --gris-100: #eceff4;
  --gris-200: #dfe4eb;
  --gris-400: #9aa6b6;
  --gris-600: #5b6879;
  --tinta: #0b1726;
  --blanco: #fff;
  --wa: #1fae5b;
  --error: #d63b3b;

  --degradado: linear-gradient(135deg, var(--celeste-400) 0%, var(--azul-600) 100%);

  --fuente: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radio-s: 10px;
  --radio: 16px;
  --radio-l: 24px;
  --sombra-s: 0 1px 2px rgb(7 20 37 / .06), 0 2px 8px rgb(7 20 37 / .05);
  --sombra: 0 2px 4px rgb(7 20 37 / .04), 0 12px 32px -8px rgb(7 20 37 / .14);
  --sombra-l: 0 24px 64px -16px rgb(7 20 37 / .28);
  --ease: cubic-bezier(.22, .8, .24, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --ancho: 1200px;
  --seccion-y: clamp(72px, 10vw, 128px);
  --alto-header: 76px;
}

/* 2 ─ Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-header) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; font-weight: 700; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--celeste-400); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--celeste-400); color: var(--navy-950); }

.icono {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* 3 ─ Utilidades --------------------------------------------------------- */
.contenedor { width: 100%; max-width: calc(var(--ancho) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--blanco); border-radius: var(--radio-s); font-weight: 700; transition: top .2s; }
.saltar:focus { top: 12px; }

.etiqueta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--azul-600); margin-bottom: 18px;
}
.etiqueta::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--degradado); }
.etiqueta--clara { color: var(--celeste-400); }

.lista-check { display: grid; gap: 8px; }
.lista-check li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--gris-600); }
.lista-check .icono { width: 18px; height: 18px; color: var(--azul-600); stroke-width: 2.2; }

.enlace-flecha {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-weight: 700; font-size: .95rem; color: var(--azul-600);
}
.enlace-flecha .icono { transition: transform .3s var(--ease); }
.enlace-flecha:hover .icono { transform: translateX(4px); }

/* 4 ─ Botones ------------------------------------------------------------ */
.boton {
  --b-bg: var(--azul-600); --b-color: var(--blanco);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--b-bg); color: var(--b-color);
  font-weight: 700; font-size: .95rem; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.boton .icono { transition: transform .3s var(--ease); }
.boton:hover { transform: translateY(-2px); }
.boton:hover .icono:last-child:not(.icono--wa) { transform: translateX(3px); }
.boton:active { transform: translateY(0); }
.boton--primario { background: var(--degradado); box-shadow: 0 8px 24px -8px rgb(29 91 255 / .65); }
.boton--primario::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, #5ad5ff, #2f6bff); opacity: 0; transition: opacity .3s;
}
.boton--primario:hover { box-shadow: 0 14px 32px -10px rgb(29 91 255 / .8); }
.boton--primario:hover::after { opacity: 1; }
.boton--vidrio {
  --b-bg: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.boton--vidrio:hover { --b-bg: rgb(255 255 255 / .16); }
.boton--vidrio .icono--wa { color: #4ade80; }
.boton--whatsapp { --b-bg: var(--wa); }
.boton--whatsapp:hover { --b-bg: #18994e; }
.boton--grande { min-height: 56px; padding: 14px 28px; font-size: 1rem; }
.boton--chico { min-height: 42px; padding: 9px 18px; font-size: .9rem; }
.boton--bloque { width: 100%; }

/* 5 ─ Encabezado --------------------------------------------------------- */
.encabezado {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--alto-header);
  color: var(--blanco);
  transition: background-color .35s, box-shadow .35s, color .35s, height .35s;
}
.encabezado.is-solido {
  --alto-header: 66px;
  background: rgb(255 255 255 / .86);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgb(7 20 37 / .08), 0 8px 24px -12px rgb(7 20 37 / .12);
  color: var(--tinta);
}
.encabezado__fila { height: 100%; display: flex; align-items: center; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__marca { width: 40px; height: 40px; }
.logo__texto { display: grid; line-height: 1.05; }
.logo__texto strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; }
.logo__texto span { font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }

.nav { margin-inline: auto; }
.nav__lista { display: flex; gap: 4px; }
.nav__lista a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  font-size: .93rem; font-weight: 600; opacity: .85; transition: opacity .2s, background-color .2s;
}
.nav__lista a:hover { opacity: 1; background: rgb(127 127 127 / .12); }
.nav__lista a.is-actual { opacity: 1; }
.nav__lista a.is-actual::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--celeste-400);
}
.nav__acciones-movil { display: none; }

.encabezado__acciones { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.encabezado__telefono { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.encabezado__telefono .icono { width: 18px; height: 18px; color: var(--celeste-400); }

.menu-boton { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.menu-boton span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease);
}
.menu-boton span:nth-child(1) { top: 15px; }
.menu-boton span:nth-child(2) { top: 21px; }
.menu-boton span:nth-child(3) { top: 27px; right: 18px; }
.menu-abierto .menu-boton span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-abierto .menu-boton span:nth-child(2) { opacity: 0; }
.menu-abierto .menu-boton span:nth-child(3) { top: 21px; right: 12px; transform: rotate(-45deg); }

@media (max-width: 1080px) { .encabezado__telefono span { display: none; } }

@media (max-width: 919px) {
  .menu-boton { display: block; }
  .encabezado__acciones .boton { display: none; }
  .encabezado__telefono { width: 44px; height: 44px; justify-content: center; border-radius: 12px; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    padding: calc(var(--alto-header) + 24px) var(--gutter) 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: var(--navy-900); color: var(--blanco);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
    overflow-y: auto;
  }
  .menu-abierto .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-abierto .encabezado { background: transparent; box-shadow: none; backdrop-filter: none; color: var(--blanco); }
  .nav__lista { flex-direction: column; gap: 0; }
  .nav__lista a {
    padding: 16px 0; border-radius: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em;
    border-bottom: 1px solid rgb(255 255 255 / .08);
  }
  .nav__lista a:hover { background: none; }
  .nav__lista a.is-actual::after { left: auto; right: 4px; top: 50%; bottom: auto; margin-top: -3px; }
  .nav__acciones-movil { display: grid; gap: 12px; margin-top: 32px; }
  .nav__telefono { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-weight: 700; opacity: .85; }
  body.menu-abierto { overflow: hidden; }
}

/* 6 ─ Hero --------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--alto-header) + 48px) 0 clamp(96px, 12vw, 140px);
  color: var(--blanco); background: var(--navy-950);
}
.hero__fondo { position: absolute; inset: 0; z-index: -3; }
.hero__fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.06); animation: hero-zoom 18s var(--ease) forwards; }
.hero__velo {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 70% at 85% 40%, rgb(56 198 244 / .18), transparent 70%),
    linear-gradient(90deg, rgb(5 15 28 / .96) 0%, rgb(5 15 28 / .82) 42%, rgb(5 15 28 / .35) 100%),
    linear-gradient(0deg, rgb(5 15 28 / .9) 0%, transparent 35%);
}
/* líneas de flujo de aire */
.hero__flujo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__flujo span {
  position: absolute; left: -40%; height: 1px; width: 40%;
  background: linear-gradient(90deg, transparent, rgb(56 198 244 / .55), transparent);
  animation: flujo 9s linear infinite;
}
.hero__flujo span:nth-child(1) { top: 28%; animation-delay: 0s; }
.hero__flujo span:nth-child(2) { top: 46%; animation-delay: 2.6s; width: 30%; }
.hero__flujo span:nth-child(3) { top: 63%; animation-delay: 5.2s; }
.hero__flujo span:nth-child(4) { top: 78%; animation-delay: 7s; width: 25%; }

.hero__grilla { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 64px; }
.hero__texto { max-width: 680px; }
.hero__titulo { font-size: clamp(2.35rem, 1.1rem + 4.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; }
.hero__subtitulo { margin-top: 24px; max-width: 560px; font-size: clamp(1.02rem, .95rem + .35vw, 1.18rem); color: rgb(255 255 255 / .78); }
.hero__botones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__garantias { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; }
.hero__garantias li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: rgb(255 255 255 / .85); }
.hero__garantias .icono { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgb(56 198 244 / .18); color: var(--celeste-400); stroke-width: 2.6; }

/* tarjeta termostato */
.termostato {
  width: 290px; padding: 22px; border-radius: 28px;
  background: linear-gradient(160deg, rgb(255 255 255 / .14), rgb(255 255 255 / .04));
  border: 1px solid rgb(255 255 255 / .16);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .12);
  animation: flotar 7s ease-in-out infinite;
}
.termostato__cabecera { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: rgb(255 255 255 / .7); }
.termostato__cabecera .icono { margin-left: auto; width: 18px; height: 18px; color: var(--celeste-400); }
.termostato__punto { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgb(74 222 128 / .18); }
.termostato__dial { position: relative; margin: 18px auto 14px; width: 200px; aspect-ratio: 1; }
.termostato__dial svg { width: 100%; height: 100%; transform: rotate(135deg); }
.dial__pista, .dial__valor { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 396 528; }
.dial__pista { stroke: rgb(255 255 255 / .1); }
.dial__valor { stroke: url(#dial-g); stroke-dashoffset: 396; animation: dial 2.2s .6s var(--ease) forwards; }
.termostato__temp {
  position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: start;
  font-size: 4.2rem; font-weight: 800; letter-spacing: -.05em; line-height: 1;
}
.termostato__temp sup { font-size: 1.1rem; margin-top: 10px; margin-left: 2px; font-weight: 700; color: var(--celeste-400); letter-spacing: 0; }
.termostato__modo, .termostato__estado { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .85rem; font-weight: 600; }
.termostato__modo { color: rgb(255 255 255 / .85); }
.termostato__modo .icono { color: var(--celeste-400); width: 18px; height: 18px; }
.termostato__estado {
  margin-top: 14px; padding: 10px; border-radius: 14px;
  background: rgb(74 222 128 / .12); color: #86efac;
}
.termostato__estado .icono { width: 16px; height: 16px; stroke-width: 2.6; }

@media (max-width: 999px) {
  .hero__grilla { grid-template-columns: 1fr; }
  .termostato { display: none; }
}
@media (max-width: 699px) {
  .hero { min-height: auto; padding-top: calc(var(--alto-header) + 40px); align-items: flex-end; }
  .hero__velo { background: linear-gradient(180deg, rgb(5 15 28 / .7) 0%, rgb(5 15 28 / .86) 45%, rgb(5 15 28 / .97) 100%); }
  .hero__botones .boton { width: 100%; }
  .hero__garantias { gap: 10px 18px; }
}

/* 7 ─ Cifras ------------------------------------------------------------- */
.cifras { position: relative; z-index: 2; margin-top: -64px; }
.cifras__grilla {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--blanco); border-radius: var(--radio-l); box-shadow: var(--sombra-l);
  padding: 0;
}
.cifra { padding: 32px 28px; position: relative; }
.cifra + .cifra::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 1px; background: var(--gris-200); }
.cifra__valor {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 800; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(135deg, var(--navy-800), var(--azul-600)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.cifra__etiqueta { margin-top: 10px; font-size: .9rem; line-height: 1.4; color: var(--gris-600); }
@media (max-width: 799px) {
  .cifras__grilla { grid-template-columns: repeat(2, 1fr); }
  .cifra { padding: 24px 20px; }
  .cifra:nth-child(3)::before { display: none; }
  .cifra:nth-child(n+3) { border-top: 1px solid var(--gris-200); }
}

/* 8 ─ Secciones ---------------------------------------------------------- */
.seccion { padding-block: var(--seccion-y); }
.seccion--gris { background: var(--gris-50); }
.seccion--compacta { padding-block: clamp(64px, 8vw, 96px); }
.seccion--oscura { background: var(--navy-900); color: var(--blanco); position: relative; overflow: hidden; }
.seccion--oscura::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, rgb(29 91 255 / .22), transparent 45%),
    radial-gradient(circle at 100% 100%, rgb(56 198 244 / .12), transparent 40%);
}
.seccion--oscura::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.seccion--oscura > * { position: relative; z-index: 1; }
.seccion__cabecera { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.seccion__cabecera .etiqueta { justify-content: center; }
.seccion__cabecera--izq { margin-inline: 0; text-align: left; }
.seccion__cabecera--izq .etiqueta { justify-content: flex-start; }
.seccion__cabecera--fila { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; text-align: left; }
.seccion__cabecera--fila > div:first-child { max-width: 640px; }
.seccion__cabecera--fila .etiqueta { justify-content: flex-start; }
.seccion__bajada { margin-top: 18px; font-size: 1.08rem; color: var(--gris-600); }
.seccion--oscura .seccion__bajada { color: rgb(255 255 255 / .7); }
.h2--chico { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }

/* 9 ─ Servicios ---------------------------------------------------------- */
.servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.servicio {
  display: flex; flex-direction: column;
  background: var(--blanco); border: 1px solid var(--gris-100); border-radius: var(--radio-l);
  overflow: hidden; box-shadow: var(--sombra-s);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.servicio:hover { transform: translateY(-6px); box-shadow: var(--sombra); border-color: transparent; }
.servicio__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gris-100); }
.servicio__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.servicio__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(7 20 37 / .45)); }
.servicio:hover .servicio__media img { transform: scale(1.06); }
.servicio__icono {
  position: relative; z-index: 1; margin-top: -30px;
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 16px; background: var(--degradado); color: var(--blanco);
  box-shadow: 0 10px 24px -6px rgb(29 91 255 / .55), 0 0 0 5px var(--blanco);
  transition: transform .45s var(--ease);
}
.servicio__icono .icono { width: 26px; height: 26px; }
.servicio:hover .servicio__icono { transform: translateY(-4px) rotate(-6deg); }
.servicio__cuerpo { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex: 1; padding: 0 24px 26px; }
.servicio__cuerpo .lista-check { align-self: stretch; }
.servicio__cuerpo > p { color: var(--gris-600); font-size: .95rem; }
.servicio__cuerpo .lista-check { padding-top: 14px; border-top: 1px dashed var(--gris-200); }
.servicio__cuerpo .enlace-flecha { margin-top: auto; padding-top: 8px; }
@media (max-width: 1023px) { .servicios { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .servicios { grid-template-columns: 1fr; gap: 20px; } }

/* 11 ─ Por qué elegirnos ------------------------------------------------- */
.porque { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.porque__media { position: relative; }
.porque__foto { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-800); box-shadow: var(--sombra-l); }
.porque__foto img { width: 100%; height: 100%; object-fit: cover; }
.sello {
  position: absolute; right: -24px; bottom: 72px;
  display: flex; align-items: center; gap: 14px; padding: 16px 20px 16px 16px;
  border-radius: 18px; background: var(--blanco); color: var(--tinta); box-shadow: var(--sombra-l);
  animation: flotar 6s ease-in-out infinite;
}
.sello .icono { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--celeste-100); color: var(--azul-600); }
.sello p { display: grid; line-height: 1.3; }
.sello strong { font-size: 1rem; }
.sello span { font-size: .82rem; color: var(--gris-600); }
.porque__matricula {
  display: flex; align-items: center; gap: 10px; margin-top: 20px;
  font-size: .85rem; font-weight: 600; color: rgb(255 255 255 / .7);
}
.porque__matricula .icono { color: var(--celeste-400); }
.diferenciales { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
.diferencial { display: flex; gap: 16px; }
.diferencial__icono {
  flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 14px; color: var(--celeste-400);
  background: rgb(56 198 244 / .08); border: 1px solid rgb(56 198 244 / .2);
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.diferencial:hover .diferencial__icono { background: var(--celeste-400); color: var(--navy-900); transform: translateY(-3px); }
.diferencial h3 { font-size: 1.05rem; margin-bottom: 6px; }
.diferencial p { font-size: .9rem; color: rgb(255 255 255 / .65); line-height: 1.6; }

.proceso { margin-top: clamp(64px, 9vw, 112px); padding-top: clamp(48px, 6vw, 64px); border-top: 1px solid rgb(255 255 255 / .1); }
.proceso__titulo { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); margin-bottom: 40px; }
.proceso__pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: paso; }
.paso {
  position: relative; padding: 28px 24px; border-radius: var(--radio-l);
  background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08);
  transition: background-color .3s, border-color .3s;
}
.paso:hover { background: rgb(255 255 255 / .07); border-color: rgb(56 198 244 / .3); }
.paso__numero {
  display: inline-block; margin-bottom: 18px;
  font-size: .85rem; font-weight: 800; letter-spacing: .08em;
  background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.paso h3 { font-size: 1.05rem; margin-bottom: 8px; }
.paso p { font-size: .9rem; color: rgb(255 255 255 / .62); }
.paso:not(:last-child)::after {
  content: ""; position: absolute; top: 38px; right: -21px; width: 22px; height: 1px;
  background: linear-gradient(90deg, rgb(56 198 244 / .6), transparent);
}
@media (max-width: 999px) {
  .porque { grid-template-columns: 1fr; }
  .porque__media { max-width: 520px; }
  .porque__foto { aspect-ratio: 16 / 11; }
  .sello { right: 16px; bottom: 60px; }
  .proceso__pasos { grid-template-columns: repeat(2, 1fr); }
  .paso::after { display: none; }
}
@media (max-width: 599px) {
  .diferenciales, .proceso__pasos { grid-template-columns: 1fr; }
  .sello { right: 12px; bottom: 56px; padding: 12px 16px 12px 12px; }
}

/* 12 ─ Galería ----------------------------------------------------------- */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.filtro {
  min-height: 42px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--gris-200); font-weight: 600; font-size: .9rem; color: var(--gris-600);
  transition: background-color .25s, color .25s, border-color .25s;
}
.filtro:hover { border-color: var(--tinta); color: var(--tinta); }
.filtro.is-activo { background: var(--navy-900); border-color: var(--navy-900); color: var(--blanco); }

.galeria {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px; grid-auto-flow: dense;
}
.obra { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.obra--alto { grid-row: span 2; }
.obra--ancho { grid-column: span 2; }
.obra.is-oculta { display: none; }
.obra__boton { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radio); background: var(--gris-100); text-align: left; }
.obra__boton img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.obra__boton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgb(5 15 28 / .85));
  opacity: .75; transition: opacity .4s;
}
.obra__boton:hover img { transform: scale(1.07); }
.obra__boton:hover::after { opacity: 1; }
.obra__info { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 2px; color: var(--blanco); }
.obra__categoria { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--celeste-400); }
.obra__titulo { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.obra__zoom {
  position: absolute; z-index: 1; top: 14px; right: 14px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgb(255 255 255 / .9); color: var(--navy-900);
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease);
}
.obra__zoom .icono { width: 18px; height: 18px; }
.obra__boton:hover .obra__zoom, .obra__boton:focus-visible .obra__zoom { opacity: 1; transform: none; }
@media (max-width: 999px) {
  .seccion__cabecera--fila { flex-direction: column; align-items: flex-start; }
  .galeria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}
@media (max-width: 559px) {
  .galeria { grid-auto-rows: 180px; gap: 10px; }
  .obra--ancho { grid-column: span 2; }
  .obra__info { left: 12px; right: 12px; bottom: 10px; }
  .obra__titulo { font-size: .88rem; }
  .obra__zoom { opacity: 1; transform: none; width: 32px; height: 32px; top: 10px; right: 10px; }
  .filtros { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + var(--gutter)); padding-right: var(--gutter); scrollbar-width: none; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtro { flex-shrink: 0; }
}

/* 13 ─ Marcas ------------------------------------------------------------ */
.marcas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.marca {
  display: grid; place-items: center; height: 88px; padding: 16px;
  background: var(--blanco); border: 1px solid var(--gris-200); border-radius: var(--radio);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.marca:hover { border-color: transparent; box-shadow: var(--sombra); transform: translateY(-3px); }
.marca img { max-height: 36px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.marca:hover img { filter: none; opacity: 1; }
.marca__nombre { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--gris-400); transition: color .3s; }
.marca:hover .marca__nombre { color: var(--navy-800); }
.marcas__nota { margin-top: 28px; text-align: center; font-size: .95rem; color: var(--gris-600); }
@media (max-width: 899px) { .marcas { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 559px) { .marcas { grid-template-columns: repeat(3, 1fr); gap: 8px; } .marca { height: 68px; } .marca__nombre { font-size: .95rem; } }

/* 14 ─ Contacto ---------------------------------------------------------- */
.contacto-seccion { background: linear-gradient(180deg, var(--blanco) 0%, var(--gris-50) 100%); }
.contacto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 6vw, 80px); align-items: start; }
.contacto .seccion__cabecera { margin-bottom: 32px; }

.wa-tarjeta {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: var(--radio-l); background: var(--wa); color: var(--blanco);
  box-shadow: 0 16px 36px -16px rgb(31 174 91 / .7);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-tarjeta:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -16px rgb(31 174 91 / .8); }
.wa-tarjeta__icono { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgb(255 255 255 / .18); }
.wa-tarjeta__icono .icono { width: 28px; height: 28px; }
.wa-tarjeta__texto { display: grid; line-height: 1.35; }
.wa-tarjeta__texto strong { font-size: 1.08rem; }
.wa-tarjeta__texto span { font-size: .85rem; opacity: .9; }
.wa-tarjeta__flecha { margin-left: auto; transition: transform .3s var(--ease); }
.wa-tarjeta:hover .wa-tarjeta__flecha { transform: translateX(4px); }

.datos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.datos li { display: flex; gap: 14px; }
.datos .icono { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--celeste-100); color: var(--azul-600); }
.datos span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-400); }
.datos a, .datos p { font-weight: 600; font-size: .95rem; line-height: 1.45; word-break: break-word; }
.datos a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.datos a:hover { color: var(--azul-600); }

.cobertura {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center;
  margin-top: 32px; padding: 16px; border-radius: var(--radio-l);
  background: var(--blanco); border: 1px solid var(--gris-200);
}
.cobertura h3 { font-size: 1rem; margin-bottom: 12px; }
.zonas { display: flex; flex-wrap: wrap; gap: 8px; }
.zonas li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px;
  border-radius: 999px; background: var(--gris-50); border: 1px solid var(--gris-200);
  font-size: .82rem; font-weight: 600;
}
.zonas .icono { width: 15px; height: 15px; color: var(--azul-600); }
.mapa { position: relative; height: 100%; min-height: 180px; border-radius: var(--radio); overflow: hidden; background: var(--navy-900); }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa__cargando { position: absolute; inset: 0; display: grid; place-items: center; font-size: .85rem; color: rgb(255 255 255 / .6); }
.mapa--vacio {
  background:
    radial-gradient(circle at 50% 50%, rgb(56 198 244 / .2), transparent 60%),
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--navy-900);
}
.mapa__radar { position: absolute; inset: 0; display: grid; place-items: center; }
.mapa__radar span {
  position: absolute; width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid rgb(56 198 244 / .6); animation: radar 3.6s var(--ease) infinite;
}
.mapa__radar span:nth-child(2) { animation-delay: 1.2s; }
.mapa__radar span:nth-child(3) { animation-delay: 2.4s; }
.mapa__pin { width: 34px; height: 34px; color: var(--celeste-400); fill: rgb(56 198 244 / .2); position: relative; }

/* formulario */
.formulario {
  position: relative; padding: clamp(24px, 4vw, 40px);
  background: var(--blanco); border-radius: 28px; border: 1px solid var(--gris-100);
  box-shadow: var(--sombra-l);
}
.formulario::before {
  content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--degradado);
}
.formulario__titulo { font-size: 1.45rem; }
.formulario__ayuda { margin: 6px 0 24px; font-size: .85rem; color: var(--gris-600); }
.campo { margin-bottom: 18px; }
.campo label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 700; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1.5px solid var(--gris-200); border-radius: 14px; background: var(--gris-50);
  font-size: 1rem; /* 16px evita zoom en iOS */
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.campo textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--gris-400); }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: var(--gris-400); }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--azul-600); background: var(--blanco);
  box-shadow: 0 0 0 4px rgb(29 91 255 / .12);
}
.campo__select { position: relative; }
.campo__select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--gris-600); border-bottom: 2px solid var(--gris-600); transform: rotate(45deg); pointer-events: none;
}
.campo select { padding-right: 44px; cursor: pointer; }
.campo select:invalid { color: var(--gris-400); }
.campo select option { color: var(--tinta); }
.campo__error { min-height: 0; font-size: .82rem; font-weight: 600; color: var(--error); }
.campo__error:not(:empty) { margin-top: 6px; }
.campo.is-invalido input, .campo.is-invalido select, .campo.is-invalido textarea { border-color: var(--error); background: #fff7f7; }
.campo.is-valido input, .campo.is-valido select, .campo.is-valido textarea { border-color: #3cb371; }
.campo--oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario .boton { margin-top: 6px; }
.formulario .boton[aria-busy="true"] { pointer-events: none; opacity: .75; }
.formulario__legal { margin-top: 14px; text-align: center; font-size: .8rem; color: var(--gris-400); }
.formulario__exito {
  position: absolute; inset: 0; z-index: 2; padding: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
  background: var(--blanco); border-radius: inherit;
  animation: aparecer .5s var(--ease);
}
.formulario__exito[hidden] { display: none; }
.formulario__exito h3 { font-size: 1.4rem; }
.formulario__exito p { color: var(--gris-600); max-width: 340px; }
.formulario__exito-icono {
  width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%;
  background: var(--degradado); color: var(--blanco); box-shadow: 0 14px 32px -10px rgb(29 91 255 / .6);
}
.formulario__exito-icono .icono { width: 34px; height: 34px; stroke-width: 2.4; }
@media (max-width: 999px) { .contacto { grid-template-columns: 1fr; } }
@media (max-width: 559px) {
  .datos { grid-template-columns: 1fr; gap: 18px; }
  .cobertura { grid-template-columns: 1fr; }
  .mapa { min-height: 210px; }
}

/* 15 ─ Pie --------------------------------------------------------------- */
.pie { background: var(--navy-950); color: rgb(255 255 255 / .65); padding-top: clamp(56px, 8vw, 88px); font-size: .92rem; }
.pie__grilla { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.logo--claro { color: var(--blanco); margin-bottom: 18px; }
.pie__marca p { max-width: 360px; }
.pie__titulo { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blanco); margin-bottom: 18px; }
.pie ul { display: grid; gap: 10px; }
.pie a:hover { color: var(--celeste-400); }
.pie__redes { display: flex; gap: 10px; margin-top: 20px; }
.pie__redes a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgb(255 255 255 / .14); }
.pie__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 96px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .82rem; color: rgb(255 255 255 / .45); }
@media (max-width: 799px) { .pie__grilla { grid-template-columns: 1fr 1fr; } .pie__marca { grid-column: 1 / -1; } }
@media (max-width: 479px) { .pie__grilla { grid-template-columns: 1fr; } }

/* 16 ─ WhatsApp flotante -------------------------------------------------- */
.wa-flotante {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.wa-flotante.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-flotante__boton {
  position: relative; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%;
  background: var(--wa); color: var(--blanco); box-shadow: 0 12px 30px -8px rgb(31 174 91 / .7);
  transition: transform .3s var(--ease);
}
.wa-flotante__boton::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--wa);
  animation: pulso 2.6s ease-out infinite; z-index: -1;
}
.wa-flotante__boton .icono { width: 30px; height: 30px; }
.wa-flotante:hover .wa-flotante__boton { transform: scale(1.08); }
.wa-flotante__burbuja {
  padding: 10px 16px; border-radius: 14px; background: var(--blanco); box-shadow: var(--sombra);
  font-size: .85rem; color: var(--tinta); white-space: nowrap;
  opacity: 0; transform: translateX(10px); transition: opacity .4s var(--ease) .1s, transform .4s var(--ease) .1s;
}
.wa-flotante__burbuja strong { color: var(--wa); }
.wa-flotante.is-saludo .wa-flotante__burbuja, .wa-flotante:hover .wa-flotante__burbuja { opacity: 1; transform: none; }
@media (max-width: 559px) { .wa-flotante__burbuja { display: none; } .wa-flotante__boton { width: 56px; height: 56px; } }

/* 17 ─ Visor (lightbox) --------------------------------------------------- */
.visor {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(3 9 18 / .94); color: var(--blanco);
  display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
}
.visor:not([open]) { display: none; }
.visor::backdrop { background: transparent; }
.visor[open] { animation: aparecer .3s var(--ease); }
.visor__figura { display: grid; justify-items: center; gap: 16px; padding: 64px 0 24px; max-height: 100dvh; }
.visor__figura img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; border-radius: var(--radio); box-shadow: 0 30px 80px rgb(0 0 0 / .5); object-fit: contain; }
.visor figcaption { display: grid; text-align: center; gap: 2px; font-size: .9rem; color: rgb(255 255 255 / .7); padding-inline: 16px; }
.visor figcaption strong { font-size: 1.05rem; color: var(--blanco); }
.visor__contador { font-size: .78rem; letter-spacing: .1em; color: rgb(255 255 255 / .45); margin-top: 4px; }
.visor__nav, .visor__cerrar {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: rgb(255 255 255 / .08); color: var(--blanco); transition: background-color .2s;
}
.visor__nav:hover, .visor__cerrar:hover { background: rgb(255 255 255 / .18); }
.visor__nav { justify-self: center; }
.visor__cerrar { position: absolute; top: 16px; right: 16px; z-index: 2; }
@media (max-width: 699px) {
  .visor { grid-template-columns: 1fr; }
  .visor__nav { position: absolute; bottom: 20px; }
  .visor__nav--prev { left: 20px; }
  .visor__nav--next { right: 20px; }
  .visor__figura { padding: 72px 12px 96px; }
}

/* 18 ─ Animaciones ------------------------------------------------------- */
@keyframes hero-zoom { to { transform: scale(1); } }
@keyframes flujo { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(350%); opacity: 0; } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes dial { to { stroke-dashoffset: 120; } }
@keyframes pulso { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes radar { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }
@keyframes aparecer { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero__aparecer { animation: aparecer .9s var(--ease) both; }
.hero__aparecer:nth-child(2) { animation-delay: .08s; }
.hero__aparecer:nth-child(3) { animation-delay: .16s; }
.hero__aparecer:nth-child(4) { animation-delay: .24s; }
.hero__aparecer:nth-child(5) { animation-delay: .32s; }
.termostato.hero__aparecer { animation: aparecer 1s .3s var(--ease) both, flotar 7s 1.3s ease-in-out infinite; }

/* Revelado al hacer scroll: solo se oculta si JS está activo */
.js [data-revelar] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease) var(--retraso, 0ms), transform .8s var(--ease) var(--retraso, 0ms);
}
.js [data-revelar].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-revelar] { opacity: 1; transform: none; }
  .hero__flujo { display: none; }
}

/* 19 ─ Sello de reseñas de Google ---------------------------------------- */
.google-sello {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 16px;
  transition: transform .3s var(--ease), background-color .3s, box-shadow .3s;
}
.google-sello:hover { transform: translateY(-2px); }
.google-sello__g {
  width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 12px; background: var(--blanco);
  box-shadow: inset 0 0 0 1px var(--gris-200);
}
.google-sello__g svg { width: 22px; height: 22px; }
.google-sello__texto { display: grid; line-height: 1.2; }
.google-sello__fila { display: flex; align-items: center; gap: 8px; }
.google-sello__fila strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.google-sello__estrellas { display: inline-flex; gap: 2px; }
.estrella { width: 15px; height: 15px; fill: #fbbc04; }
.google-sello__sub { font-size: .8rem; font-weight: 600; opacity: .75; margin-top: 2px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.google-sello:hover .google-sello__sub { text-decoration-color: currentColor; }

.google-sello--hero {
  margin-top: 28px; color: var(--blanco);
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.google-sello--hero:hover { background: rgb(255 255 255 / .14); }
.google-sello--claro { background: var(--blanco); border: 1px solid var(--gris-200); box-shadow: var(--sombra-s); }
.google-sello--claro:hover { box-shadow: var(--sombra); }
.contacto__google { margin-top: 24px; }
.cifra__sufijo { font-size: .7em; margin-left: 2px; }
