@property --t { syntax: "<number>"; inherits: true; initial-value: 0; }

/* ==========================================================
   Serviclima — landing
   Paleta tomada del logo. La página "se enfría" al hacer scroll:
   --t va de 0 (calor, ámbar) a 1 (frío, celeste) y la setea app.js.
   ========================================================== */
:root {
  --carbon: #1D1F21;
  --carbon-3: #33373B;
  --ambar: #FBBA45;
  --celeste: #38BDE0;
  --nieve: #F4F7F8;
  --nube: #EEF3F6;
  --nube-2: #E2E9ED;
  --blanco: #FFFFFF;
  --bg: #141517;            /* página */
  --raised: #202326;        /* bloques oscuros sobre la página */
  --raised-2: #2C3034;      /* controles y chips sobre bloques oscuros */
  --foot-bg: #0D0E0F;
  --rec: #E5484D;           /* punto de grabación */
  --wa: #25D366;            /* verde de marca WhatsApp */
  --tinta: #1D1F21;
  --muted-ink: #555B60;
  --ambar-ink: #A86A00;
  --celeste-ink: #0B7596;

  /* Semánticos */
  --ink-rgb: 29 31 33;            /* tinta en canales, para sombras y velos */
  --paper-rgb: 255 255 255;       /* papel en canales, para superficies translúcidas */
  --ink-2: var(--muted-ink);      /* texto secundario sobre claro */
  --ink-on-color: rgb(var(--ink-rgb) / .78);   /* texto secundario sobre celeste/ámbar */
  --on-dark: var(--blanco);
  --on-dark-2: rgb(var(--paper-rgb) / .74);    /* texto secundario sobre oscuro */
  --on-dark-3: rgb(var(--paper-rgb) / .58);    /* notas sobre oscuro */
  --line: rgb(var(--ink-rgb) / .1);
  --line-strong: rgb(var(--ink-rgb) / .18);
  --line-on-dark: rgb(var(--paper-rgb) / .12);
  --track: #C3CDD3;               /* pistas: interruptor apagado, scrollbar */
  --field-line: #8C969D;          /* borde de campos, ≥3:1 sobre blanco */
  --error: #A93226;
  --success: #1A9150;
  --celeste-wash: color-mix(in oklab, var(--celeste) 12%, var(--blanco));
  --shadow-sm: 0 10px 22px -12px rgb(var(--ink-rgb) / .45);
  --shadow-md: 0 18px 34px -18px rgb(var(--ink-rgb) / .35);
  --shadow-lg: 0 30px 50px -28px rgb(var(--ink-rgb) / .5);

  --t: 0;
  --heat: color-mix(in oklab, var(--ambar) calc((1 - var(--t)) * 100%), var(--celeste));
  /* Versión oscura del mismo calor/frío para texto sobre blanco (contraste AA) */
  --heat-ink: color-mix(in oklab, var(--ambar-ink) calc((1 - var(--t)) * 100%), var(--celeste-ink));

  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-body: "Onest", system-ui, sans-serif;

  /* Escala de roles (rem: respeta el tamaño de letra del usuario) */
  --fs-micro: .75rem;      /* 12  chrome del teléfono simulado */
  --fs-meta: .8125rem;     /* 13  notas, ayudas, etiquetas pequeñas */
  --fs-small: .875rem;     /* 14  secundario: captions, chips de zona */
  --fs-ui: .9375rem;       /* 15  controles, listas, texto de tarjeta */
  --fs-ui-lg: 1rem;        /* 16  botones, cuerpo en móvil */
  --fs-body: 1.0625rem;    /* 17  cuerpo */
  --fs-lead: 1.125rem;     /* 18  bajadas */

  --r-xl: 44px;
  --r-lg: 28px;
  --r-md: 20px;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Cada consumidor resuelve el calor con su propio --t (lo escribe motion.js) */
[data-heat] {
  --heat: color-mix(in oklab, var(--ambar) calc((1 - var(--t)) * 100%), var(--celeste));
  --heat-ink: color-mix(in oklab, var(--ambar-ink) calc((1 - var(--t)) * 100%), var(--celeste-ink));
}
html.lenis { scroll-behavior: auto; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--on-dark);
  font: 400 var(--fs-body)/1.6 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus, var(--celeste)); outline-offset: 3px; border-radius: 8px; }
/* El anillo de foco toma el color que contrasta con cada superficie (≥3:1) */
.sheet, .price, .form, .why__direct, .lightbox { --focus: var(--celeste-ink); }
.final, .why__fast, .tile--celeste, .guar, .price--hot { --focus: var(--tinta); }
.btu, .tile--dark, .why__over, .vctl { --focus: var(--celeste); }
::selection { background: var(--ambar); color: var(--tinta); }
html { accent-color: var(--celeste-ink); caret-color: var(--celeste-ink); scrollbar-color: var(--raised-2) var(--bg); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--raised-2); border-radius: 12px; border: 3px solid var(--bg); }
a { text-underline-offset: .2em; text-decoration-thickness: 1.5px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ambar); color: var(--tinta); padding: 10px 16px; border-radius: 99px; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.center { text-align: center; }

