/* =========================================================
   DAXSO · Landing Luz Vial (alumbrado público)
   Base visual compartida con las demás landings Daxso.
   rojo Daxso sólido, grafito, blanco. Escenas guiadas por scroll.
   ========================================================= */
:root {
  --red: #DA042C;
  --red-soft: #FDE8EC;
  --char: #1F1F21;
  --char-2: #2A2A2D;
  --night: #0E0E10;
  --graphite: #383838;
  --muted: #6B6B70;
  --gray: #F3F3F4;
  --line: #E4E4E7;
  --teal: #11BCAF;
  --wa: #25D366;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
  --header-h: 70px;
  --ff-head: "Poppins", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; color: var(--char); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main, .footer { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 700; }
.lt { font-weight: 300; }
h1 b, h2 b { font-weight: 700; }
.red { color: var(--red); }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.ico { width: 20px; height: 20px; }

.kicker { display: inline-flex; align-items: center; gap: .6em; font-family: var(--ff-head); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.kicker--light { color: #fff; }
.kicker--light::before { background: var(--red); }

.tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3em .7em; border-radius: 4px; }
.tag--red { background: var(--red); color: #fff; }
.tag--dark { background: var(--char); color: #fff; }
.tag--teal { background: var(--teal); color: #fff; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .9em 1.6em; border-radius: 8px; font-family: var(--ff-head); font-weight: 600; font-size: .95rem; background: var(--char); color: #fff; border: 2px solid transparent; position: relative; overflow: hidden; isolation: isolate; white-space: nowrap; transition: transform .3s var(--ease), color .3s, border-color .3s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--char); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); }
.btn--wa { background: var(--wa); }
.btn--wa::before { background: #1DA851; }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.7); }
.btn--outline::before { background: #fff; }
.btn--outline:hover { color: var(--char); border-color: #fff; }
.btn--outline-dark { background: transparent; color: var(--char); border-color: var(--char); }
.btn--outline-dark:hover { color: #fff; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost::before { background: var(--red); }
.btn--ghost:hover { color: #fff; border-color: var(--red); }
.btn--sm { padding: .6em 1.1em; font-size: .85rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1.02rem; }
.btn--block { width: 100%; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Topbar / Header ---------- */
.topbar { background: var(--night); color: #fff; font-size: .8rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.08); }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: 1.6rem; padding: .5rem 0; animation: marquee 36s linear infinite; }
.marquee__track i { width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .3s; }
.header.is-hidden { transform: translateY(-100%); }
.header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,.3); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.header__logo img { height: 24px; width: auto; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; font-weight: 500; font-size: .9rem; }
.nav a { position: relative; color: var(--graphite); transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-current { color: var(--red); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--char); transition: .3s var(--ease); }
.burger span:nth-child(1) { top: 13px; } .burger span:nth-child(2) { top: 19px; } .burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- Secciones generales ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section__head .kicker { justify-content: center; }
.note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1.4rem; }

/* Comparador */
.compare__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ccard { position: relative; padding: 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.ccard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ccard--top { border: 2px solid var(--red); }
.ccard .tag { align-self: flex-start; }
.ccard img { width: 100%; height: 170px; object-fit: contain; margin: .6rem 0; transition: transform .5s var(--ease); }
.ccard:hover img { transform: scale(1.06); }
.ccard h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.bar { height: 8px; border-radius: 8px; background: var(--gray); overflow: hidden; margin-bottom: 1rem; }
.bar i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.ccard.is-visible .bar i { transform: scaleX(var(--v)); }
.ccard ul { list-style: none; padding: 0; margin: 0 0 1.2rem; flex: 1; }
.ccard li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.ccard li span { color: var(--muted); }
.ccard li b { text-align: right; font-weight: 600; }

/* Calculadora */
.calc { background: var(--char); color: #fff; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.calc__lead { color: rgba(255,255,255,.7); }
.range { display: block; margin: 1.4rem 0; font-weight: 600; }
.range b { font-family: var(--ff-head); font-size: 1.3rem; color: #fff; }
.range input { width: 100%; margin-top: .7rem; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(var(--red), var(--red)) 0 / var(--fill, 20%) 100% no-repeat, rgba(255,255,255,.18); }
.range input::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 5px solid var(--red); cursor: grab; }
.range input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid var(--red); cursor: grab; }
.q { font-weight: 600; margin: 1.2rem 0 .6rem; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { padding: .6em 1.1em; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.25); font-weight: 500; font-size: .92rem; transition: .25s var(--ease); }
.opt:hover { border-color: #fff; }
.opt.is-active { background: var(--red); border-color: var(--red); }
.calc__result { background: #fff; color: var(--char); border-radius: var(--radius); padding: 2rem; border-top: 4px solid var(--red); }
.calc__label { font-family: var(--ff-head); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.calc__main { display: flex; align-items: center; gap: 1rem; margin: .4rem 0; }
.calc__qty { font-family: var(--ff-head); font-weight: 800; font-size: 4.4rem; line-height: 1; color: var(--red); }
.calc__main span { display: block; color: var(--muted); font-size: .9rem; }
.calc__main strong { font-family: var(--ff-head); font-size: 1.5rem; }
.calc__result img { width: 100%; height: 150px; object-fit: contain; margin: .4rem 0 .8rem; }
.calc__result.swap img, .calc__result.swap .calc__main { animation: swap .45s var(--ease); }
@keyframes swap { 40% { opacity: 0; transform: translateY(8px); } }
.calc__meta { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.calc__meta li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.calc__meta li + li { padding-left: 1rem; border-left: 1px solid var(--line); }
.calc__meta span { display: block; font-size: .75rem; color: var(--muted); }
.calc__meta b { font-family: var(--ff-head); font-size: 1.1rem; }

/* Aplicaciones */
.apps { position: relative; overflow: hidden; color: #fff; padding: clamp(4rem, 10vw, 7rem) 0; background: var(--night); }
.apps__bg { position: absolute; inset: -15% 0; background: url("https://daxso.pe/wp-content/uploads/2025/10/campana-high-bay-LED-CONTEXTO.jpg") center / cover; opacity: .35; transform: translateY(var(--par, 0px)); }
.apps__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.apps__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.apps__list li { padding: 1rem 1.2rem; border-left: 3px solid var(--red); background: rgba(14,14,16,.7); font-family: var(--ff-head); font-weight: 600; font-size: 1.05rem; border-radius: 0 8px 8px 0; }

/* Beneficios */
.benefits { background: var(--gray); }
.benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.benefit { padding: 1.6rem; border-radius: var(--radius); background: #fff; transition: transform .35s var(--ease), box-shadow .35s; }
.benefit > svg { width: 48px; height: 48px; padding: 11px; border-radius: 10px; color: var(--red); background: var(--red-soft); margin-bottom: 1rem; transition: .3s var(--ease); }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit:hover > svg { background: var(--red); color: #fff; transform: rotate(-6deg); }
.benefit h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.benefit p { color: var(--muted); margin: 0; font-size: .92rem; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.accordion { background: var(--gray); border-radius: var(--radius); padding: .4rem 1.4rem; }
.accordion details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.accordion details:last-child { border-bottom: 0; }
.accordion summary { list-style: none; cursor: pointer; font-weight: 600; font-family: var(--ff-head); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: #fff; font-size: 1.1rem; transition: transform .35s var(--ease), background-color .3s, color .3s; }
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--red); color: #fff; }
.accordion p { color: var(--muted); margin: .7rem 0 0; }

/* Cierre */
.closing { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6rem) 0; color: #fff; background: var(--red); }
.closing__deco { position: absolute; inset: 0; pointer-events: none; }
.deco-arc { position: absolute; right: -200px; bottom: -320px; width: 640px; height: 640px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); }
.deco-dots { position: absolute; left: 3%; top: 10%; width: 90px; height: 50px; background-image: radial-gradient(circle, rgba(255,255,255,.55) 1.6px, transparent 2px); background-size: 18px 18px; }
.closing__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.closing h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.closing p { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.closing__list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; font-weight: 600; }
.closing__list li { display: flex; align-items: center; gap: .5em; }
.closing__list svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #fff; color: var(--red); }
.qform { background: #fff; color: var(--char); padding: 2rem; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); display: grid; gap: .9rem; }
.qform h3 { font-size: 1.35rem; margin: 0; }
.qform label { display: grid; gap: .3rem; font-size: .84rem; font-weight: 600; color: var(--graphite); }
.qform input, .qform select { font: inherit; padding: .8em 1em; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; width: 100%; transition: border-color .25s, box-shadow .25s; }
.qform input:focus, .qform select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(218,4,44,.15); }
.qform .is-invalid { border-color: var(--red); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.qform__row { display: grid; grid-template-columns: 2fr 1fr; gap: .8rem; }
.qform__row--even { grid-template-columns: 1fr 1fr; }
.qform__note { color: var(--muted); text-align: center; }

/* Footer */
.footer { background: var(--night); color: rgba(255,255,255,.7); padding: 3.5rem 0 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer__logo { height: 24px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer h4 { color: #fff; font-size: 1rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.2rem 0; font-size: .82rem; }

/* WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(0,0,0,.35); animation: waPulse 2.4s infinite; }
.wa-float svg { width: 32px; height: 32px; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
.mobile-cta { display: none; }

.img--fix { filter: brightness(1.1) contrast(1.04); }
/* ---------- Productos recomendados (carrusel) ---------- */
.recos { background: #fff; overflow: hidden; }
.recos__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.recos__head h2 { margin: 0; }
.recos__nav { display: flex; gap: .5rem; }
.recos__btn { width: 46px; height: 46px; border-radius: 8px; border: 1.5px solid var(--char); display: grid; place-items: center; transition: background-color .25s, color .25s, border-color .25s, opacity .25s; }
.recos__btn svg { width: 20px; height: 20px; }
.recos__btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.recos__btn:disabled { opacity: .3; pointer-events: none; }
.recos__track {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px 2px 18px; cursor: grab; outline: none;
}
.recos__track::-webkit-scrollbar { display: none; }
.recos__track.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.recos__track.is-drag * { pointer-events: none; }
.rcard {
  flex: 0 0 calc((100% - 3 * 1.2rem) / 4); scroll-snap-align: start; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.rcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.rcard__img { position: relative; height: 190px; background: var(--gray); overflow: hidden; }
.rcard__img img { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); object-fit: contain; mix-blend-mode: multiply; scale: var(--z, 1); transition: transform .5s var(--ease); }
.rcard:hover .rcard__img img { transform: scale(1.07); }
.rcard__img .tag { position: absolute; left: 12px; top: 12px; z-index: 1; }
.rcard__body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.rcard h3 { font-size: 1rem; margin: 0 0 .25rem; }
.rcard p { font-size: .85rem; color: var(--muted); margin: 0 0 .9rem; flex: 1; }
.rcard__cta { display: inline-flex; align-items: center; gap: .4em; font-family: var(--ff-head); font-weight: 600; font-size: .88rem; color: var(--red); }
.rcard__cta svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.rcard:hover .rcard__cta svg { transform: translateX(5px); }
.recos__bar { position: relative; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.recos__bar i { position: absolute; top: 0; bottom: 0; left: 0; width: var(--w, 25%); background: var(--red); border-radius: 3px; transform: translateX(var(--x, 0%)); transition: transform .2s linear; }
@media (max-width: 1024px) { .rcard { flex-basis: calc((100% - 2 * 1.2rem) / 2.6); } }
@media (max-width: 680px) {
  .recos__head { align-items: flex-start; }
  .recos__nav { display: none; }
  .recos__track { gap: .8rem; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .rcard { flex-basis: 72%; }
  .rcard__img { height: 160px; }
}

/* Reveal */
.reveal { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal[data-anim="up"] { transform: translateY(40px); }
.reveal[data-anim="left"] { transform: translateX(-50px); }
.reveal[data-anim="right"] { transform: translateX(50px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: .5rem 16px 1.2rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .burger { display: block; }
  .header .btn--sm span { display: none; }
  .header .btn--sm { margin-left: auto; padding: .6em; }
  .benefits__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* Intro: producto arriba, textos abajo */
  .intro__stage::after { background: linear-gradient(0deg, rgba(14,14,16,.92) 0%, rgba(14,14,16,.6) 42%, rgba(14,14,16,0) 70%); }
  .rig { left: 50%; top: 34%; width: 92vw; }
  .beat { top: auto; bottom: 100px; max-width: none; transform: translateY(30px); }
  .beat--1 { bottom: 150px; } /* al cargar, el header aún ocupa la parte superior */
  .beat.on { transform: none; }
  .beat h1 { font-size: 2.3rem; }
  .beat h2 { font-size: 1.9rem; }
  .beat p { font-size: .95rem; }
  .intro__stats { gap: 1.2rem; margin: 1rem 0 1.2rem; }
  .intro__stats b { font-size: 1.4rem; }
  .intro__hint { bottom: 18px; }

  /* Capítulos: producto arriba, ficha abajo */
  .chapter { height: 240vh; }
  .chapter__stage { align-items: flex-start; padding-top: 1.2rem; }
  .chapter__grid { grid-template-columns: 1fr; gap: .4rem; }
  .product, .product--wide { order: -1; width: 100%; max-width: 520px; margin: 0 auto; }
  .chapter__num { font-size: 4.6rem; top: -1.4rem; right: 0; left: auto; }
  .chapter h2 { font-size: 1.9rem; margin-bottom: .3rem; }
  .chapter .kicker { margin-bottom: .4rem; font-size: .7rem; }
  .chapter__lead { font-size: .9rem; margin-bottom: .4rem; }
  .specs { margin: .6rem 0 .9rem; }
  .specs div { padding: .45rem 0; }
  .specs dd { font-size: 1.05rem; }
  .specs dt { font-size: .66rem; }
  .chapter__ctas .btn { flex: 1 1 auto; padding: .75em 1em; font-size: .88rem; }
  /* Producto más grande y etiquetas como puntos numerados + leyenda */
  .product { aspect-ratio: 16 / 10; }
  .product__frame { inset: calc(-1 * var(--grow-m, var(--grow, 0%))); }
  .callout::before, .callout span { display: none; }
  .callout i { width: 22px; height: 22px; border-width: 2px; display: grid; place-items: center; }
  .callout i::after { content: attr(data-n); }
  .callout[data-n="1"] i::after { content: "1"; } .callout[data-n="2"] i::after { content: "2"; } .callout[data-n="3"] i::after { content: "3"; }
  .callout i::after { font: 700 .7rem/1 var(--ff-head); color: #fff; font-style: normal; }
  .legend { display: flex; flex-wrap: wrap; gap: .35rem .9rem; list-style: none; padding: 0; margin: 0 0 .7rem; font-size: .78rem; font-weight: 600; }
  .legend li { display: flex; align-items: center; gap: .35rem; opacity: .35; transition: opacity .4s; }
  .legend li.on { opacity: 1; }
  .legend b { width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font: 700 .62rem/1 var(--ff-head); }

  .compare__grid, .calc__grid, .apps__inner, .faq__grid, .closing__grid { grid-template-columns: 1fr; }
  /* Barra de modelos arriba, compacta y en una línea; baja si el header está visible */
  .modelbar { bottom: auto; top: 8px; transform: translate(-50%, -160%); transition: transform .45s var(--ease), opacity .3s, top .4s var(--ease); }
  .modelbar.show { transform: translate(-50%, 0); }
  .modelbar.under-header { top: calc(var(--header-h) + 8px); }
  .modelbar a { flex-direction: row; align-items: baseline; gap: .35em; white-space: nowrap; padding: .5rem .8rem; }
  .modelbar b { font-size: .9rem; }
  .modelbar span { font-size: .66rem; opacity: .8; }
  .chapter__stage { padding-top: 3.6rem; }
}
@media (max-width: 600px) {
  :root { --header-h: 62px; }
  .btn { white-space: normal; text-align: center; }
  .intro__ctas .btn { flex: 1 1 auto; }
  .benefits__grid, .apps__list { grid-template-columns: 1fr 1fr; }
  .benefit { padding: 1.1rem; }
  .apps__list li { font-size: .9rem; padding: .8rem; }
  .calc__qty { font-size: 3.4rem; }
  .footer__grid, .closing__list { grid-template-columns: 1fr; }
  .wa-float { bottom: 84px; right: 16px; width: 54px; height: 54px; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 2fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px -14px rgba(0,0,0,.35); transform: translateY(110%); transition: transform .45s var(--ease); }
  .mobile-cta.is-visible { transform: none; }
  .footer { padding-bottom: 80px; }
}

/* Sin animaciones: todo visible y sin secciones fijadas */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .intro, .chapter { height: auto; }
  .intro__stage, .chapter__stage { position: relative; min-height: 100vh; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Barra inferior móvil: una sola línea y sin WhatsApp duplicado ---------- */
@media (max-width: 600px) {
  .mobile-cta { grid-template-columns: auto 1fr; align-items: center; }
  .mobile-cta .btn { white-space: nowrap; font-size: .92rem; padding: .8em 1.1em; }
  .mobile-cta .btn--outline-dark { padding-inline: 1.3em; }
  .wa-float { transition: opacity .3s, transform .3s var(--ease); }
  body.cta-on .wa-float { opacity: 0; transform: scale(.6); pointer-events: none; }
}


/* =========================================================
   LUZ VIAL · Estilos propios
   Enfoque de animación: escena de calle en SVG (sin video),
   encendido secuencial, simulador interactivo, antes/después
   y tarjetas apiladas.
   ========================================================= */
.nav a { white-space: nowrap; }

/* ---------- Escena de calle (compartida: portada y antes/después) ---------- */
.street { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.street .lamp-cone, .street .lamp-pool, .street .lamp-glow { opacity: 0; transition: opacity .6s ease; }
.street .pole.on .lamp-cone { opacity: .55; }
.street .pole.on .lamp-pool { opacity: 1; }
.street .pole.on .lamp-glow { opacity: 1; }
.street .pole.flick .lamp-cone, .street .pole.flick .lamp-pool, .street .pole.flick .lamp-glow { animation: flick .7s steps(1) both; }
@keyframes flick { 0% { opacity: 0; } 12% { opacity: 1; } 22% { opacity: .15; } 34% { opacity: .9; } 44% { opacity: .3; } 56%, 100% { opacity: 1; } }
.street .pole.flick .lamp-cone { animation-name: flickCone; }
@keyframes flickCone { 0% { opacity: 0; } 12% { opacity: .55; } 22% { opacity: .08; } 34% { opacity: .5; } 44% { opacity: .15; } 56%, 100% { opacity: .55; } }
.street .lane { animation: lane 1.1s linear infinite; }
@keyframes lane { to { stroke-dashoffset: -80; } }
.street .ground-lit { opacity: 0; transition: opacity 1.2s ease; }
.street.is-lit .ground-lit { opacity: 1; }
.street .win { transition: opacity .8s; }

/* ---------- Portada ---------- */
.hero { position: relative; height: calc(100svh - var(--header-h) - 34px); min-height: 560px; max-height: 900px; background: #07080c; color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7,8,12,.92) 0%, rgba(7,8,12,.6) 32%, rgba(7,8,12,0) 58%); }
.hero__copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero__copy > * { max-width: 540px; opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero__copy > :nth-child(2) { animation-delay: .1s; }
.hero__copy > :nth-child(3) { animation-delay: .2s; }
.hero__copy > :nth-child(4) { animation-delay: .3s; }
.hero__copy > :nth-child(5) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); margin-bottom: 1rem; }
.hero p { font-size: 1.08rem; color: rgba(255,255,255,.8); max-width: 30rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: .6rem 0 1.8rem; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 2rem; }
.hero__stats b { display: block; font-family: var(--ff-head); font-size: 1.7rem; line-height: 1; }
.hero__stats span { font-size: .8rem; color: rgba(255,255,255,.62); }
.hero__stats b span { font-size: inherit; color: inherit; }
.switch-light {
  position: absolute; z-index: 3; right: 24px; top: 24px; display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem .9rem .55rem .6rem; border-radius: 999px; background: rgba(14,14,16,.75); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-family: var(--ff-head); font-weight: 600; font-size: .82rem; backdrop-filter: blur(6px); transition: border-color .3s;
}
.switch-light:hover { border-color: #fff; }
.switch-light i { position: relative; width: 38px; height: 22px; border-radius: 22px; background: rgba(255,255,255,.2); transition: background-color .3s; }
.switch-light i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.switch-light[aria-pressed="true"] i { background: var(--red); }
.switch-light[aria-pressed="true"] i::after { transform: translateX(16px); }

/* ---------- Simulador ---------- */
.sim { background: var(--char); color: #fff; }
.sim .section__head p { color: rgba(255,255,255,.7); }
.sim__tabs { display: flex; justify-content: center; gap: .4rem; margin: 0 auto 1.8rem; padding: 5px; width: fit-content; border-radius: 12px; background: rgba(255,255,255,.08); }
.sim__tab { padding: .7rem 1.5rem; border-radius: 9px; font-family: var(--ff-head); font-weight: 700; color: rgba(255,255,255,.7); transition: background-color .3s, color .3s; }
.sim__tab small { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: .7rem; }
.sim__tab.is-active { background: var(--red); color: #fff; }
.sim__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: stretch; }
.sim__view { position: relative; border-radius: var(--radius); background: #0a0b10; overflow: hidden; min-height: 360px; }
.sim__view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sim__legend { position: absolute; left: 16px; top: 14px; font-size: .75rem; color: rgba(255,255,255,.55); }
.sim__panel { background: #fff; color: var(--char); border-radius: var(--radius); padding: 1.6rem; border-top: 4px solid var(--red); display: flex; flex-direction: column; }
.sim__panel h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.sim__road { color: var(--red); font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.sim__specs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 0 0 1rem; }
.sim__specs div { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.sim__specs div:nth-child(even) { padding-left: .9rem; border-left: 1px solid var(--line); }
.sim__specs dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sim__specs dd { margin: 0; font-family: var(--ff-head); font-weight: 700; font-size: 1.15rem; }
.sim__panel .range { margin: .4rem 0 1rem; font-size: .9rem; }
.sim__panel .range b { color: var(--red); }
.sim__panel .range input { background: linear-gradient(var(--red), var(--red)) 0 / var(--fill, 20%) 100% no-repeat, var(--line); }
.sim__result { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 1rem; }
.sim__result b { font-family: var(--ff-head); font-size: 2.6rem; line-height: 1; color: var(--red); }
.sim__result span { color: var(--muted); font-size: .9rem; }
.sim__result.is-big b { display: none; }
.sim__panel .btn { margin-top: auto; }
.note--light { color: rgba(255,255,255,.5); }

/* ---------- Antes / después ---------- */
.ba__frame { position: relative; aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden; background: #07080c; user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba__layer { position: absolute; inset: 0; }
.ba__layer--after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.ba__tag { position: absolute; top: 16px; z-index: 2; font-family: var(--ff-head); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: .4em .8em; border-radius: 6px; }
.ba__tag--before { left: 16px; background: rgba(255,255,255,.12); color: #fff; }
.ba__tag--after { right: 16px; background: var(--red); color: #fff; }
.ba__handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--cut, 50%); width: 3px; margin-left: -1.5px; background: #fff; }
.ba__handle span { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: var(--char); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.ba__handle svg { width: 26px; height: 26px; }
.ba__frame.hint .ba__handle, .ba__frame.hint .ba__layer--after { transition: left .9s var(--ease), clip-path .9s var(--ease); }

/* ---------- Modelos: tarjetas apiladas ---------- */
.stack { padding-bottom: 2rem; }
.stack__list { position: relative; }
.mcard {
  position: sticky; top: calc(90px + var(--i) * 22px); margin-bottom: 8vh;
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: center; min-height: 440px;
  padding: 2.2rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0,0,0,.45);
  transform-origin: 50% 0; transform: scale(var(--s, 1));
}
.mcard.is-behind { filter: brightness(var(--b, 1)); }
.mcard:nth-child(2) { background: var(--char); color: #fff; border-color: var(--char); }
.mcard:nth-child(3) { background: var(--red); color: #fff; border-color: var(--red); }
.mcard__media { --mh: 380px; position: relative; height: var(--mh); display: grid; place-items: center; }
.mcard__media::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--gray); }
.mcard:nth-child(2) .mcard__media::before { background: rgba(255,255,255,.06); }
.mcard:nth-child(3) .mcard__media::before { background: rgba(255,255,255,.14); }
.mcard__media img { position: relative; height: calc(var(--mh) * .92 * var(--h, 1)); width: auto; max-width: none; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); transform: rotate(-8deg); transition: transform .6s var(--ease); }
.mcard:hover .mcard__media img { transform: rotate(0) scale(1.03); }
.mcard__num { font-family: var(--ff-head); font-weight: 800; font-size: .85rem; letter-spacing: .14em; opacity: .6; }
.mcard h3 { font-size: clamp(2rem, 4vw, 3rem); margin: .3rem 0 .6rem; }
.mcard h3 .lt { font-weight: 300; }
.mcard__use { font-size: 1.02rem; opacity: .8; max-width: 30rem; }
.mcard__specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.4rem 0 1.6rem; }
.mcard__specs div { padding: .8rem 1rem; border-radius: 10px; background: var(--gray); }
.mcard:nth-child(2) .mcard__specs div { background: rgba(255,255,255,.07); }
.mcard:nth-child(3) .mcard__specs div { background: rgba(255,255,255,.14); }
.mcard__specs dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .65; }
.mcard__specs dd { margin: 0; font-family: var(--ff-head); font-weight: 700; font-size: 1.35rem; }
.mcard__ctas { display: flex; flex-wrap: wrap; gap: .7rem; }
.mcard:nth-child(3) .btn--primary { background: #fff; color: var(--red); }
.mcard:nth-child(3) .btn--primary:hover { color: #fff; }

/* ---------- Usos ---------- */
.uses { background: var(--gray); }
.uses__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.use { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem; padding: 1.4rem; border-radius: var(--radius); background: #fff; transition: color .35s; isolation: isolate; }
.use::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--char); transform: translateY(101%); transition: transform .45s var(--ease); }
.use:hover { color: #fff; }
.use:hover::before { transform: none; }
.use svg { width: 46px; height: 46px; padding: 10px; border-radius: 10px; background: var(--red-soft); color: var(--red); flex: none; transition: background-color .35s, color .35s; }
.use:hover svg { background: var(--red); color: #fff; }
.use h3 { font-size: 1.02rem; margin: 0 0 .15rem; }
.use p { margin: 0; font-size: .86rem; color: var(--muted); transition: color .35s; }
.use:hover p { color: rgba(255,255,255,.7); }

/* ---------- Responsive propio ---------- */
@media (max-width: 1100px) {
  .sim__grid { grid-template-columns: 1fr; }
  .benefits__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { height: auto; min-height: calc(100svh - var(--header-h) - 34px); max-height: none; }
  .hero .street { height: 56%; }
  .hero::after { background: linear-gradient(0deg, #07080c 0%, #07080c 44%, rgba(7,8,12,0) 60%); }
  .hero__copy { justify-content: flex-end; padding: 50svh 0 2.5rem; }
  .hero h1 { font-size: 2.3rem; }
  .hero p { font-size: .95rem; }
  .hero__stats { gap: 1.3rem; }
  .hero__stats b { font-size: 1.35rem; }
  .switch-light { right: 12px; top: 12px; }
  .mcard { grid-template-columns: 1fr; gap: .6rem; padding: 1.4rem; top: calc(76px + var(--i) * 14px); min-height: 0; }
  .mcard__media { --mh: 190px; }
  .mcard h3 { font-size: 1.8rem; margin: .1rem 0 .3rem; }
  .mcard__use { font-size: .9rem; }
  .mcard__specs { gap: .5rem; margin: .8rem 0 1rem; }
  .mcard__specs div { padding: .55rem .6rem; }
  .mcard__specs dd { font-size: 1.05rem; }
  .uses__grid { grid-template-columns: 1fr 1fr; }
  .ba__frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .sim__tab { padding: .6rem 1rem; }
  .sim__view { min-height: 250px; }
  .sim__panel { padding: 1.2rem; }
  .uses__grid, .benefits__grid { grid-template-columns: 1fr; }
  .mcard__ctas .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__copy > * { opacity: 1; transform: none; animation: none; }
  .mcard { position: relative; top: 0; }
}

/* ---------- Botón de acción al final de secciones informativas ---------- */
.section__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2.2rem; }
.section__cta--left { justify-content: flex-start; margin-top: 1.6rem; }
@media (max-width: 600px) {
  .section__cta { flex-wrap: nowrap; gap: .5rem; }
  .section__cta .btn { flex: 1 1 auto; padding: .75em .8em; font-size: .82rem; white-space: nowrap; }
  .section__cta .ico { width: 16px; height: 16px; }
}

/* ---------- Portada: nombre del producto como título principal ---------- */
.p-title { font-size: clamp(2.5rem, 5.4vw, 4.4rem) !important; margin-bottom: .7rem !important; line-height: 1.05; }
.p-title .lt { font-weight: 300; }
.p-title b { font-weight: 800; white-space: nowrap; }
.beat--1, .beat--4 { max-width: 680px; }
.hero__copy > .p-title { max-width: 680px; }
.watt {
  display: inline-block; vertical-align: middle; margin-left: .12em; transform: translateY(-.08em);
  font-style: normal; font-family: var(--ff-head); font-weight: 700; font-size: .38em; letter-spacing: .02em;
  padding: .32em .7em; border-radius: 8px; background: var(--red); color: #fff; white-space: nowrap;
}
p.p-claim.p-claim { font-family: var(--ff-head); font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.25; margin: 0 0 1rem; color: #fff; }
.p-claim .lt { font-weight: 300; }
.p-claim b { font-weight: 700; color: var(--red); }
.p-chips { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.p-chips li { display: inline-flex; align-items: center; gap: .45em; padding: .45em .85em; border-radius: 6px; font-family: var(--ff-head); font-weight: 600; font-size: .85rem; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.p-chips svg { width: 16px; height: 16px; color: var(--red); }
.p-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 680px) {
  .p-title { font-size: 2.1rem !important; margin-bottom: .4rem !important; }
  .watt { font-size: .46em; }
  p.p-claim.p-claim { font-size: 1.05rem; margin-bottom: .7rem; }
  .p-chips { margin-bottom: .9rem; gap: .35rem; }
  .p-chips li { font-size: .72rem; padding: .32em .55em; }
  .p-ctas { flex-wrap: nowrap; gap: .5rem; }
  .p-ctas .btn { flex: 1 1 auto; padding: .8em .7em; font-size: .84rem; white-space: nowrap; }
  .p-ctas .ico { width: 16px; height: 16px; }
}

/* ---------- Videos verticales (reels) ---------- */
.reels { background: var(--char); color: #fff; overflow: hidden; }
.reels .section__head p { color: rgba(255,255,255,.7); }
.reels__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 270px; gap: 1.2rem; justify-content: center;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px;
}
.reels__track::-webkit-scrollbar { display: none; }
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; cursor: pointer;
  scroll-snap-align: center; box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.reel:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -24px rgba(218,4,44,.45); }
.reel__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.85) 100%); }
.reel__dur { position: absolute; z-index: 2; right: 12px; top: 12px; font: 600 .75rem/1 var(--ff-head); padding: .4em .6em; border-radius: 6px; background: rgba(0,0,0,.55); }
.reel__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(218,4,44,.6); animation: reelPulse 2.2s infinite; transition: transform .3s var(--ease);
}
.reel__play svg { width: 26px; height: 26px; margin-left: 3px; }
.reel:hover .reel__play { transform: translate(-50%, -50%) scale(1.1); }
@keyframes reelPulse { 70% { box-shadow: 0 0 0 18px rgba(218,4,44,0); } 100% { box-shadow: 0 0 0 0 rgba(218,4,44,0); } }
.reel__info { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; }
.reel__info h3 { font-size: 1.05rem; margin: .45rem 0 0; color: #fff; }
/* Variante destacada (un solo video junto al texto) */
.reels__feature { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: center; }
.reels__feature .reel { width: 100%; }
.reels__feature p { color: rgba(255,255,255,.75); }
.reels__feature .section__cta { justify-content: flex-start; }

/* Visor */
.reel-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(8,8,10,.86); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.reel-modal.open { opacity: 1; }
.reel-modal[hidden] { display: none; }
.reel-modal__box { position: relative; width: min(420px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #000; transform: scale(.94); transition: transform .35s var(--ease); }
.reel-modal.open .reel-modal__box { transform: none; }
.reel-modal video { width: 100%; aspect-ratio: 9 / 16; max-height: calc(100svh - 140px); background: #000; display: block; }
.reel-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 1rem; background: var(--char); color: #fff; }
.reel-modal__title { flex: 1; min-width: 0; font-family: var(--ff-head); font-size: .88rem; line-height: 1.25; }
.reel-modal__cta { flex: none; padding: .7em .9em; font-size: .82rem; white-space: nowrap; }
.reel-modal__close { position: absolute; z-index: 2; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.reel-modal__close svg { width: 20px; height: 20px; }
body.reel-lock { overflow: hidden; }

@media (max-width: 900px) {
  .reels__feature { grid-template-columns: 1fr; gap: 1.6rem; }
  .reels__feature .reel { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 680px) {
  .reels__track { justify-content: start; grid-auto-columns: 68%; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; gap: .8rem; }
  .reel__play { width: 56px; height: 56px; }
  .reel-modal__bar { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- Video vertical grande (2.ª sección) ---------- */
.reels__feature { grid-template-columns: minmax(0, 420px) auto; gap: clamp(2.5rem, 6vw, 5.5rem); justify-content: center; align-items: center; }
.reels__copy { max-width: 420px; justify-self: start; }
.reels__copy h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.reels__feature .reel { width: auto; height: min(82vh, 780px); aspect-ratio: 9 / 16; }
.reels__feature .reel__info h3 { font-size: 1.3rem; }
.reels__feature .reel__play { width: 78px; height: 78px; }
.reels__feature .reel__play svg { width: 32px; height: 32px; }

/* ---------- Modelos: el 2.º producto con la foto a la derecha ---------- */
.mcard:nth-child(even) { grid-template-columns: 1.2fr .8fr; }
.mcard:nth-child(even) .mcard__media { order: 2; }

@media (max-width: 900px) {
  .reels__feature { grid-template-columns: 1fr; gap: 1.6rem; }
  .reels__copy { max-width: none; justify-self: stretch; }
  .reels__feature .reel { height: auto; width: 100%; max-width: 380px; margin: 0 auto; }
  .mcard:nth-child(even) { grid-template-columns: 1fr; }
  .mcard:nth-child(even) .mcard__media { order: 0; }
}

/* ---------- Portada: luminaria en 3D a la derecha ---------- */
.hero__product {
  --w: min(40vw, 620px);              /* largo visual de la luminaria (horizontal) */
  position: absolute; z-index: 1; right: 5%; top: 50%; width: var(--w); height: calc(var(--w) * .45);
  transform: translateY(-58%); perspective: 1100px; pointer-events: none;
}
.p3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 38deg)) rotateY(var(--ry, 0deg)); animation: p3dFloat 6s ease-in-out infinite; }
@keyframes p3dFloat { 50% { translate: 0 -12px; } }
/* La foto es vertical (363×1080): se gira 90° para verla como cabeza de poste, con el cuello a la derecha */
.p3d__rot {
  position: absolute; left: 50%; top: 50%; width: calc(var(--w) * .336); height: var(--w);
  transform: translate(-50%, -50%) rotate(-90deg); transform-style: preserve-3d;
}
.p3d__face, .p3d__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.p3d__face { filter: drop-shadow(0 0 1px rgba(255,255,255,.4)); }
.p3d__glow { /* LEDs encendidos */
  position: absolute; inset: 0; mix-blend-mode: screen; opacity: .9;
  background: radial-gradient(ellipse 60% 48% at 50% 40%, rgba(255,255,250,.95), rgba(255,253,240,.45) 55%, rgba(255,250,230,0) 80%);
  -webkit-mask: url("../img/luz-vial.png") center / contain no-repeat;
  mask: url("../img/luz-vial.png") center / contain no-repeat;
  animation: p3dPulse 3.5s ease-in-out infinite;
}
@keyframes p3dPulse { 50% { opacity: .7; } }
.p3d__shine { /* reflejo que recorre la carcasa según el ángulo */
  position: absolute; inset: 0; mix-blend-mode: overlay;
  background: linear-gradient(180deg, transparent calc(var(--shine, 50%) - 18%), rgba(255,255,255,.75) var(--shine, 50%), transparent calc(var(--shine, 50%) + 18%));
  -webkit-mask: url("../img/luz-vial.png") center / contain no-repeat;
  mask: url("../img/luz-vial.png") center / contain no-repeat;
}
.p3d__beam { /* haz de luz hacia la carretera */
  position: absolute; left: 6%; right: 16%; top: 55%; height: 170%; z-index: -1;
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255,252,238,.5), rgba(255,252,238,.12) 55%, rgba(255,252,238,0));
  filter: blur(8px); transition: opacity .6s;
}
.p3d__shadow { position: absolute; left: 20%; right: 20%; bottom: -60%; height: 16%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,250,230,.35), transparent 70%); filter: blur(6px); }
.hero__product::before { /* halo detrás de la luminaria */
  content: ""; position: absolute; inset: -40% -10%; z-index: -2;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,252,238,.22), rgba(255,252,238,0) 62%);
}
/* Con las luces apagadas, la luminaria también se apaga */
.hero:has(#lightSwitch[aria-pressed="false"]) .p3d__glow,
.hero:has(#lightSwitch[aria-pressed="false"]) .p3d__beam,
.hero:has(#lightSwitch[aria-pressed="false"]) .hero__product::before { opacity: 0; }

@media (max-width: 1100px) { .hero__product { --w: min(44vw, 520px); right: 2%; } }
@media (max-width: 900px) {
  .hero__product { --w: min(78vw, 420px); right: 50%; top: 24%; transform: translate(50%, -50%); }
}

/* ---------- Portada: visor 360° ---------- */
.hero__product model-viewer {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none;
  background: transparent; --poster-color: transparent; --progress-bar-color: transparent;
  transition: opacity .8s ease; outline: none; cursor: grab;
}
.hero__product model-viewer:active { cursor: grabbing; }
.hero__product.is-3d { --w: min(30vw, 420px); height: min(74svh, 640px); right: 7%; transform: translateY(-50%); pointer-events: auto; }
.hero__product.is-3d model-viewer { opacity: 1; pointer-events: auto; }
.hero__product.is-3d .p3d, .hero__product.is-3d .p3d__beam, .hero__product.is-3d .p3d__shadow { display: none; }
.hero__product.is-3d::before { inset: 5% -30%; background: radial-gradient(ellipse at 50% 45%, rgba(255,252,238,.28), rgba(255,252,238,0) 62%); }
.mv-hint {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); display: none; align-items: center; gap: .45em;
  padding: .45em .9em; border-radius: 999px; background: rgba(14,14,16,.7); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font: 600 .78rem/1 var(--ff-head); white-space: nowrap; backdrop-filter: blur(6px); pointer-events: none;
  transition: opacity .5s;
}
.mv-hint svg { width: 16px; height: 16px; animation: mvSpin 3s linear infinite; }
@keyframes mvSpin { to { transform: rotate(360deg); } }
.hero__product.is-3d .mv-hint { display: inline-flex; }
.hero__product.touched .mv-hint { opacity: 0; }
@media (max-width: 1100px) { .hero__product.is-3d { --w: min(34vw, 380px); right: 3%; } }
@media (max-width: 900px) {
  .hero__product.is-3d { width: min(70vw, 300px); height: 42svh; right: 50%; top: 30%; transform: translate(50%, -50%); }
}
/* La capa de texto no bloquea el arrastre del visor 360°; sus elementos sí reciben clics */
.hero__copy { pointer-events: none; }
.hero__copy > * { pointer-events: auto; }

/* El visor queda invisible hasta que el modelo 3D termina de cargar */
.hero__product.is-3d:not(.ready) model-viewer, .hero__product.is-3d:not(.ready) .mv-hint { opacity: 0; }

/* ---------- Testimonios (clientes) ---------- */
.testimonials { overflow: hidden; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; gap: 1rem; }
.section__head--row .kicker { justify-content: flex-start; }
.tslider__track { display: flex; gap: 1.2rem; transition: transform .7s var(--ease); }
.tcard { margin: 0; flex: 0 0 calc((100% - 2.4rem) / 3); padding: 1.8rem; border-radius: var(--radius); background: var(--gray); display: flex; flex-direction: column; position: relative; }
.tcard::before { content: "“"; position: absolute; right: 20px; top: 0; font: 700 5rem/1 var(--ff-head); color: var(--red); opacity: .15; }
.stars { color: #F5A524; letter-spacing: .12em; }
.tcard blockquote { margin: .8rem 0 1.4rem; font-size: .98rem; flex: 1; }
.tcard figcaption { display: flex; gap: .8rem; align-items: center; }
.tcard small { display: block; color: var(--muted); }
.avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-family: var(--ff-head); background: var(--red); color: #fff; }
.tslider__nav { display: flex; gap: .5rem; }
.tslider__nav button { width: 44px; height: 44px; border-radius: 8px; border: 1.5px solid var(--char); background: transparent; color: var(--char); display: grid; place-items: center; cursor: pointer; transition: .25s; }
.tslider__nav button svg { width: 18px; height: 18px; }
.tslider__nav button:first-child svg { transform: rotate(180deg); }
.tslider__nav button:hover { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 1024px) { .tcard { flex-basis: calc((100% - 1.2rem) / 2); } }
@media (max-width: 680px) { .tcard { flex-basis: 100%; } .section__head--row { flex-direction: column; align-items: flex-start; } }

/* ---------- Modelos: 600W próximamente ---------- */
.mcard--soon { background: var(--gray); }
.mcard__media--soon { flex-direction: column; gap: .6rem; }
.mcard__media--soon::before { background: #fff; }
.soon__w { position: relative; font: 800 clamp(4rem, 9vw, 7.5rem)/1 var(--ff-head); color: transparent; -webkit-text-stroke: 2px var(--red); letter-spacing: -.02em; }
.soon__tag { position: relative; padding: .4em 1em; border-radius: 999px; background: var(--red); color: #fff; font: 700 .78rem/1 var(--ff-head); letter-spacing: .12em; text-transform: uppercase; }
.mcard--soon .mcard__media .soon__tag { position: absolute; top: 8%; left: 6%; z-index: 1; transform: rotate(-8deg); }
@media (max-width: 900px) { .mcard__media::before { width: auto; height: 100%; } }
.mcard--soon .mcard__media::before { background: #fff; }

/* =========================================================
   CÓMO FUNCIONA: día → noche (poste solar frente a una casa)
   ========================================================= */
.daynight { --p: 0; --on: 0; --charge: 0; height: 250vh; position: relative; color: #fff; }
.daynight__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.daynight__sky { position: absolute; inset: 0; background: color-mix(in srgb, #5BA8E0 calc((1 - var(--p)) * 100%), #141416); }
.daynight__stars {
  position: absolute; inset: 0; opacity: var(--p);
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 75% 40%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 10%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 20% 45%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 65% 60%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 42% 35%, #fff 50%, transparent 51%);
}
.daynight__orb { position: absolute; width: 110px; height: 110px; border-radius: 50%; left: calc(50% + var(--p) * 40%); top: var(--orb-y, 14%); background: color-mix(in srgb, #FFD23F calc((1 - var(--p)) * 100%), #EDEDF2); }
.daynight__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.daynight h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.dn-steps { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.dn-step { display: flex; gap: 1rem; padding: .9rem 1.1rem; border-radius: 10px; background: rgba(0,0,0,.22); border-left: 3px solid transparent; opacity: .55; transition: .45s var(--ease); }
.dn-step.is-on { opacity: 1; background: rgba(0,0,0,.4); border-left-color: var(--red); }
.dn-step b { font-family: var(--ff-head); font-size: 1.3rem; color: #fff; }
.dn-step.is-on b { color: var(--red); }
.dn-step h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.dn-step p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.85); }
.daynight__local { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 0; font-size: .88rem; color: rgba(255,255,255,.85); }
.daynight__local svg { width: 22px; height: 22px; flex: none; color: var(--red); }
.daynight__ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.daynight__scene { position: relative; }
.daynight__scene svg { width: 100%; height: auto; max-height: 72vh; display: block; }
/* Escena: los colores van de día a noche con --p; la luz se enciende con --on */
.dn-ground { fill: color-mix(in srgb, #7a8a72 calc((1 - var(--p)) * 100%), #1c1e24); }
.dn-walk { fill: color-mix(in srgb, #c9c7bf calc((1 - var(--p)) * 100%), #2b2e36); }
.dn-wall { fill: color-mix(in srgb, #efe9dd calc((1 - var(--p)) * 100%), #2a2d36); }
.dn-roof { fill: color-mix(in srgb, #b8452f calc((1 - var(--p)) * 100%), #3a2a2a); }
.dn-door { fill: color-mix(in srgb, #6b4a35 calc((1 - var(--p)) * 100%), #241b16); }
.dn-win { fill: color-mix(in srgb, #9ec9ea calc((1 - var(--p)) * 100%), #ffd98a); }
.dn-facade { fill: #fff6d8; mix-blend-mode: screen; opacity: calc(var(--on) * .22); }
.dn-beam, .dn-pool, .dn-glow { mix-blend-mode: screen; opacity: var(--on); }
.dn-post { stroke: #8d919c; stroke-width: 8; stroke-linecap: round; }
.dn-arm { stroke: #8d919c; stroke-width: 6; fill: none; stroke-linecap: round; }
.dn-head { fill: #d9dbe0; }
.dn-led { fill: color-mix(in srgb, #fff calc(var(--on) * 100%), #7a7d86); }
.dn-panel { fill: #1f3b6b; stroke: #9bb4d8; stroke-width: 2; stroke-linejoin: round; }
.dn-panelLines { stroke: rgba(155,180,216,.6); stroke-width: 1.5; }
.dn-glareWrap { opacity: calc(1 - var(--p)); }
.dn-glare { fill: #fff; animation: dnGlare 2.4s ease-in-out infinite; }
@keyframes dnGlare { 0%, 100% { opacity: .15; } 50% { opacity: .6; } }
.dn-batBox { fill: rgba(0,0,0,.35); stroke: #fff; stroke-width: 2.5; }
.dn-batTip { fill: #fff; }
.dn-batFill { fill: #2FD06B; transform-box: fill-box; transform-origin: left; transform: scaleX(var(--charge)); }
.dn-batTxt { fill: #fff; font: 700 13px "Poppins", sans-serif; }
.dn-batLbl { fill: rgba(255,255,255,.8); font: 600 9px "Poppins", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.dn-person { fill: #c9ccd4; }
@media (max-width: 900px) {
  .daynight__grid { grid-template-columns: 1fr; gap: .8rem; }
  .daynight__scene { order: -1; width: 100%; max-width: 520px; margin: 0 auto; }
  .daynight__scene svg { max-height: 36vh; }
  .daynight__orb { width: 64px; height: 64px; left: calc(55% + var(--p) * 35%); top: 3%; }
}
@media (max-width: 600px) {
  .daynight { height: 260vh; }
  .daynight__sticky { height: 100svh; align-items: flex-start; padding-top: calc(var(--header-h) + .4rem); }
  .daynight__scene svg { max-height: 30vh; }
  .daynight h2 { font-size: 1.6rem; margin-bottom: .2rem; }
  .daynight .kicker { font-size: .68rem; margin-bottom: .5rem; }
  .dn-steps { margin-top: .7rem; gap: .4rem; }
  .dn-step { padding: .55rem .8rem; gap: .7rem; }
  .dn-step b { font-size: 1.05rem; }
  .dn-step h3 { font-size: .95rem; margin: 0; }
  .dn-step p { font-size: .82rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .3s, margin .3s; }
  .dn-step.is-on p { max-height: 6em; opacity: 1; margin-top: .2rem; }
  .daynight__local { font-size: .8rem; margin-top: .7rem; }
  .daynight__ctas { margin-top: .8rem; flex-wrap: nowrap; gap: .5rem; }
  .daynight__ctas .btn { flex: 1 1 auto; padding: .7em .8em; font-size: .8rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .dn-glare { animation: none; } }
