/* ==========================================================================
   Gabriel Refrigeration — Estilos del sitio
   Índice:
     1. Variables            6. Hero POV               11. Contacto: el aire se repara
     2. Base                 7. Secciones             12. Footer animado
     3. Utilidades           8. Servicios             13. WhatsApp flotante
     4. Botones              9. Experiencia POV       14. Animaciones y movimiento
     5. Navegación lateral  10. Beneficios y señales  15. Intro: tarjeta + aire acondicionado
   ========================================================================== */

/* 1. Variables
   ========================================================================== */
:root {
  /* Marca */
  --navy-950: #071326;
  --navy-900: #0A1A33;
  --navy-800: #11264A;
  --navy-700: #1A3561;
  --blue-700: #0F55B0;
  --blue-600: #1462C9;
  --blue-400: #5B9BEA;
  --blue-300: #93C0F7;
  --blue-100: #DCEAFB;
  --blue-50: #EEF5FD;
  --yellow-400: #F5B800;
  --red-500: #E5382D;
  --ice: #9CCBF7;

  /* Paleta viva (tomada del logo: amarillo, azul, cian y rojo) */
  --cyan-400: #22D3EE;
  --sky-500: #0EA5E9;
  --teal-500: #14B8A6;
  --orange-500: #F97316;
  --violet-600: #7C3AED;
  --green-500: #22C55E;
  --grad-brand: linear-gradient(90deg, #F5B800 0%, #1462C9 55%, #22D3EE 100%);
  --grad-cool: linear-gradient(135deg, #1462C9 0%, #22D3EE 100%);
  --grad-warm: linear-gradient(135deg, #F97316 0%, #E5382D 100%);
  /* Versiones con contraste suficiente para texto */
  --grad-text-cool: linear-gradient(135deg, #1462C9 0%, #0891B2 100%);
  --grad-text-warm: linear-gradient(135deg, #EA580C 0%, #DC2626 100%);
  --grad-cool-strong: linear-gradient(135deg, #1462C9 0%, #0E7490 100%);

  /* WhatsApp */
  --wa-brand: #25D366;
  --wa-700: #0E7A3F;
  --wa-800: #0B6B37;
  --wa-teal: #075E54;
  --wa-chat: #ECE5DD;

  /* Facebook */
  --fb: #0866FF;
  --fb-dark: #0656D6;
  --fb-light: #4C93FF;

  /* Neutros */
  --ink-900: #0F1B2D;
  --ink-700: #334155;
  --ink-500: #5B6B82;
  --line: #E3E9F1;
  --line-strong: #CBD5E1;
  --surface: #FFFFFF;
  --surface-alt: #F4F7FB;
  --on-dark: #C9D4E5;
  --on-dark-muted: #A9B8CF;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", var(--font); /* títulos */

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(15 27 45 / 6%), 0 2px 6px rgb(15 27 45 / 6%);
  --shadow: 0 18px 40px -18px rgb(15 27 45 / 28%);
  --shadow-lg: 0 30px 60px -24px rgb(10 26 51 / 45%);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 7rem);
  --dock-space: 0px; /* espacio que se reserva a cada lado para la barra lateral */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 1024px) {
  :root {
    --dock-space: 92px;
  }
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--blue-100);
  color: var(--navy-900);
}

/* 3. Utilidades
   ========================================================================== */
.container {
  width: 100%;
  max-width: min(calc(var(--container) + var(--gutter) * 2), calc(100% - var(--dock-space) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nowrap {
  white-space: nowrap;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 110;
  padding: .75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  flex: none;
  border-radius: 3px;
  background: var(--grad-brand);
}

.eyebrow--light {
  color: #fff;
}

/* Palabra destacada en los títulos, con degradado de la marca */
.hl {
  background: var(--grad-text-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hl--warm {
  background-image: var(--grad-text-warm);
}

.section--dark .hl {
  background-image: linear-gradient(135deg, #7DD3FC 0%, #22D3EE 100%);
}

@media (max-width: 479.98px) {
  .eyebrow {
    letter-spacing: .1em;
  }
}

/* 4. Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--lg {
  padding: 1rem 1.6rem;
  font-size: 1.04rem;
}

.btn--sm {
  padding: .6rem 1rem;
  font-size: .92rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgb(20 98 201 / 70%);
}

.btn--primary:hover {
  background: var(--blue-700);
}

.btn--whatsapp {
  background: var(--wa-700);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgb(14 122 63 / 70%);
}

.btn--whatsapp:hover {
  background: var(--wa-800);
}

.btn--facebook {
  background: var(--fb);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgb(8 102 255 / 65%);
}

.btn--facebook:hover {
  background: var(--fb-dark);
}

.btn--ghost {
  border-color: rgb(255 255 255 / 45%);
  background: rgb(255 255 255 / 8%);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 16%);
}

/* Botón de llamadas: amarillo de la marca con texto azul marino */
.btn--call {
  background: var(--yellow-400);
  color: var(--navy-900);
  box-shadow: 0 10px 24px -12px rgb(245 184 0 / 70%);
}

.btn--call:hover {
  background: #E0A800;
}

/* Grupo de botones: todos del mismo ancho. Si no caben en una fila
   (según --btn-min) se apilan ocupando todo el ancho. */
.btn-group {
  --btn-min: 14rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--btn-min)), 1fr));
  gap: .75rem;
}

.btn-group > .btn {
  white-space: normal;
}

@media (max-width: 599.98px) {
  /* En móvil todos los botones de acción tienen el mismo alto y tamaño de texto */
  .btn-group > .btn {
    padding: 1rem 1.25rem;
    font-size: 1.02rem;
  }
}

/* 5. Navegación lateral
   ==========================================================================
   Escritorio (≥ 1024 px): barra vertical fija a la derecha. Al pasar el cursor
   se despliegan los títulos y el que está bajo el cursor se agranda.
   Móvil y tablet: panel que entra desde la derecha con el botón de menú. */
.menu-toggle,
.nav-backdrop,
.dock__brand {
  display: none;
}

.dock {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  padding: .55rem .4rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  background: rgb(10 26 51 / 80%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px -16px rgb(7 19 38 / 55%);
  transform: translateY(-50%);
}

.dock__list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.dock__list--social {
  padding-top: .45rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.dock__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
}

.dock__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #DCE8F7;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}

.dock__icon .icon {
  width: 20px;
  height: 20px;
}

.dock__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 14px);
  padding: .45rem .95rem;
  border-radius: 999px;
  background: var(--navy-900);
  box-shadow: 0 10px 24px -12px rgb(7 19 38 / 70%);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(10px, -50%) scale(.9);
  transform-origin: right center;
  transition: opacity .25s var(--ease), transform .3s var(--ease), background-color .25s var(--ease);
}

/* Puente invisible entre el título y la barra para no perder el cursor */
.dock__label::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 18px;
}

/* La barra se despliega: aparecen todos los títulos */
.dock:hover .dock__label,
.dock:focus-within .dock__label {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%) scale(1);
}

/* El título bajo el cursor se agranda para pulsarlo fácilmente */
.dock__link:hover .dock__label,
.dock__link:focus-visible .dock__label {
  background: var(--grad-cool-strong);
  transform: translate(-6px, -50%) scale(1.22);
}

.dock__link:hover .dock__icon,
.dock__link:focus-visible .dock__icon {
  background: var(--grad-cool);
  color: #fff;
  transform: scale(1.22);
}

/* Efecto lupa: los vecinos del elemento señalado crecen un poco */
.dock__list li:hover + li .dock__icon,
.dock__list li:has(+ li:hover) .dock__icon {
  transform: scale(1.08);
}

.dock__link.is-active .dock__icon {
  background: rgb(255 255 255 / 12%);
  color: var(--yellow-400);
  box-shadow: inset 0 0 0 1.5px rgb(245 184 0 / 60%);
}

.dock__link--wa .dock__icon {
  color: var(--wa-brand);
}

.dock__link--fb .dock__icon {
  color: var(--fb-light);
}

.dock__link--wa:hover .dock__icon,
.dock__link--wa:focus-visible .dock__icon,
.dock__link--wa:hover .dock__label,
.dock__link--wa:focus-visible .dock__label {
  background: var(--wa-700);
  color: #fff;
}

.dock__link--fb:hover .dock__icon,
.dock__link--fb:focus-visible .dock__icon,
.dock__link--fb:hover .dock__label,
.dock__link--fb:focus-visible .dock__label {
  background: var(--fb);
  color: #fff;
}

.dock__link--call .dock__icon {
  color: var(--yellow-400);
}

.dock__link--call:hover .dock__icon,
.dock__link--call:focus-visible .dock__icon,
.dock__link--call:hover .dock__label,
.dock__link--call:focus-visible .dock__label {
  background: var(--yellow-400);
  color: var(--navy-900);
}

@media (max-width: 1023.98px) {
  .menu-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 57;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 50%;
    background: rgb(10 26 51 / 80%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px -12px rgb(7 19 38 / 60%);
    color: #fff;
  }

  .menu-toggle .icon {
    width: 24px;
    height: 24px;
  }

  .menu-toggle__close,
  .menu-toggle[aria-expanded="true"] .menu-toggle__open {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__close {
    display: block;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 54;
    display: block;
    background: rgb(7 19 38 / 55%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility 0s linear .3s;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .nav-open {
    overflow: hidden;
  }

  .dock {
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 56;
    width: min(86vw, 360px);
    align-items: stretch;
    gap: 1.25rem;
    padding: 6.75rem 1.25rem 1.5rem;
    overflow-y: auto;
    border-width: 0 0 0 1px;
    border-radius: 24px 0 0 24px;
    background: var(--navy-900);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
  }

  .dock.is-open {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }

  .dock__brand {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    display: block;
  }

  .dock__brand img {
    width: auto;
    height: 64px;
  }

  .dock__list {
    gap: .3rem;
  }

  .dock__list--social {
    padding-top: 1rem;
  }

  .dock__link {
    justify-content: flex-start;
    gap: .9rem;
    padding: .5rem .7rem;
    border-radius: 14px;
    transition: background-color .25s var(--ease);
  }

  .dock__link:hover,
  .dock__link:focus-visible {
    background: rgb(255 255 255 / 7%);
  }

  .dock__icon {
    width: 42px;
    height: 42px;
    flex: none;
    background: rgb(255 255 255 / 7%);
  }

  .dock__label,
  .dock:hover .dock__label,
  .dock:focus-within .dock__label {
    position: static;
    padding: 0;
    background: none;
    box-shadow: none;
    font-size: 1.15rem;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transform-origin: left center;
  }

  .dock__label::after {
    display: none;
  }

  /* El título tocado o señalado se agranda */
  .dock__link:hover .dock__label,
  .dock__link:focus-visible .dock__label,
  .dock__link--wa:hover .dock__label,
  .dock__link--wa:focus-visible .dock__label,
  .dock__link--fb:hover .dock__label,
  .dock__link--fb:focus-visible .dock__label,
  .dock__link--call:hover .dock__label,
  .dock__link--call:focus-visible .dock__label {
    background: none;
    color: #fff;
    transform: scale(1.12);
  }

  .dock__link:hover .dock__icon,
  .dock__link:focus-visible .dock__icon {
    transform: scale(1.08);
  }

  .dock__list li:hover + li .dock__icon,
  .dock__list li:has(+ li:hover) .dock__icon {
    transform: none;
  }
}

/* 6. Hero POV
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(7rem, 15vh, 9rem) 0 4.5rem;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__poster img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.hero__video.is-ready {
  opacity: 1;
}

/* Difuminado del hero: sin cuadros. Una sombra elíptica muy suave detrás del texto
   (sin bordes), un tinte frío ligero en todo el video y algo más de sombra arriba
   para el logo. Las letras llevan su propia sombra para leerse sobre zonas claras. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 62% at 24% 56%, rgb(4 14 34 / 58%) 0%, rgb(4 14 34 / 28%) 48%, rgb(4 14 34 / 0%) 78%),
    linear-gradient(110deg, rgb(6 26 64 / 34%) 0%, rgb(20 98 201 / 14%) 55%, rgb(34 211 238 / 10%) 100%),
    linear-gradient(180deg, rgb(4 14 34 / 50%) 0%, rgb(4 14 34 / 0%) 22%, rgb(4 14 34 / 0%) 82%, rgb(4 14 34 / 35%) 100%);
}

/* Logo y controles del video en la parte superior */
.hero__top {
  position: absolute;
  top: clamp(.75rem, 2vw, 1.5rem);
  right: 0;
  left: 0;
  z-index: 1;
}

.hero__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero__brand {
  border-radius: 12px;
}

.hero__brand img {
  width: auto;
  height: clamp(58px, 6vw, 84px);
  filter: drop-shadow(0 8px 16px rgb(0 0 0 / 35%));
}

.hero__hud {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Botón de llamadas en la parte superior del inicio */
.hero__call {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-right: .35rem;
  padding: .4rem 1rem .4rem .45rem;
  border-radius: 999px;
  background: var(--yellow-400);
  box-shadow: 0 10px 24px -12px rgb(245 184 0 / 75%);
  color: var(--navy-900);
  white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.hero__call:hover {
  background: #E0A800;
  transform: translateY(-1px);
}

.hero__call .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: rgb(10 26 51 / 12%);
}

.hero__call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hero__call-text small {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.hero__call-text strong {
  font-size: .95rem;
  font-weight: 800;
}

/* En celular se oculta: el botón "Llamar al…" con el número queda justo debajo */
@media (max-width: 599.98px) {
  .hero__call {
    display: none;
  }
}

.hero__content {
  position: relative;
}

/* Letras sueltas sobre el video, con sombra para que se lean en cualquier fotograma */
.hero__eyebrow {
  color: #FFD34D;
  text-shadow: 0 1px 10px rgb(4 14 34 / 75%);
}

.hero__title {
  margin-top: 1rem;
  font-size: clamp(1.9rem, 1.1rem + 3.3vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #fff;
  text-shadow: 0 4px 28px rgb(4 14 34 / 60%), 0 1px 3px rgb(4 14 34 / 50%);
}

.hero__title .w {
  display: inline-block;
}

/* "de aire acondicionado" con relleno escarchado: de blanco a azul hielo.
   (Su sombra va como filtro: text-shadow taparía el degradado.) */
.hero__title-accent {
  display: block;
  filter: drop-shadow(0 3px 14px rgb(4 14 34 / 65%));
}

.hero__title-accent .w {
  background: linear-gradient(180deg, #F2F8FF 0%, #A9D0FA 55%, #6CB2F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, .97rem + .3vw, 1.2rem);
  font-weight: 500;
  color: rgb(255 255 255 / 92%);
  text-shadow: 0 1px 12px rgb(4 14 34 / 80%);
}

/* "Llamar al +1 939-202-9114" (principal) y WhatsApp, del mismo ancho */
.hero__actions {
  --btn-min: 20.5rem;
  max-width: 42rem;
  margin-top: 2rem;
}

/* Animación del título: las palabras aparecen una a una al terminar la intro.
   --hero-start marca cuándo empieza (con la intro activa, cuando la tarjeta
   ya dejó ver el inicio de la página). */
.js {
  --hero-start: 7.2s;
}

.js.intro-off {
  --hero-start: .2s;
}

.js .hero__title .w {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(.4em);
  animation: hero-word .8s var(--ease) forwards;
  animation-delay: calc(var(--hero-start) + var(--i) * 70ms);
}

.js .hero__eyebrow,
.js .hero__lead,
.js .hero__actions {
  opacity: 0;
  animation: hero-fade .7s var(--ease) forwards;
}

.js .hero__eyebrow {
  animation-delay: var(--hero-start);
}

.js .hero__lead {
  animation-delay: calc(var(--hero-start) + .7s);
}

.js .hero__actions {
  animation-delay: calc(var(--hero-start) + .85s);
}

/* Si se salta la intro, el título se anima de inmediato */
.hero.is-replay .hero__title .w {
  animation-name: hero-word-replay;
  animation-delay: calc(.05s + var(--i) * 70ms);
}

.hero.is-replay .hero__eyebrow {
  animation-name: hero-fade-replay;
  animation-delay: 0s;
}

.hero.is-replay .hero__lead {
  animation-name: hero-fade-replay;
  animation-delay: .6s;
}

.hero.is-replay .hero__actions {
  animation-name: hero-fade-replay;
  animation-delay: .75s;
}

/* Indicador de cámara POV y control de pausa */
.rec {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .8rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: rgb(7 19 38 / 45%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: #fff;
}

.rec__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-500);
  animation: rec-pulse 1.6s ease-in-out infinite;
}

.is-paused .rec__dot {
  background: #94A3B8;
  animation: none;
}

.video-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  background: rgb(7 19 38 / 45%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.video-toggle:hover {
  border-color: rgb(255 255 255 / 50%);
  background: rgb(7 19 38 / 75%);
}

.video-toggle .icon {
  width: 16px;
  height: 16px;
}

.video-toggle__play,
.is-paused .video-toggle__pause {
  display: none;
}

.is-paused .video-toggle__play {
  display: block;
}

@media (max-width: 1023.98px) {
  .hero__hud {
    margin-right: 58px; /* espacio para el botón de menú */
  }
}

@media (max-width: 767.98px) {
  .hero {
    align-items: flex-end;
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  /* En celular el texto va abajo: la sombra suave se concentra ahí */
  .hero__overlay {
    background:
      radial-gradient(ellipse 120% 58% at 35% 100%, rgb(4 14 34 / 72%) 0%, rgb(4 14 34 / 38%) 50%, rgb(4 14 34 / 0%) 82%),
      linear-gradient(160deg, rgb(6 26 64 / 32%) 0%, rgb(20 98 201 / 14%) 60%, rgb(34 211 238 / 10%) 100%),
      linear-gradient(180deg, rgb(4 14 34 / 50%) 0%, rgb(4 14 34 / 0%) 24%);
  }

  /* Celulares angostos: "de aire acondicionado" se mantiene en una línea */
  @media (max-width: 379.98px) {
    .hero__title {
      font-size: 1.8rem;
    }
  }

  @media (max-width: 339.98px) {
    .hero__title {
      font-size: 1.62rem;
    }
  }

  @media (max-width: 359.98px) {
    .hero .eyebrow {
      font-size: .7rem;
      letter-spacing: .06em;
    }

    .hero__actions .btn {
      padding-inline: 1rem;
      font-size: .95rem;
    }
  }
}

@media (min-width: 480px) {
  .hero__title-accent {
    white-space: nowrap;
  }
}

/* 7. Secciones
   ========================================================================== */
.section {
  padding-block: var(--section-y);
}

.section--alt {
  background: linear-gradient(180deg, #EAF5FF 0%, #F6F9FD 100%);
}

/* Fondos con color suave para dar ritmo a la página */
.section--services {
  background:
    radial-gradient(38% 45% at 0% 0%, rgb(34 211 238 / 12%), rgb(34 211 238 / 0%) 70%),
    radial-gradient(38% 45% at 100% 100%, rgb(245 184 0 / 12%), rgb(245 184 0 / 0%) 70%),
    #fff;
}

.section--signs {
  background: linear-gradient(180deg, #FFF7E6 0%, #FFFFFF 85%);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__title {
  margin-top: .9rem;
  font-size: clamp(1.85rem, 1.45rem + 1.6vw, 2.7rem);
}

.section__lead {
  margin-top: 1rem;
  font-size: 1.07rem;
}

/* 8. Servicios
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.85rem 1.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

/* Cada servicio con su propio color */
.service-card:nth-child(1) { --accent: #1462C9; --accent-2: #22D3EE; }
.service-card:nth-child(2) { --accent: #0EA5E9; --accent-2: #14B8A6; }
.service-card:nth-child(3) { --accent: #F97316; --accent-2: #E5382D; }
.service-card:nth-child(4) { --accent: #7C3AED; --accent-2: #1462C9; }
.service-card:nth-child(5) { --accent: #F5B800; --accent-2: #F97316; }
.service-card:nth-child(6) { --accent: #0A1A33; --accent-2: #1462C9; }

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent, var(--blue-600)), var(--accent-2, var(--cyan-400)));
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--accent, #1462C9) 35%, #fff);
  box-shadow: 0 22px 44px -22px color-mix(in srgb, var(--accent, #1462C9) 55%, transparent);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.3rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent, var(--blue-600)), var(--accent-2, var(--cyan-400)));
  box-shadow: 0 12px 24px -12px var(--accent, var(--blue-600));
  color: #fff;
  transition: transform .35s var(--ease);
}

.service-card:hover .service-card__icon {
  transform: scale(1.08) rotate(-4deg);
}

.service-card__icon .icon {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.2rem;
}

.service-card p {
  flex: 1;
  margin-top: .6rem;
}

@media (max-width: 1023.98px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639.98px) {
  .services {
    grid-template-columns: 1fr;
  }
}

/* 9. Experiencia POV
   ========================================================================== */
.experience {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.experience .section__head {
  margin-bottom: 2rem;
}

.pov__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
}

.pov__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pov__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid rgb(255 255 255 / 85%);
  pointer-events: none;
}

.pov__corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.pov__corner--tr { top: 14px; right: 14px; border-bottom: 0; border-left: 0; border-top-right-radius: 6px; }
.pov__corner--bl { bottom: 14px; left: 14px; border-top: 0; border-right: 0; border-bottom-left-radius: 6px; }
.pov__corner--br { right: 14px; bottom: 14px; border-top: 0; border-left: 0; border-bottom-right-radius: 6px; }

.pov__rec,
.pov__time {
  position: absolute;
  top: 22px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .6rem;
  border-radius: 6px;
  background: rgb(7 19 38 / 50%);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.pov__rec { left: 48px; }
.pov__time { right: 48px; }

.pov__toggle {
  position: absolute;
  right: 26px;
  bottom: 26px;
}

.pov__caption {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--ink-500);
}

.pov__caption::before {
  content: "";
  width: 18px;
  height: 2px;
  flex: none;
  border-radius: 2px;
  background: var(--yellow-400);
}

.steps {
  display: grid;
  gap: 1.35rem;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.1rem;
}

.step:nth-child(1) { --accent: #1462C9; --accent-2: #22D3EE; }
.step:nth-child(2) { --accent: #14B8A6; --accent-2: #22D3EE; }
.step:nth-child(3) { --accent: #F5B800; --accent-2: #F97316; }
.step:nth-child(4) { --accent: #22C55E; --accent-2: #14B8A6; }

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 58px;
  bottom: -1.2rem;
  left: 25px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(color-mix(in srgb, var(--accent) 45%, transparent), rgb(255 255 255 / 0%));
}

.step__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent, var(--blue-600)), var(--accent-2, var(--cyan-400)));
  box-shadow: 0 12px 22px -12px var(--accent, var(--blue-600));
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.step h3 {
  margin-top: .15rem;
  font-size: 1.08rem;
}

.step p {
  margin-top: .3rem;
}

@media (max-width: 959.98px) {
  .experience {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479.98px) {
  .pov__corner {
    width: 18px;
    height: 18px;
  }

  .pov__corner--tl,
  .pov__corner--tr { top: 10px; }
  .pov__corner--bl,
  .pov__corner--br { bottom: 10px; }
  .pov__corner--tl,
  .pov__corner--bl { left: 10px; }
  .pov__corner--tr,
  .pov__corner--br { right: 10px; }

  .pov__rec,
  .pov__time {
    top: 14px;
    font-size: .62rem;
  }

  .pov__rec { left: 34px; }
  .pov__time { right: 34px; }

  .pov__toggle {
    right: 16px;
    bottom: 16px;
  }
}

/* 10. Beneficios y señales
   ========================================================================== */
.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--on-dark-muted);
}

.section--dark::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -220px;
  width: 680px;
  height: 680px;
  background: radial-gradient(closest-side, rgb(20 98 201 / 32%), rgb(20 98 201 / 0%));
  pointer-events: none;
}

.section--dark::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -200px;
  width: 620px;
  height: 620px;
  background: radial-gradient(closest-side, rgb(34 211 238 / 16%), rgb(34 211 238 / 0%));
  pointer-events: none;
}

.section--dark .container {
  position: relative;
  z-index: 1;
}

.section--dark .section__title {
  color: #fff;
}

.section--dark .eyebrow {
  color: var(--blue-300);
}

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

.benefit {
  padding: 1.75rem 1.6rem;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 4%);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.benefit:nth-child(1) { --accent: #22C55E; --accent-2: #14B8A6; }
.benefit:nth-child(2) { --accent: #F5B800; --accent-2: #F97316; }
.benefit:nth-child(3) { --accent: #22D3EE; --accent-2: #1462C9; }
.benefit:nth-child(4) { --accent: #7C3AED; --accent-2: #1462C9; }

.benefit:hover {
  border-color: color-mix(in srgb, var(--accent, #1462C9) 55%, transparent);
  background: rgb(255 255 255 / 7%);
  transform: translateY(-4px);
}

.benefit__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.2rem;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent, var(--blue-600)), var(--accent-2, var(--cyan-400)));
  box-shadow: 0 14px 26px -14px var(--accent, var(--blue-600));
  color: #fff;
}

.benefit__icon .icon {
  width: 24px;
  height: 24px;
}

.benefit h3 {
  font-size: 1.1rem;
  color: #fff;
}

.benefit p {
  margin-top: .5rem;
  font-size: .97rem;
}

@media (max-width: 1023.98px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 559.98px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}

.signs {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.signs__actions {
  --btn-min: 15rem;
  max-width: 20rem;
  margin-top: 2rem;
}

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

/* Cada señal con su color */
.sign:nth-child(1) { --sign-bg: #FFE4DC; --sign-fg: #D9480F; }
.sign:nth-child(2) { --sign-bg: #DDF4FF; --sign-fg: #0E7490; }
.sign:nth-child(3) { --sign-bg: #EDE7FF; --sign-fg: #6D28D9; }
.sign:nth-child(4) { --sign-bg: #DCFCE7; --sign-fg: #15803D; }
.sign:nth-child(5) { --sign-bg: #FEF3C7; --sign-fg: #A16207; }
.sign:nth-child(6) { --sign-bg: #FEE2E2; --sign-fg: #B91C1C; }

.sign {
  display: flex;
  align-items: center;
  gap: .95rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 4px 0 0 var(--sign-fg, #9A5B00), var(--shadow-sm);
  font-weight: 650;
  line-height: 1.4;
  color: var(--ink-900);
}

.sign__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--sign-bg, #FFF4DB);
  color: var(--sign-fg, #9A5B00);
}

@media (max-width: 959.98px) {
  .signs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 519.98px) {
  .signs__list {
    grid-template-columns: 1fr;
  }
}

/* 11. Contacto: el aire acondicionado se repara al llenar el formulario
   ==========================================================================
   data-ac-state en .ac-lab: "broken" (vacío) → "repairing" → "working" (listo).
   --frost (0–1) en el formulario controla la escarcha. */
.section--contact {
  padding-bottom: calc(var(--section-y) + clamp(40px, 6vw, 80px));
  background: linear-gradient(180deg, #EEF7FF 0%, #FFFFFF 70%);
}

.contact {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  grid-template-areas:
    "lab form"
    "channels form";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 1.25rem;
  align-items: start;
}

.ac-lab {
  --wind-angle: 4deg;
  --wind-reach: 30rem;
  position: relative;
  z-index: 1;
  grid-area: lab;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 80% at 50% 0%, #FFFFFF 0%, #F2F6FB 70%);
  text-align: center;
}

.ac-lab__unit {
  position: relative;
  width: min(100%, 360px);
  margin-top: .5rem;
}

.ac-lab__img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 26px rgb(15 27 45 / 18%));
  transition: filter .8s var(--ease);
}

/* Pantalla digital del equipo */
.ac-lab__display {
  position: absolute;
  top: 30%;
  left: 77%;
  min-width: 3.1em;
  padding: .2em .45em;
  border-radius: 6px;
  background: #0F1B2D;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .06em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transform: translate(-50%, -50%);
  transition: color .4s var(--ease), text-shadow .4s var(--ease);
}

.ac-lab__led {
  position: absolute;
  top: 79.5%;
  left: 96.2%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}

/* Humo: solo cuando el equipo tiene falla */
.ac-lab__smoke {
  position: absolute;
  inset: -12% 0 auto;
  height: 70%;
  pointer-events: none;
}

.ac-lab__smoke i {
  position: absolute;
  bottom: 30%;
  left: var(--x);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(71 85 105 / 70%), rgb(71 85 105 / 0%) 70%);
  filter: blur(1px);
  opacity: 0;
}

/* Corrientes de aire: color, alcance y ritmo cambian según el estado */
.ac-lab__wind {
  position: absolute;
  top: 90%;
  left: 14%;
  width: 0;
  height: 110px;
  pointer-events: none;
  transform: rotate(var(--wind-angle));
  transform-origin: left top;
}

.ac-lab__wind i {
  position: absolute;
  top: var(--y);
  left: 0;
  width: var(--w);
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgb(255 255 255 / 0%), var(--wind-color, #3B82F6) 45%, rgb(255 255 255 / 0%));
  transform-origin: left center;
  opacity: 0;
  animation: lab-wind var(--wind-speed, 1.4s) cubic-bezier(.3, .4, .5, 1) var(--d) infinite;
}

.ac-lab__flake {
  position: absolute;
  top: var(--y);
  left: 0;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #7FB2F0;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
}

.ac-lab__status {
  display: grid;
  gap: .25rem;
  max-width: 26rem;
}

.ac-lab__status strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink-900);
  transition: color .4s var(--ease);
}

.ac-lab__status span {
  font-size: .97rem;
  color: var(--ink-500);
}

.ac-lab__meter {
  width: min(100%, 240px);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #E2E8F0;
}

.ac-lab__meter span {
  display: block;
  width: calc(var(--progress, 0) * 100%);
  height: 100%;
  border-radius: inherit;
  background: #EF4444;
  transition: width .6s var(--ease), background-color .4s var(--ease);
}

/* — Con falla (formulario vacío) — */
.ac-lab[data-ac-state="broken"] {
  --wind-color: rgb(234 88 12 / 70%);
  --wind-dist: 7rem;
  --wind-speed: 1.9s;
  --wind-peak: .7;
}

.ac-lab[data-ac-state="broken"] .ac-lab__img {
  filter: grayscale(.35) sepia(.5) saturate(1.4) hue-rotate(-14deg) brightness(.93) drop-shadow(0 18px 26px rgb(15 27 45 / 18%));
  animation: ac-rattle 2.8s ease-in-out infinite;
}

.ac-lab[data-ac-state="broken"] .ac-lab__display {
  color: #FF5A4F;
  text-shadow: 0 0 8px rgb(255 90 79 / 70%);
  animation: blink 1s ease-in-out infinite;
}

.ac-lab[data-ac-state="broken"] .ac-lab__led {
  background: #FF5A4F;
  box-shadow: 0 0 8px 3px rgb(255 90 79 / 60%);
  animation: blink 1s ease-in-out infinite;
}

.ac-lab[data-ac-state="broken"] .ac-lab__smoke i {
  animation: smoke-rise 2.4s ease-out var(--d) infinite;
}

.ac-lab[data-ac-state="broken"] .ac-lab__status strong {
  color: #C2410C;
}

/* — Reparando (formulario a medias) — */
.ac-lab[data-ac-state="repairing"] {
  --wind-color: rgb(148 163 184 / 85%);
  --wind-dist: 13rem;
  --wind-speed: 1.6s;
  --wind-peak: .85;
}

.ac-lab[data-ac-state="repairing"] .ac-lab__img {
  filter: grayscale(.12) sepia(.15) saturate(1.1) drop-shadow(0 18px 26px rgb(15 27 45 / 18%));
}

.ac-lab[data-ac-state="repairing"] .ac-lab__display {
  color: var(--yellow-400);
  text-shadow: 0 0 8px rgb(245 184 0 / 60%);
}

.ac-lab[data-ac-state="repairing"] .ac-lab__led {
  background: var(--yellow-400);
  box-shadow: 0 0 8px 3px rgb(245 184 0 / 55%);
}

.ac-lab[data-ac-state="repairing"] .ac-lab__status strong {
  color: #A16207;
}

.ac-lab[data-ac-state="repairing"] .ac-lab__meter span {
  background: var(--yellow-400);
}

/* — Funcionando (formulario listo): sopla aire frío hacia el formulario — */
.ac-lab[data-ac-state="working"] {
  --wind-color: rgb(59 130 246 / 90%);
  --wind-dist: var(--wind-reach);
  --wind-speed: 1.15s;
  --wind-peak: 1;
  background: radial-gradient(120% 80% at 50% 0%, #FFFFFF 0%, #E6F1FD 75%);
}

.ac-lab[data-ac-state="working"] .ac-lab__unit {
  animation: ac-power .7s var(--ease);
}

.ac-lab[data-ac-state="working"] .ac-lab__wind i {
  height: 5px;
  box-shadow: 0 0 12px rgb(59 130 246 / 45%);
}

.ac-lab[data-ac-state="working"] .ac-lab__display {
  color: #5EC8FF;
  text-shadow: 0 0 8px rgb(94 200 255 / 75%);
}

.ac-lab[data-ac-state="working"] .ac-lab__led {
  background: #5EC8FF;
  box-shadow: 0 0 8px 3px rgb(94 200 255 / 70%);
}

.ac-lab[data-ac-state="working"] .ac-lab__flake {
  animation: lab-flake 1.6s ease-out var(--d) infinite;
}

.ac-lab[data-ac-state="working"] .ac-lab__status strong {
  color: var(--blue-600);
}

.ac-lab[data-ac-state="working"] .ac-lab__meter span {
  background: linear-gradient(90deg, #60A5FA, #2563EB);
}

/* Formulario */
.form-card {
  position: relative;
  grid-area: form;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  transition: border-color .6s var(--ease), box-shadow .6s var(--ease);
}

.form-card > * {
  position: relative;
  z-index: 1;
}

/* Escarcha que avanza desde el lado por donde llega el aire */
.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgb(219 234 254 / 95%) 0%, rgb(219 234 254 / 0%) 38%),
    radial-gradient(70% 40% at 0% 0%, rgb(191 219 254 / 85%), rgb(191 219 254 / 0%) 70%),
    radial-gradient(70% 40% at 0% 100%, rgb(191 219 254 / 85%), rgb(191 219 254 / 0%) 70%),
    radial-gradient(60% 35% at 100% 0%, rgb(224 242 254 / 75%), rgb(224 242 254 / 0%) 70%);
  opacity: var(--frost, 0);
  pointer-events: none;
  transition: opacity .8s var(--ease);
}

.form-card.is-frozen {
  border-color: var(--ice);
  box-shadow: 0 0 0 4px rgb(147 192 247 / 22%), 0 24px 60px -24px rgb(37 99 235 / 45%);
}

.form-card__frost {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.form-card__frost svg {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--s);
  height: var(--s);
  fill: none;
  stroke: #8FBEF2;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  transform: scale(.3) rotate(-60deg);
  transition: opacity .6s var(--ease) var(--d), transform .9s var(--ease) var(--d);
}

.form-card.is-frozen .form-card__frost svg {
  opacity: .9;
  transform: none;
  animation: flake-twinkle 3s ease-in-out infinite;
}

.form-card.is-frozen .form-card__submit {
  animation: btn-glow 2s ease-in-out infinite;
}

.form-card h3 {
  font-size: 1.3rem;
}

.form-card > p:not(.form-note):not(.form-status) {
  margin-top: .35rem;
  color: var(--ink-500);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-block: 1.5rem;
}

.field {
  display: grid;
  gap: .4rem;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-900);
}

.field label span {
  font-weight: 500;
  color: var(--ink-500);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--ink-900);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .6s var(--ease);
}

.form-card.is-frozen .field input,
.form-card.is-frozen .field select,
.form-card.is-frozen .field textarea {
  border-color: #B9D7F7;
  background-color: rgb(255 255 255 / 88%);
}

.field ::placeholder {
  color: #8A98AD;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field select {
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right .85rem center;
  background-repeat: no-repeat;
  background-size: 18px;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgb(20 98 201 / 15%);
}

.field input:user-invalid,
.field select:user-invalid {
  border-color: #DC2626;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: .9rem;
  font-size: .85rem;
  color: var(--ink-500);
}

.form-note .icon {
  width: 16px;
  height: 16px;
  margin-top: .15rem;
}

.form-status {
  margin-top: .8rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  background: #EAF7EF;
  font-size: .9rem;
  font-weight: 600;
  color: var(--wa-800);
}

.form-status a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Canales oficiales: WhatsApp y Facebook */
.contact__channels {
  grid-area: channels;
  text-align: center;
}

.channels__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: .8rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.channels__label .icon {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
}

/* "Llamar al…" con el número y Facebook, uno debajo del otro a todo el ancho */
.channels {
  --btn-min: 100%;
}

@media (max-width: 959.98px) {
  .contact {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lab"
      "form"
      "channels";
    row-gap: 1.5rem;
  }

  /* El equipo queda justo encima del formulario y sopla hacia abajo */
  .ac-lab {
    --wind-angle: 76deg;
    --wind-reach: 10rem;
    padding-bottom: 1rem;
  }

  .ac-lab__status { order: -2; }
  .ac-lab__meter { order: -1; }

  .ac-lab__wind {
    left: 62%;
  }

  .form-card::before {
    background:
      linear-gradient(180deg, rgb(219 234 254 / 95%) 0%, rgb(219 234 254 / 0%) 34%),
      radial-gradient(60% 40% at 0% 0%, rgb(191 219 254 / 85%), rgb(191 219 254 / 0%) 70%),
      radial-gradient(60% 40% at 100% 0%, rgb(191 219 254 / 85%), rgb(191 219 254 / 0%) 70%);
  }
}

@media (max-width: 519.98px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card .btn--lg {
    white-space: normal;
  }
}

/* 12. Footer animado
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark);
}

/* Ondas de aire que se desplazan sobre el borde superior */
.footer__waves {
  position: absolute;
  right: 0;
  bottom: calc(100% - 1px);
  left: 0;
  height: clamp(44px, 6vw, 90px);
  overflow: hidden;
  pointer-events: none;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  max-width: none;
  height: 100%;
  animation: wave-drift 20s linear infinite;
}

.wave--back {
  fill: var(--blue-600);
  opacity: .18;
  animation-duration: 34s;
  animation-direction: reverse;
}

.wave--mid {
  fill: var(--navy-700);
  opacity: .45;
  animation-duration: 26s;
}

.wave--front {
  fill: var(--navy-900);
  animation-duration: 18s;
}

/* Aire acondicionado que sopla sobre el footer: aparece y se enciende cuando el
   footer entra en pantalla (.is-visible), espejado para soplar hacia la izquierda. */
.footer__ac-wrap {
  position: absolute;
  top: calc(clamp(44px, 6vw, 90px) * -1 + 4px);
  right: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.footer__ac-row {
  display: flex;
  justify-content: flex-end;
}

.footer__ac {
  position: relative;
  width: clamp(140px, 16vw, 230px);
  opacity: 0;
  transform: scaleX(-1) translateY(-16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.site-footer.is-visible .footer__ac {
  opacity: 1;
  transform: scaleX(-1);
}

.footer__ac-unit {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 22px rgb(0 0 0 / 40%));
}

.footer__ac-led {
  position: absolute;
  top: 79.5%;
  left: 96.2%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5EC8FF;
  box-shadow: 0 0 8px 3px rgb(94 200 255 / 75%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .3s ease .7s;
}

.site-footer.is-visible .footer__ac-led {
  opacity: 1;
}

.footer__ac-mist {
  position: absolute;
  top: 80%;
  right: 6%;
  left: 6%;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(147 192 247 / 55%), rgb(147 192 247 / 0%));
  opacity: 0;
  transition: opacity .6s ease .9s;
}

.site-footer.is-visible .footer__ac-mist {
  opacity: 1;
}

.footer__ac-wind {
  position: absolute;
  top: 88%;
  left: 12%;
  width: 0;
  height: 120px;
  transform: rotate(16deg);
  transform-origin: left top;
}

.footer__ac-wind i {
  position: absolute;
  top: var(--y);
  left: 0;
  width: var(--w);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgb(147 192 247 / 0%), rgb(147 192 247 / 75%) 45%, rgb(147 192 247 / 0%));
  transform-origin: left center;
  opacity: 0;
}

.footer__ac-flake {
  position: absolute;
  top: var(--y);
  left: 0;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #A9CDF7;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
}

.site-footer.is-visible .footer__ac-wind i {
  animation: footer-wind 1.8s cubic-bezier(.3, .4, .5, 1) calc(1s + var(--d)) infinite;
}

.site-footer.is-visible .footer__ac-flake {
  animation: footer-flake 2.4s ease-out calc(1.2s + var(--d)) infinite;
}

/* El contenido del footer queda por encima de las corrientes de aire */
.footer__main {
  position: relative;
  z-index: 3;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1.1fr 1.4fr;
  gap: 2.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
}

.brand__logo {
  width: auto;
  height: 104px;
  filter: drop-shadow(0 6px 12px rgb(0 0 0 / 30%));
  transition: transform .3s var(--ease);
}

.brand:hover .brand__logo {
  transform: scale(1.03);
}

.footer__brand p {
  max-width: 34ch;
  margin-block: 1.15rem 1.4rem;
  color: var(--on-dark-muted);
}

.footer__title {
  margin-bottom: 1.15rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
}

.footer__title::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: .6rem;
  border-radius: 3px;
  background: var(--grad-brand);
}

.footer__links li + li,
.footer__contact li + li {
  margin-top: .7rem;
}

.footer__links a,
.footer__contact a {
  position: relative;
  transition: color .2s var(--ease);
}

.footer__links a::after,
.footer__contact a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--yellow-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}

.footer__links a:hover,
.footer__contact a:hover {
  color: #fff;
}

.footer__links a:hover::after,
.footer__contact a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  overflow-wrap: anywhere;
}

.footer__contact .icon {
  width: 18px;
  height: 18px;
  margin-top: .2rem;
  color: var(--blue-300);
}

.footer__contact li:nth-child(1) .icon { color: var(--yellow-400); }
.footer__contact li:nth-child(2) .icon { color: var(--wa-brand); }
.footer__contact li:nth-child(3) .icon { color: #7DD3FC; }
.footer__contact li:nth-child(4) .icon { color: var(--fb-light); }
.footer__contact li:nth-child(5) .icon { color: #FF6B5E; }

/* Mapa de Google */
.map {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius);
  background: var(--navy-800);
  box-shadow: 0 18px 40px -20px rgb(0 0 0 / 55%);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .8rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--on-dark);
  transition: color .2s var(--ease);
}

.map__link:hover {
  color: #fff;
}

.map__link .icon {
  width: 16px;
  height: 16px;
  transition: transform .25s var(--ease);
}

.map__link:hover .icon {
  transform: translateX(3px);
}

.footer__bottom {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid rgb(255 255 255 / 8%);
  background: var(--navy-950);
}

/* Destello que recorre la línea superior */
.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, rgb(245 184 0 / 0%), rgb(245 184 0 / 85%), rgb(34 211 238 / 85%), rgb(34 211 238 / 0%));
  animation: line-sweep 7s ease-in-out infinite;
}

/* Copyright a la izquierda (se ajusta en dos líneas si falta espacio),
   marca de agua y "volver arriba" siempre a la derecha */
.footer__bottom-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.4rem;
  font-size: .88rem;
  color: var(--on-dark-muted);
}

/* Marca de agua VYS Digital */
.watermark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  opacity: .72;
  transition: opacity .3s var(--ease);
}

.watermark:hover {
  opacity: 1;
}

.watermark__logo {
  padding: .3rem .5rem;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 6px;
  background: linear-gradient(110deg, #fff 40%, var(--yellow-400) 50%, #fff 60%) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .14em;
  animation: shimmer 6s ease-in-out infinite;
}

.watermark__text {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.to-top {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 12px;
  color: #fff;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.to-top:hover {
  border-color: var(--blue-600);
  background: var(--blue-600);
  transform: translateY(-3px);
}

/* Entrada escalonada de las columnas */
.js [data-footer-item] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}

.js .site-footer.is-visible [data-footer-item] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1099.98px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 559.98px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Espacio para el botón flotante de WhatsApp, que se eleva sobre la barra inferior */
  .footer__main {
    padding-bottom: 5.5rem;
  }

  /* Áreas táctiles más cómodas para los enlaces del footer */
  .footer__links li + li,
  .footer__contact li + li {
    margin-top: .95rem;
  }

  .footer__bottom-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* 13. WhatsApp flotante
   ========================================================================== */
/* --wa-lift (JS) eleva el botón cuando la barra inferior del footer está visible,
   para no tapar la marca de agua ni el botón "volver arriba". */
.wa-widget {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.6rem);
  bottom: clamp(1rem, 2.5vw, 1.6rem);
  z-index: 60;
  transform: translateY(calc(var(--wa-lift, 0px) * -1));
  transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
}

/* is-tucked (JS): se oculta mientras los botones del hero, que ya incluyen
   WhatsApp, están en pantalla; así nunca hay dos botones de WhatsApp juntos. */
.wa-widget.is-tucked:not(.is-open) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5rem);
}

.wa-fab {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa-brand);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgb(37 211 102 / 65%), 0 4px 12px rgb(7 19 38 / 18%);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}

.wa-fab:hover {
  transform: scale(1.06);
}

.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--wa-brand);
  border-radius: 50%;
  animation: wa-ring 3s ease-out infinite;
}

.wa-fab .icon {
  width: 30px;
  height: 30px;
}

.wa-fab__close {
  display: none;
}

.wa-widget.is-open .wa-fab {
  background: var(--wa-teal);
}

.wa-widget.is-open .wa-fab::before {
  animation: none;
  opacity: 0;
}

.wa-widget.is-open .wa-fab__wa {
  display: none;
}

.wa-widget.is-open .wa-fab__close {
  display: block;
  width: 26px;
  height: 26px;
}

.wa-fab__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--red-500);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.wa-fab__badge[hidden] {
  display: none;
}

.wa-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 2rem));
  max-height: calc(100vh - 120px - var(--wa-lift, 0px));
  max-height: calc(100svh - 120px - var(--wa-lift, 0px));
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgb(10 26 51 / 50%), 0 0 0 1px rgb(15 27 45 / 6%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}

.wa-widget.is-open .wa-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.wa-panel__header {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.1rem;
  background: var(--wa-teal);
  color: #fff;
}

.wa-panel__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: #fff;
}

.wa-panel__avatar img {
  width: 88%;
  height: auto;
}

.wa-panel__avatar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--wa-teal);
  border-radius: 50%;
  background: var(--wa-brand);
}

.wa-panel__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.wa-panel__status {
  font-size: .8rem;
  opacity: .85;
}

.wa-panel__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  margin-left: auto;
  border-radius: 50%;
  color: #fff;
  transition: background-color .2s var(--ease);
}

.wa-panel__close:hover {
  background: rgb(255 255 255 / 15%);
}

.wa-panel__body {
  padding: 1.1rem;
  overflow-y: auto;
  background: var(--wa-chat);
}

.wa-bubble {
  position: relative;
  max-width: 90%;
  padding: .7rem .9rem;
  border-radius: 0 12px 12px;
  background: #fff;
  box-shadow: 0 1px 1px rgb(0 0 0 / 8%);
  font-size: .93rem;
  line-height: 1.5;
  color: var(--ink-900);
  animation: bubble-in .4s var(--ease) both;
}

.wa-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  border-width: 0 8px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}

.wa-options {
  display: grid;
  gap: .5rem;
  margin-top: .9rem;
}

.wa-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .72rem .9rem;
  border: 1px solid rgb(14 122 63 / 20%);
  border-radius: 12px;
  background: #fff;
  font-size: .92rem;
  font-weight: 650;
  color: var(--wa-800);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.wa-option .icon {
  width: 16px;
  height: 16px;
}

.wa-option:hover {
  border-color: rgb(14 122 63 / 45%);
  background: #F0FBF4;
  transform: translateX(3px);
}

.wa-panel__footer {
  padding: .9rem 1.1rem 1.1rem;
  background: #fff;
}

.wa-teaser {
  position: absolute;
  right: 74px;
  bottom: 9px;
  display: flex;
  align-items: center;
  gap: .25rem;
  width: max-content;
  max-width: min(260px, calc(100vw - 110px));
  padding: .35rem .35rem .35rem .95rem;
  border-radius: 14px 14px 4px;
  background: #fff;
  box-shadow: var(--shadow), 0 0 0 1px rgb(15 27 45 / 6%);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.wa-teaser.is-visible {
  opacity: 1;
  transform: none;
}

.wa-teaser[hidden] {
  display: none;
}

.wa-teaser__open {
  padding: .3rem 0;
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  color: var(--ink-900);
}

.wa-teaser__close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  color: var(--ink-500);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.wa-teaser__close:hover {
  background: var(--surface-alt);
  color: var(--ink-900);
}

.wa-teaser__close .icon {
  width: 16px;
  height: 16px;
}

/* 14. Animaciones y movimiento
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes hero-word {
  to { opacity: 1; filter: none; transform: none; }
}

@keyframes hero-word-replay {
  to { opacity: 1; filter: none; transform: none; }
}

@keyframes hero-fade {
  from { transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-fade-replay {
  from { transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

@keyframes wave-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes line-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(340%); }
}

@keyframes shimmer {
  0%, 55% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@keyframes wa-ring {
  0% { opacity: .75; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes lab-wind {
  0% { opacity: 0; transform: translateX(0) scaleX(.3); }
  20% { opacity: var(--wind-peak, 1); }
  100% { opacity: 0; transform: translateX(var(--wind-dist, 20rem)) scaleX(1); }
}

@keyframes lab-flake {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--wind-dist, 20rem), 24px) rotate(220deg); }
}

@keyframes ac-rattle {
  0%, 82%, 100% { transform: none; }
  85% { transform: translateX(-1.5px) rotate(-.6deg); }
  88% { transform: translateX(1.5px) rotate(.6deg); }
  91% { transform: translateX(-1px) rotate(-.4deg); }
  94% { transform: translateX(1px) rotate(.3deg); }
}

@keyframes smoke-rise {
  0% { opacity: 0; transform: translateY(0) scale(.5); }
  25% { opacity: .9; }
  100% { opacity: 0; transform: translate(10px, -70px) scale(1.9); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

@keyframes ac-power {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: none; }
}

@keyframes flake-twinkle {
  0%, 100% { opacity: .9; }
  50% { opacity: .45; }
}

@keyframes footer-wind {
  0% { opacity: 0; transform: translateX(0) scaleX(.3); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translateX(min(62vw, 46rem)) scaleX(1); }
}

@keyframes footer-flake {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translate(min(50vw, 36rem), 30px) rotate(220deg); }
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 10px 24px -12px rgb(14 122 63 / 70%); }
  50% { box-shadow: 0 10px 30px -8px rgb(37 211 102 / 75%), 0 0 0 4px rgb(37 211 102 / 15%); }
}

/* "Reducir movimiento": se suavizan las animaciones en lugar de eliminarlas.
   Sin desplazamientos ni sacudidas (solo fundidos), ondas más lentas y sin pulsos. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal],
  .js [data-footer-item] {
    transform: none;
    transition-property: opacity;
  }

  .js .hero__title .w {
    filter: none;
    transform: none;
  }

  .ac-lab[data-ac-state="broken"] .ac-lab__img {
    animation: none;
  }

  .site-footer.is-visible .footer__ac-wind i {
    animation-duration: 3.6s;
  }

  .wave--back { animation-duration: 120s; }
  .wave--mid { animation-duration: 100s; }
  .wave--front { animation-duration: 80s; }

  .wa-fab::before {
    animation: none;
    opacity: 0;
  }
}

/* 15. Intro: tarjeta de presentación + aire acondicionado
   ==========================================================================
   La tarjeta de presentación del negocio es el fondo. El aire acondicionado
   aparece, enciende, sopla sobre la tarjeta y luego se la lleva para mostrar
   la página completa. Toda la secuencia es CSS (termina sola aunque falle
   el JavaScript).
   Línea de tiempo (≈ 8.6 s, máximo pedido: 9 s):
     0.0 s  tarjeta: logo, texto y franja de contacto (hasta 2 s)
     1.0 s  entra el equipo            2.4 s  se enciende (luz)
     3.0 s  sale el aire               3.6 s  la tarjeta se mueve con el viento
     6.0 s  el aire se lleva la tarjeta (termina en 7.8 s)
     7.2 s  aparece el título          7.4 s  sale el equipo
     8.6 s  la intro se oculta
   Se configura con data-intro en <html>: "always", "session" u "off". */
.intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  cursor: pointer;
  animation: intro-done .01s linear 8.6s forwards;
}

.js:not(.intro-off) .intro {
  display: block;
}

.intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}

/* Tarjeta de presentación a pantalla completa */
.intro__card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: radial-gradient(90% 70% at 66% 42%, #FFFFFF 0%, #F7F9FC 55%, #EBEFF5 100%);
  box-shadow: -50px 0 90px -30px rgb(7 19 38 / 55%);
  transform-origin: 30% 60%;
  animation: intro-card-flutter 2.4s ease-in-out 3.6s, intro-card-blow 1.8s cubic-bezier(.5, 0, .35, 1) 6s forwards;
}

.intro__card-body {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(.75rem, 2vh, 1.25rem);
  padding: 4vh 5vw 3vh 34vw;
}

.intro__logo {
  width: clamp(240px, 36vw, 540px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgb(15 27 45 / 20%));
  animation: intro-pop .9s var(--ease) .2s both;
}

.intro__tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, .82rem + .6vw, 1.4rem);
  font-weight: 700;
  text-align: center;
  color: var(--ink-700);
  animation: intro-rise .8s var(--ease) .7s both;
}