/* Resplandor ambiental que cambia de cálido a frío */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 45vmax at 85% -10%, color-mix(in oklab, var(--heat) 30%, transparent), transparent 70%),
    radial-gradient(50vmax 40vmax at -10% 110%, color-mix(in oklab, var(--heat) 16%, transparent), transparent 70%);
}

/* ---------- Botones ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 26px;
  border-radius: 99px; border: 0;
  font: 600 var(--fs-ui-lg)/1.2 var(--f-body);
  text-decoration: none; text-align: center; text-wrap: balance;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: var(--fs-ui); }
.btn { padding-block: 8px; }
.nav__cta, .mbar .btn { white-space: nowrap; }
.btn--arrow { text-align: left; }
.btn--block { width: 100%; }
.btn--amber { background: var(--ambar); color: var(--tinta); }
.btn--amber:hover { box-shadow: var(--shadow-sm); }
.btn--dark { background: var(--tinta); color: var(--blanco); }
.btn--ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgb(var(--paper-rgb) / .3); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--arrow { padding-right: 7px; }
.btn__ico {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--tinta); color: var(--blanco); transition: transform .3s var(--ease);
}
.btn--dark .btn__ico { background: var(--blanco); color: var(--tinta); }
.btn__ico--amber { background: var(--ambar) !important; color: var(--tinta) !important; }
.btn__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn--arrow:hover .btn__ico { transform: rotate(45deg); }


/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding-top: 12px; }
.nav__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 8px 10px 8px 24px;
  display: flex; align-items: center; gap: 20px;
  width: calc(100% - 2 * var(--gut));
  border-radius: 99px;
  background: rgb(20 21 23 / .74);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line-on-dark), 0 10px 30px -18px rgb(0 0 0 / .6);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 74px; height: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: var(--fs-ui); }
.nav__links a { text-decoration: none; color: var(--on-dark-2); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--on-dark); }
.nav__links a { position: relative; }
.nav__links a[aria-current="true"]::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--heat); }
.thermo { display: flex; align-items: center; gap: 8px; font: 600 var(--fs-small) var(--f-display); color: var(--heat); }
.thermo__bar { width: 6px; height: 26px; border-radius: 6px; background: var(--raised-2); position: relative; overflow: hidden; }
.thermo__fill { position: absolute; inset: auto 0 0 0; height: calc((1 - var(--t)) * 70% + 30%); background: var(--heat); border-radius: 6px; }
.thermo__val { min-width: 3ch; font-variant-numeric: tabular-nums; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--raised); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--on-dark); border-radius: 2px; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  margin: 8px var(--gut) 0; padding: 12px; border-radius: var(--r-lg);
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-on-dark), 0 20px 40px -20px rgb(0 0 0 / .6);
  display: grid;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 16px; text-decoration: none; border-radius: 14px; font-size: var(--fs-lead); }
.mobile-menu a:hover { background: var(--raised-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 72px) 0; overflow: clip; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(24px, 3vw, 48px); align-items: center; }
.hero__copy { padding-bottom: 0; }
.hero__status { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; text-wrap: pretty; font-size: var(--fs-small); color: var(--on-dark-2); }
.dot { flex: none; align-self: flex-start; margin-top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.hero__title { font-size: clamp(1.75rem, 3.5vw, 3.2rem); line-height: 1.06; font-weight: 600; text-wrap: initial; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: inline-block; }
.ln--temp { color: var(--heat); }
.hero__lead { margin-top: 28px; max-width: 54ch; font-size: clamp(var(--fs-body), .9rem + .4vw, 1.1875rem); color: var(--on-dark-2); }
.hero__meta { margin-top: 26px; }
.stack { display: flex; align-items: center; }
.stack img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); margin-left: -12px; }
.stack img:first-child { margin-left: 0; }
.stack img:nth-child(1) { background: var(--celeste); }
.stack__n { margin-left: 14px; font: 600 var(--fs-lead) var(--f-display); }
.hero__ctas { margin-top: 26px; display: flex; flex-wrap: nowrap; gap: 12px; }
.hero__ctas .btn { white-space: nowrap; }

/* Miguel: recortado, apoyado en el borde inferior del hero, con los arcos del sol del logo detrás */
.hero__person { position: relative; margin: 0; display: grid; justify-items: center; align-self: center; }
.hero__person img {
  position: relative; z-index: 1; width: min(100%, 470px, 54svh); height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.hero__arcs {
  position: absolute; left: 50%; bottom: 14%; width: 96%; aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%; border: 12px solid var(--heat);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 75%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 75%);
}
.hero__arcs::before {
  content: ""; position: absolute; inset: 26px; border-radius: 50%; border: 6px solid var(--heat); opacity: .75;
}
.hero__name {
  position: absolute; z-index: 2; left: 0; bottom: 20%; padding: 10px 16px; border-radius: var(--r-md);
  background: rgb(20 21 23 / .82); color: var(--on-dark-2); font-size: var(--fs-small); line-height: 1.35;
  box-shadow: inset 0 0 0 1px var(--line-on-dark);
}
.hero__name strong { display: block; color: var(--on-dark); font-weight: 600; }

/* Entrada del hero: oculto de inicio solo si habrá animación (GSAP lo revela) */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.no-motion) .ln > span { transform: translateY(105%); }
  .js:not(.no-motion) :is(.hero__lead, .hero__meta, .hero__ctas, .hero__status, .hero__person) { opacity: 0; }
}

/* ---------- Tarjeta con pestaña ---------- */
.sheet-wrap { position: relative; margin-top: 0; }
.sheet {
  position: relative; background: var(--nube); color: var(--tinta);
  border-radius: var(--r-xl); padding: clamp(20px, 3vw, 36px);
  padding-top: clamp(72px, 7vw, 88px);
}
.sheet--plain { padding-top: clamp(28px, 4vw, 52px); }
.sheet__tab { position: absolute; left: 50%; top: 0; width: 280px; height: 60px; transform: translate(-50%, -59px); }
.sheet__tab svg { width: 100%; height: 100%; fill: var(--nube); display: block; }
.medal {
  position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
  width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blanco); box-shadow: 0 0 0 6px var(--nube), 0 0 0 8px var(--heat), 0 18px 30px -16px rgb(var(--ink-rgb) / .35);
}
.medal img { width: 84px; }
.sheet__intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.sheet__photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.4; }
.sheet__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.sheet__text h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 2.9vw, 2.5rem); }
.sheet__text > p { color: var(--muted-ink); max-width: 52ch; }
.byline { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; font-size: var(--fs-ui); color: var(--muted-ink); }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.byline strong { display: block; color: var(--tinta); font-weight: 700; }
.ticks { margin-top: 22px; display: grid; gap: 10px; font-weight: 500; }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--celeste) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1F21' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.sheet__bento { margin-top: clamp(16px, 2vw, 22px); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(14px, 2vw, 22px); }
.tile { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); position: relative; overflow: hidden; min-height: 340px; }
.tile--dark { background: var(--carbon); color: var(--blanco); display: flex; flex-direction: column; min-height: 0; }
.tile__h { font-size: clamp(1.25rem, 2vw, 1.6rem); max-width: 16ch; }
.tile__p { margin-top: auto; color: var(--on-dark-2); max-width: 40ch; }
.brands { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.brands span { padding: 14px 26px; border-radius: 99px; background: var(--carbon-3); font: 600 clamp(var(--fs-body), .8rem + .9vw, 1.375rem) var(--f-display); letter-spacing: .01em; }
.brands span:first-child { background: var(--ambar); color: var(--tinta); }

.tile--celeste { background: var(--celeste); color: var(--tinta); }
.problem { min-height: 470px; display: flex; flex-direction: column; }
.problem h3 { font-size: clamp(1.25rem, 2.1vw, 1.7rem); max-width: 20ch; }
.problem p { margin-top: 12px; max-width: 46ch; font-size: var(--fs-ui-lg); }
.problem__cta { align-self: flex-start; margin-top: 18px; position: relative; z-index: 3; }
.stickers { position: relative; flex: 1; min-height: 170px; margin-top: 14px; }
.sticker {
  position: absolute; padding: 12px 20px; border-radius: 99px;
  background: var(--tinta); color: var(--blanco); font-weight: 600; font-size: var(--fs-ui); white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgb(var(--ink-rgb) / .45);
  transform: translate(var(--x, 0px), calc(var(--y, 0px) + var(--dy, 0px))) rotate(calc(var(--r, 0deg) + var(--dr, 0deg)));
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.sticker:active, .sticker.is-dragging { cursor: grabbing; }
.sticker.is-dragging { z-index: 5; }
.sticker--light { background: var(--blanco); color: var(--tinta); }
.sticker--amber { background: var(--ambar); color: var(--tinta); }
.s1 { left: 2%;  bottom: 6px;   --r: -6deg; }
.s2 { left: 34%; bottom: 0;     --r: 4deg; }
.s3 { left: 72%; bottom: 10px;  --r: -14deg; }
.s4 { left: 8%;  bottom: 58px;  --r: 8deg; }
.s5 { left: 48%; bottom: 52px;  --r: -10deg; }
.s6 { left: 26%; bottom: 108px; --r: -3deg; }

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(72px, 10vw, 130px) 0; }
.sec__title { font-size: clamp(1.7rem, 3.4vw, 2.75rem); max-width: 22ch; }
.sec__title.center { margin-inline: auto; }
.sec__sub { margin-top: 16px; color: var(--on-dark-2); max-width: 56ch; }
.sec__sub.center { margin-inline: auto; }
.sec__title--ink { color: var(--tinta); }
.sec__sub--ink { color: var(--muted-ink); }

/* ---------- Proceso ---------- */
.stage { position: relative; display: grid; place-items: center; margin: clamp(40px, 6vw, 70px) 0 40px; min-height: 600px; }
.phone {
  --shell: #0D0E0F; --shell-edge: #3A3E42;
  --wa-wall: #ECE5DD; --wa-me: #D9FDD3; --wa-online: #3DDC84;
  position: relative; z-index: 2; width: 300px; height: 600px; padding: 10px;
  border-radius: 46px; background: var(--shell);
  box-shadow: inset 0 0 0 2px var(--shell-edge), 0 40px 70px -30px rgb(0 0 0 / .8);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%); border-radius: 20px; background: var(--shell); z-index: 3; }