/* Franja inferior, como en la tarjeta impresa */
.intro__band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 2rem;
  min-height: clamp(64px, 12vh, 108px);
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  overflow: hidden;
  background: #13213F;
  font-size: clamp(.95rem, .82rem + .5vw, 1.25rem);
  font-weight: 700;
  color: #fff;
}

.intro__band::before {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 62%;
  width: 16px;
  background: var(--yellow-400);
  box-shadow: 26px 0 0 var(--blue-600);
  transform: skewX(-28deg);
}

.intro__band::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--yellow-400) 0 62%, var(--blue-600) 62% 100%);
}

.intro__band-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  animation: intro-rise .7s var(--ease) 1.1s both;
}

.intro__band-item + .intro__band-item {
  animation-delay: 1.3s;
}

.intro__band-item .icon {
  width: 1.35em;
  height: 1.35em;
}

/* Llamadas y WhatsApp comparten número: los dos íconos van juntos */
.intro__icon-tel {
  color: var(--yellow-400);
}

.intro__icon-wa {
  margin-left: -.25rem;
  color: var(--wa-brand);
}

/* El equipo va arriba a la izquierda, como montado en la pared */
.intro__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding: 13vh 0 0 clamp(1rem, 5vw, 5rem);
  pointer-events: none;
}