.phone__screen { height: 100%; border-radius: 37px; overflow: hidden; background: var(--wa-wall); color: var(--tinta); display: flex; flex-direction: column; }
.phone__bar { display: flex; gap: 10px; align-items: center; padding: 50px 16px 12px; background: var(--carbon); color: var(--blanco); }
.phone__bar img { width: 36px; height: 36px; object-fit: contain; background: var(--blanco); border-radius: 50%; padding: 4px; }
.phone__bar small { display: block; font-size: var(--fs-micro); color: var(--wa-online); }
.phone__bar strong { font-size: var(--fs-ui); }
.chat { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 14px 12px; justify-content: flex-end; font-size: var(--fs-meta); line-height: 1.4; }
.chat__track { display: flex; flex-direction: column; gap: 8px; }
/* Con movimiento, la conversación crece desde abajo como en WhatsApp (motion.js mueve la pista) */
@media (prefers-reduced-motion: no-preference) {
  .motion .chat { justify-content: flex-start; }
}
.msg { max-width: 84%; padding: 8px 11px; border-radius: 12px 12px 12px 4px; background: var(--blanco); box-shadow: 0 1px 1px var(--line); }
.msg--me { align-self: flex-end; background: var(--wa-me); border-radius: 12px 12px 4px 12px; }
.msg--ok { background: var(--blanco); }
.msg img { width: 100%; height: 70px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

.bubbles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bubble {
  position: absolute; display: flex; gap: 12px; align-items: center; max-width: 300px;
  padding: 10px 18px 10px 10px; border-radius: 99px; background: var(--blanco); color: var(--tinta);
  font-size: var(--fs-ui); line-height: 1.35; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md);
  pointer-events: auto;
}
.bubble strong { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .motion .bubble { transition: opacity .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
  .motion .bubble:not(.is-active) { opacity: .42; transform: scale(.96); }
  .motion .bubble.is-active { box-shadow: inset 0 0 0 2px var(--tinta), var(--shadow-md); }
}
.bubble__n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 700 var(--fs-ui-lg) var(--f-display); background: var(--celeste); }
.b1 { left: 2%; top: 14%; }
.b2 { right: 1%; top: 34%; background: var(--ambar); }
.b2 .bubble__n { background: var(--tinta); color: var(--blanco); }
.b3 { left: 6%; bottom: 14%; }
.float-media { position: absolute; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--raised); box-shadow: 0 30px 50px -28px rgb(0 0 0 / .8); }
.float-media video, .float-media img { width: 100%; height: 100%; object-fit: cover; }
/* Control de pausa de los videos (WCAG 2.2.2) */
.vctl {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgb(var(--ink-rgb) / .72); color: var(--blanco);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s;
}
.vctl:hover { background: var(--tinta); }
.vctl svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fm1 { width: 170px; height: 220px; left: 14%; top: 36%; rotate: -6deg; }
.fm2 { width: 190px; height: 150px; right: 10%; bottom: 8%; rotate: 5deg; }

/* ---------- Precios ---------- */
.panel { background: var(--raised); color: var(--on-dark); border-radius: var(--r-xl); padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 48px); }
.panel .sec__sub { color: var(--on-dark-2); }
.prices { margin-top: clamp(32px, 5vw, 52px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; background: var(--nieve); color: var(--tinta); border-radius: var(--r-lg); padding: 30px 26px 26px; }
.price h3 { font-size: 1.15rem; }
.price__v { margin-top: 12px; font: 600 clamp(1.8rem, 3vw, 2.3rem)/1 var(--f-display); letter-spacing: -.03em; }
.price__v small { display: block; font: 500 var(--fs-small) var(--f-body); letter-spacing: 0; color: var(--muted-ink); margin-bottom: 6px; }
.price__d { margin-top: 14px; color: var(--muted-ink); font-size: var(--fs-ui); }
.price ul { margin: 20px 0 26px; display: grid; gap: 0; }
.price li { padding: 11px 0; border-top: 1px solid var(--line); font-size: var(--fs-ui); }
.price .btn { margin-top: auto; }
.price--hot { background: var(--ambar); transform: translateY(-14px); }
.price--hot .price__d, .price--hot .price__v small { color: var(--ink-on-color); }
.price--hot li { border-color: var(--line-strong); }
.price__badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); padding: 7px 16px; border-radius: 99px; background: var(--tinta); color: var(--blanco); font-size: var(--fs-meta); font-weight: 600; white-space: nowrap; }
.prices__more { margin: 34px auto 0; max-width: 64ch; text-align: center; color: var(--on-dark-2); }
.prices__more strong { color: var(--blanco); font-weight: 600; }
.prices__more a { color: var(--ambar); font-weight: 600; }

/* ---------- Por qué ---------- */
.why { margin-top: clamp(32px, 5vw, 52px); display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(230px, auto); gap: 18px; }
.why__c { border-radius: var(--r-lg); padding: 28px; position: relative; overflow: hidden; background: var(--raised); }
.why__c h3 { font-size: 1.25rem; }
.why__c p { margin-top: 8px; color: var(--on-dark-2); font-size: var(--fs-ui); max-width: 34ch; }
.why__fast { grid-column: span 3; background: var(--celeste); color: var(--tinta); display: flex; flex-direction: column; }
.why__fast > p { color: var(--ink-on-color); }
.clock { margin-top: auto; padding-top: 26px; display: grid; gap: 18px; position: relative; }
.clock { --draw: 1; }
.clock::before { content: ""; position: absolute; left: 7px; top: 40px; bottom: 22px; width: 2px; background: var(--tinta); opacity: .45; transform: scaleY(var(--draw)); transform-origin: top; }
.clock li { position: relative; padding-left: 32px; display: grid; }
.clock li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 16px; border-radius: 50%; background: var(--celeste); box-shadow: inset 0 0 0 3px var(--tinta); }
.clock li:last-child::before { background: var(--tinta); }
.clock__t { font: 600 clamp(1.4rem, 2.6vw, 2.1rem)/1.15 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.clock span { font-size: var(--fs-ui); color: var(--ink-on-color); }
.why__video { grid-column: span 3; grid-row: span 2; padding: 0; min-height: 480px; }
.why__video video, .why__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why__over { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 20px 22px; border-radius: var(--r-md); background: rgb(var(--ink-rgb) / .8); color: var(--blanco); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.why__c .why__over p { color: var(--on-dark-2); }
.why__photo { grid-column: span 3; padding: 0; min-height: 300px; }
.why__photo img { object-position: 50% 25%; }
.why__brand { grid-column: span 3; padding-right: 46%; min-height: 230px; }
.why__brand img { position: absolute; right: 0; top: 0; width: 42%; height: 100%; object-fit: cover; }
.why__direct { grid-column: span 3; background: var(--nieve); color: var(--tinta); display: flex; flex-direction: column; align-items: flex-start; }
.why__c.why__direct p { color: var(--muted-ink); }
.why__direct .btn { margin-top: auto; }

/* ---------- Trabajos ---------- */
.works__foot { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.works__nav { display: flex; gap: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--raised-2); color: var(--on-dark); display: grid; place-items: center; transition: background .2s, color .2s; }
.round:hover:not(:disabled) { background: var(--ambar); color: var(--tinta); }
.round:disabled { opacity: .35; cursor: default; }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rail {
  margin-top: clamp(32px, 4vw, 48px); display: grid; grid-auto-flow: column; gap: 16px;
  /* Cinco tarjetas llenan el ancho completo de la pantalla, con el mismo margen a ambos lados */
  grid-auto-columns: clamp(250px, calc((100vw - 2 * var(--gut) - 64px) / 5), 400px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--gut); scroll-padding-inline: var(--gut);
}
.rail::-webkit-scrollbar { display: none; }
/* Desktop con movimiento: el scroll vertical recorre la galería (motion.js).
   clip (no hidden) recorta el desborde sin crear un contenedor de scroll. */
.works.is-scrubbed { overflow-x: clip; }
.works.is-scrubbed .rail { overflow: visible; scroll-snap-type: none; will-change: transform; }
.works.is-scrubbed .works__nav { display: none; }
.rail figure { margin: 0; scroll-snap-align: start; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; background: var(--raised); }
.rail img, .rail video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rail figure:hover img { transform: scale(1.04); }
.rail figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; padding: 10px 14px; border-radius: 14px; background: rgb(var(--paper-rgb) / .92); color: var(--tinta); font-size: var(--fs-small); font-weight: 600; line-height: 1.3; }
.works__ig { color: var(--on-dark-2); text-align: center; }
.works__ig a { color: var(--celeste); font-weight: 600; }

/* ---------- Equipos ---------- */
.btu { margin-top: 32px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 28px; align-items: center; padding: 26px 30px; border-radius: var(--r-lg); background: var(--carbon); color: var(--blanco); }
.btu__ctl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: baseline; }
.btu__ctl label { color: var(--on-dark-2); }
.btu__m2 { font: 600 1.4rem var(--f-display); }
.btu__ctl input { grid-column: 1 / -1; }
.btu__res { padding-left: 28px; border-left: 1px solid var(--line-on-dark); }
.btu__res p:first-child { color: var(--on-dark-2); font-size: var(--fs-ui); }
.btu__v, .btu__m2 { font-variant-numeric: tabular-nums; }
.btu__v { font: 700 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--f-display); color: var(--celeste); margin: 4px 0 14px !important; }
.btu__res .btn { background: var(--nieve); color: var(--tinta); }
.btu__note { grid-column: 1 / -1; margin-top: 14px; font-size: var(--fs-meta); color: var(--on-dark-3); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--celeste) var(--p, 30%), var(--carbon-3) var(--p, 30%)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--celeste) var(--p, 30%), var(--carbon-3) var(--p, 30%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--blanco); border: 6px solid var(--celeste); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--blanco); border: 6px solid var(--celeste); }