.intro__ac {
  position: relative;
  width: clamp(220px, 27vw, 390px);
  opacity: 0;
  animation: intro-ac-in .9s var(--ease) 1s forwards, intro-ac-out .7s ease-in 7.4s forwards;
}

.intro__unit {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 30px rgb(15 27 45 / 18%)) drop-shadow(0 2px 4px rgb(15 27 45 / 10%));
}

/* Luz de encendido sobre la pantalla del equipo */
.intro__led {
  position: absolute;
  top: 79.5%;
  left: 96.2%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5EC8FF;
  box-shadow: 0 0 8px 3px rgb(94 200 255 / 75%);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: intro-led-on .7s ease-out 2.4s forwards;
}

/* Bruma fría bajo la salida de aire */
.intro__mist {
  position: absolute;
  top: 82%;
  right: 4%;
  left: 4%;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(147 192 247 / 80%), rgb(147 192 247 / 0%));
  opacity: 0;
  animation: intro-fade-in .6s ease-out 2.9s forwards, intro-fade-out .6s ease-in 7.6s forwards;
}

/* Corrientes de aire y copos que viajan hacia la tarjeta */
.intro__wind {
  position: absolute;
  top: 90%;
  left: 6%;
  width: 100vw;
  height: 170px;
  opacity: 0;
  animation: intro-fade-in .4s ease-out 3s forwards, intro-fade-out .6s ease-in 7.6s forwards;
}