.filters { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 99px; border: 0; background: var(--blanco); color: var(--tinta); font-size: var(--fs-ui); font-weight: 500; transition: background .2s; }
.chip:hover { background: var(--nube-2); }
.chip.is-on { background: var(--tinta); color: var(--blanco); }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--tinta); font-weight: 500; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { width: 46px; height: 28px; border-radius: 99px; background: var(--track); position: relative; transition: background .2s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--blanco); transition: transform .25s var(--ease); }
.toggle input:checked + span { background: var(--celeste-ink); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:focus-visible + span { outline: 3px solid var(--celeste); outline-offset: 3px; }

.catalog { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.unit { background: var(--blanco); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line); animation: pop .4s var(--ease) both; }
.unit__art { aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.unit__art img { width: 100%; height: 100%; object-fit: contain; }
.unit__brand { margin-top: 16px; font-size: var(--fs-small); color: var(--muted-ink); }
.unit h3 { font-size: 1.05rem; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.tag { padding: 5px 11px; border-radius: 99px; font-size: var(--fs-meta); font-weight: 600; background: var(--nube); }
.tag--inv { background: color-mix(in oklch, var(--celeste) 30%, var(--blanco)); }
.tag--wifi { background: var(--tinta); color: var(--blanco); }
.tag--fc { background: color-mix(in oklch, var(--ambar) 40%, var(--blanco)); }
.unit .btn { margin-top: auto; }
.catalog__note, .catalog__empty { margin-top: 18px; color: var(--muted-ink); font-size: var(--fs-small); }
.link { background: none; border: 0; padding: 0; color: var(--tinta); text-decoration: underline; font-weight: 600; }

/* ---------- Agua caliente y calefacción ---------- */
.svc__title { margin-top: clamp(56px, 8vw, 88px); text-align: center; font: 600 clamp(1.35rem, 2.4vw, 1.8rem)/1.2 var(--f-display); letter-spacing: -.02em; }
.svcs { margin-top: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc { display: flex; flex-direction: column; background: var(--nieve); color: var(--tinta); border-radius: var(--r-lg); overflow: hidden; }
.svc img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.svc__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.svc h4 { margin: 0; font: 600 1.05rem/1.3 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.svc p { margin: 8px 0 18px; color: var(--muted-ink); font-size: var(--fs-ui); }
.svc__link { margin-top: auto; align-self: flex-start; color: var(--tinta); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1020px) { .svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .svcs { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* ---------- Proyectos con planos: empresas e industria (ver bloque al final) ---------- */

/* ---------- Garantía + zonas ---------- */
.duo { display: grid; grid-template-columns: 1fr 1.5fr; gap: 18px; }
.guar { border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); background: var(--ambar); color: var(--tinta); }
.guar__ico { width: 54px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.guar h2 { margin: 22px 0 12px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.zones { border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); background: var(--raised); }
.zones h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); max-width: 26ch; }
.zones__g { margin: 24px 0 10px; color: var(--on-dark-2); font-size: var(--fs-small); }
.cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud li { padding: 8px 14px; border-radius: 99px; background: var(--raised-2); font-size: var(--fs-small); }
.cloud--cool li { background: color-mix(in oklab, var(--celeste) 26%, var(--raised)); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.faq .sec__title { position: sticky; top: 120px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.faq__list { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--raised); transition: background .2s; }
.faq details:hover, .faq details[open] { background: var(--raised-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 64px 20px 22px; position: relative; font-weight: 600; font-size: var(--fs-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  background: var(--raised-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--ambar); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1F21' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.faq details p { padding: 0 22px 22px; color: var(--on-dark-2); max-width: 62ch; }

/* ---------- CTA final + formulario ---------- */
.final { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 60px); background: var(--heat); color: var(--tinta); }
.final h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.final__copy p { margin-top: 16px; font-size: var(--fs-lead); max-width: 40ch; }
.final__ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.form { background: var(--blanco); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; box-shadow: var(--shadow-lg); }
.form h3 { font-size: 1.3rem; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.opt { font-weight: 400; color: var(--muted-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--field-line);
  background: var(--blanco); color: var(--tinta); font: 400 var(--fs-ui-lg) var(--f-body); color-scheme: light;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--celeste-ink); box-shadow: 0 0 0 3px var(--celeste-ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__err { color: var(--error); font-size: var(--fs-small); font-weight: 600; }
.form__hint { font-size: var(--fs-meta); color: var(--muted-ink); text-align: center; }
.form__ok { padding: 14px 16px; border-radius: 14px; background: color-mix(in oklch, var(--celeste) 25%, var(--blanco)); font-weight: 600; }

/* ---------- Footer ---------- */
.foot { margin-top: clamp(72px, 10vw, 130px); padding: 60px 0 40px; background: var(--foot-bg); color: var(--on-dark-2); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot__grid > div p { margin-top: 18px; max-width: 34ch; font-size: var(--fs-ui); }
.foot__list { display: grid; gap: 0; align-content: start; font-size: var(--fs-ui); }
.foot__list li { min-height: 44px; display: flex; align-items: center; }
.foot__list a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot__list a:hover { color: var(--blanco); text-decoration: underline; }
.foot__copy { margin-top: 44px; font-size: var(--fs-small); color: var(--on-dark-3); }

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgb(var(--ink-rgb) / .5);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; fill: var(--blanco); }
.mbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .thermo { margin-left: auto; }
  .burger { display: block; }
  .hero { padding-bottom: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__person { align-self: end; }
  .hero__copy { padding-bottom: 12px; }
  .hero__person img { width: min(78%, 380px); }
  .hero__arcs { width: min(86%, 420px); }
  .hero__name { left: 4%; }
  .sheet__intro { grid-template-columns: 1fr; }
  .sheet__photo { aspect-ratio: 4 / 3; }
  .stage { min-height: auto; display: flex; flex-direction: column; gap: 22px; }
  .bubbles { position: static; display: grid; gap: 12px; width: 100%; max-width: 440px; order: 2; }
  .bubble { position: static; max-width: none; border-radius: 26px; }
  .float-media { display: none; }
  .prices { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 26px; }
  .price--hot { transform: none; }
  .why { grid-template-columns: 1fr 1fr; }
  .why__photo, .why__brand { grid-column: span 1; }
  .why__fast, .why__direct { grid-column: 1 / -1; }
  .why__fast { min-height: 0; }
  .s1 { left: 0; bottom: 4px; } .s3 { left: 68%; bottom: 8px; } .s2 { left: 2%; bottom: 54px; } .s5 { left: 50%; bottom: 58px; } .s4 { left: 0; bottom: 104px; } .s6 { left: 30%; bottom: 150px; }
  .stickers { min-height: 200px; }
  .why__video { grid-column: 1 / -1; grid-row: auto; min-height: 520px; }
  .why__brand { padding-right: 28px; padding-bottom: 210px; }
  .why__brand img { top: auto; bottom: 0; width: 100%; height: 190px; }
  .btu { grid-template-columns: 1fr; }
  .btu__res { padding: 20px 0 0; margin-top: 20px; border-left: 0; border-top: 1px solid var(--line-on-dark); }
  .duo, .faq, .final { grid-template-columns: 1fr; }
  .faq .sec__title { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: var(--fs-ui-lg); padding-bottom: 84px; }
  .nav__cta { display: none; }
  .nav__inner { padding-left: 14px; gap: 12px; }
  .brand img { width: 60px; }
  .hero__ctas { gap: 8px; }
  .hero__ctas .btn { flex: 1 1 auto; padding-inline: 18px; font-size: var(--fs-ui); }
  .hero__ctas .btn--arrow { padding-right: 6px; gap: 8px; }
  .hero__ctas .btn__ico { width: 36px; height: 36px; }
  .sheet { border-radius: 32px; }
  .tile, .problem { min-height: 0; }
  .sheet__bento { grid-template-columns: 1fr; }
  .tile--dark { min-height: 300px; }
  .sticker { font-size: var(--fs-small); padding: 10px 16px; }
  .phone { width: 280px; height: 560px; }
  .why { grid-template-columns: 1fr; }
  .why__fast, .why__photo, .why__brand, .why__direct, .why__video { grid-column: auto; }
  .why__video { min-height: 460px; }
  .works__nav { display: none; }
  .rail { grid-auto-columns: 74vw; }
  .medal { width: 100px; height: 100px; }
  .medal img { width: 72px; }
  .field-row { grid-template-columns: 1fr; }
  .final__ctas .btn { flex: 1 1 100%; justify-content: space-between; }
  .final__ctas .btn--line { justify-content: center; }
  .foot__grid { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgb(20 21 23 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -1px 0 var(--line-on-dark), 0 -10px 30px -20px rgb(0 0 0 / .6);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar .btn { --h: 52px; }
}

/* ---------- Chat: cierre con el video de la instalación ---------- */
.msg__vid { position: relative; display: block; margin-bottom: 6px; border-radius: 8px; overflow: hidden; }
.msg__vid img { height: 84px; margin: 0; border-radius: 0; filter: saturate(1.05); }
.msg__play {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: rgb(0 0 0 / .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- Video de tu instalación ---------- */
.reel__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
/* El video es la prueba: marco de teléfono grande en el lugar principal */
.reel__media { margin: 0; display: grid; justify-items: center; gap: 16px; }
.reel__phone {
  position: relative; width: min(100%, 340px); aspect-ratio: 9 / 16; padding: 10px; border-radius: 44px;
  background: #0D0E0F; box-shadow: inset 0 0 0 2px #3A3E42, 0 40px 70px -30px rgb(0 0 0 / .85);
}
.reel__phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: var(--raised); }
.reel__phone .vctl { top: auto; bottom: 22px; right: 22px; }
.rec {
  position: absolute; left: 24px; top: 24px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 99px; background: rgb(0 0 0 / .6); color: var(--on-dark);
  font: 700 var(--fs-meta) var(--f-display); letter-spacing: .08em;
}
.rec__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: rec 1.2s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.reel__body h2 { font-size: clamp(1.55rem, 2.9vw, 2.45rem); }
.reel__lead { margin: 18px 0 32px; color: var(--on-dark-2); max-width: 50ch; font-size: var(--fs-lead); }
.reel__caption { color: var(--on-dark-2); font-size: var(--fs-ui); text-align: center; }

/* ---------- Proyectos con planos: empresas e industria ---------- */
.proj { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl); background: var(--raised); overflow: clip; }
.proj__body h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.proj__lead { margin-top: 18px; color: var(--on-dark-2); max-width: 52ch; }
.proj__list { margin: 26px 0 30px; display: grid; gap: 14px; }
.proj__list li { position: relative; padding-left: 36px; color: var(--on-dark-2); max-width: 48ch; }
.proj__list li strong { color: var(--on-dark); font-weight: 600; }
.proj__list li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 7px;
  background: var(--ambar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1F21' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.proj__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.proj__board { position: relative; min-height: 600px; display: grid; place-items: center; }
/* Papel cuadriculado de plano: líneas celestes que se desvanecen hacia los bordes */
.proj__grid {
  position: absolute; inset: 0; border-radius: var(--r-lg);
  background-image:
    linear-gradient(rgb(56 189 224 / .16) 1px, transparent 1px),
    linear-gradient(90deg, rgb(56 189 224 / .16) 1px, transparent 1px),
    linear-gradient(rgb(56 189 224 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(56 189 224 / .07) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent);
  mask-image: radial-gradient(closest-side, #000 60%, transparent);
}
/* Juego de planos: en reposo quedan desplegados en abanico; motion.js los abre desde apilados */
.proj__stack { position: relative; z-index: 1; width: min(66%, 360px); }
.proj__sheet {
  margin: 0; padding: 7px; border-radius: 10px; background: var(--blanco);
  box-shadow: 0 34px 50px -28px rgb(0 0 0 / .9); overflow: hidden;
}
.proj__sheet img { width: 100%; height: auto; border-radius: 5px; }
.ps1 { position: relative; z-index: 3; transform: rotate(-2deg); }
.ps2, .ps3 { position: absolute; left: 0; top: 0; width: 100%; }
.ps2 { z-index: 2; transform: translate(-30%, 4%) rotate(-9deg); }
.ps3 { z-index: 1; transform: translate(30%, 7%) rotate(8deg); }
.proj__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 70px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, rgb(56 189 224 / .28));
  border-bottom: 2px solid var(--celeste);
}
.proj__label {
  position: absolute; z-index: 4; right: 0; top: 4%; max-width: 230px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--raised-2); color: var(--on-dark-2); font-size: var(--fs-small); line-height: 1.4;
  box-shadow: 0 20px 34px -20px rgb(0 0 0 / .8);
}
.proj__label strong { display: block; color: var(--on-dark); font-weight: 600; margin-bottom: 2px; }
.proj__zoom { position: absolute; z-index: 5; left: 50%; bottom: 3%; transform: translateX(-50%); }

/* ---------- Visor de la ficha ---------- */
.lightbox { width: min(94vw, 980px); max-height: 94vh; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--nieve); color: var(--tinta); overflow: auto; }
.lightbox::backdrop { background: rgb(0 0 0 / .78); }
.lightbox__bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px; background: linear-gradient(var(--nieve) 70%, transparent); }
.lightbox__bar form { margin-left: auto; }
.lightbox__count { min-width: 6ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.lightbox__nav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--nube-2); color: var(--tinta); display: grid; place-items: center; }
.lightbox__nav:hover { background: var(--ambar); }
.lightbox__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tinta); color: var(--blanco); display: grid; place-items: center; }
.lightbox__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.lightbox img { width: 100%; height: auto; padding: 0 16px 16px; }

@media (max-width: 1020px) {
  .reel__grid, .proj { grid-template-columns: 1fr; }
  .reel__phone { width: min(100%, 300px); }
  .proj__board { min-height: 520px; }
}
@media (max-width: 640px) {
  .reel__phone { width: min(78%, 280px); }
  .proj__board { min-height: 440px; }
  .proj__stack { width: 62%; }
  .proj__label { position: static; max-width: none; margin: 18px 0 64px; }
  .proj__board { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 30px; }
  .proj__zoom { bottom: 0; }
  .proj__ctas .btn { flex: 1 1 100%; }
  .proj__ctas .btn--arrow { justify-content: space-between; padding-left: 24px; }
}

@media (max-width: 400px) {
  /* Una sola línea de botones también en teléfonos angostos */
  .hero__ctas .btn--arrow .btn__ico { display: none; }
  .hero__ctas .btn--arrow { padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .rec__dot { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