.intro__wind i {
  position: absolute;
  top: var(--y);
  left: 0;
  width: var(--w);
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgb(147 192 247 / 0%), rgb(59 130 246 / 85%) 45%, rgb(147 192 247 / 0%));
  box-shadow: 0 0 12px rgb(91 155 234 / 35%);
  transform-origin: left center;
  opacity: 0;
  animation: intro-streak 1.3s cubic-bezier(.3, .4, .5, 1) calc(3s + var(--d)) infinite;
}

.intro__flake {
  position: absolute;
  top: var(--y);
  left: 4%;
  width: var(--s);
  height: var(--s);
  fill: none;
  stroke: #7FB2F0;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  animation: intro-flake 1.6s ease-out calc(3.05s + var(--d)) infinite;
}

.intro__skip {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  top: clamp(1rem, 3vw, 2rem);
  padding: .55rem 1rem;
  border-radius: 999px;
  background: rgb(15 27 45 / 6%);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-500);
  opacity: 0;
  animation: intro-fade-in .4s ease-out .8s forwards, intro-fade-out .3s ease-in 5.8s forwards;
}

/* Pantallas verticales: equipo arriba y tarjeta debajo */
@media (max-aspect-ratio: 1/1) {
  .intro__stage {
    padding-top: 12vh;
  }

  .intro__ac {
    width: min(68vw, 360px);
  }

  .intro__card-body {
    align-content: start;
    padding: 34vh 6vw 3vh;
  }

  .intro__logo {
    width: min(78vw, 400px);
  }

  .intro__band {
    justify-content: center;
    text-align: center;
  }

  .intro__band::before {
    left: 90%;
  }

  .intro__band::after {
    background: linear-gradient(90deg, var(--yellow-400) 0 90%, var(--blue-600) 90% 100%);
  }
}

@media print {
  .intro,
  .dock,
  .menu-toggle,
  .wa-widget {
    display: none !important;
  }
}

/* La tarjeta resiste el viento: se mueve un poco (un leve zoom evita que se vean las esquinas) */
@keyframes intro-card-flutter {
  0%, 100% { transform: none; }
  20% { transform: scale(1.03) translateX(.6vw) rotate(.5deg); }
  40% { transform: scale(1.03) translateX(-.2vw) rotate(-.2deg); }
  60% { transform: scale(1.03) translateX(.9vw) rotate(.7deg); }
  80% { transform: scale(1.03) translateX(.3vw) rotate(.2deg); }
}

/* El aire se lleva la tarjeta */
@keyframes intro-card-blow {
  0% { transform: none; }
  15% { transform: translateX(1.5vw) rotate(.6deg); }
  30% { transform: translateX(.5vw) rotate(-.3deg); }
  45% { transform: translate(4vw, -1vh) rotate(1.8deg); }
  100% { transform: translate(125vw, -12vh) rotate(16deg); }
}

/* La luz parpadea al encender, como un equipo real */
@keyframes intro-led-on {
  0% { opacity: 0; }
  20% { opacity: 1; }
  40% { opacity: .15; }
  60%, 100% { opacity: 1; }
}

@keyframes intro-pop {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: none; }
}

@keyframes intro-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes intro-ac-in {
  from { opacity: 0; transform: translateX(-40px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes intro-ac-out {
  to { opacity: 0; transform: translateX(-60px) scale(.98); }
}

@keyframes intro-fade-in {
  to { opacity: 1; }
}

@keyframes intro-fade-out {
  to { opacity: 0; }
}

@keyframes intro-streak {
  0% { opacity: 0; transform: translate(0, 0) scaleX(.3); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(80vw, 8vh) scaleX(1.1); }
}

@keyframes intro-flake {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translate(70vw, 12vh) rotate(200deg); }
}

@keyframes intro-done {
  to { visibility: hidden; }
}
