/* ============================================================
   Dynapro C.A. — Presentación interactiva (DEMO)
   Identidad: azul eléctrico, cromo, arco y esfera del logo.
   ============================================================ */
:root {
  --navy: #0a1240;
  --navy2: #101a5c;
  --royal: #1747b8;
  --electric: #1e90ff;
  --sky: #5fd0ff;
  --ice: #eef3fb;
  --ice2: #e2eaf7;
  --white: #ffffff;
  --ink: #0b1445;
  --ink2: #3d4a78;
  --steel: #c9d6ea;
  --line-d: rgba(255,255,255,0.12);
  --line-l: rgba(11,20,69,0.12);
  --wordmark: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--navy); color: var(--white); }
body { font-family: var(--body); font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.label { font-family: var(--display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 5.6vw, 4.8rem); line-height: 0.96; letter-spacing: -0.01em; }
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask > span { display: inline-block; will-change: transform; }
.eyebrow { margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--electric); border-radius: 2px; }
.dark { background: var(--navy); color: var(--white); }
.dark .eyebrow { color: var(--sky); }
.light { background: var(--ice); color: var(--ink); }
.light .eyebrow { color: var(--royal); }

/* ---------- Marca de agua DEMO ---------- */
.wm { position: fixed; inset: -60%; z-index: 900; pointer-events: none; transform: rotate(-28deg); opacity: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='220'><text x='20' y='120' font-family='Arial Black,Arial,sans-serif' font-weight='900' font-size='72' letter-spacing='6' fill='%235b8fd6' fill-opacity='0.13'>DEMO</text><text x='200' y='210' font-family='Arial,sans-serif' font-weight='700' font-size='22' letter-spacing='4' fill='%235b8fd6' fill-opacity='0.13'>DEMO</text></svg>");
  background-size: 360px 220px; }
.wm-badge { position: fixed; right: clamp(16px, 2.6vw, 34px); bottom: 18px; z-index: 901; pointer-events: none; font-family: var(--display); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: rgba(30,144,255,0.85); border: 1px solid rgba(255,255,255,0.35); padding: 8px 12px; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.wm-badge span { background: #fff; color: var(--royal); padding: 2px 6px; border-radius: 2px; margin-right: 8px; font-weight: 800; }

/* ---------- Chrome fijo ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: rgba(255,255,255,0.08); }
.progress__bar { height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--royal), var(--sky)); }
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(20px, 4vw, 48px); pointer-events: none; mix-blend-mode: normal; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.light-mode .brand, .light-mode .topbar__right { color: var(--ink); }
.brand__swoosh { width: 44px; height: 24px; display: block; }
.brand__swoosh svg { width: 100%; height: 100%; overflow: visible; }
.brand__name { font-family: var(--wordmark); font-size: 0.95rem; letter-spacing: 0.08em; }
.brand__name small { font-family: var(--display); font-size: 0.6rem; margin-left: 6px; letter-spacing: 0.12em; opacity: 0.7; }
.topbar__right { display: flex; align-items: center; gap: 22px; color: var(--white); transition: color .4s; }
.topbar__counter { opacity: 0.85; }
.topbar__counter #secNow { font-weight: 800; }
.topbar__tag { opacity: 0.6; }
.dots { position: fixed; right: clamp(14px, 2.4vw, 30px); top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; gap: 14px; }
.dot { position: relative; width: 14px; height: 14px; display: grid; place-items: center; cursor: pointer; background: none; border: 0; padding: 0; }
.dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(140,170,220,0.7); transition: transform .35s var(--ease), background .35s; }
.dot:hover::before { transform: scale(1.5); }
.dot.is-active::before { background: var(--sky); transform: scale(1.8); box-shadow: 0 0 12px rgba(95,208,255,0.7); }
.dot__label { position: absolute; right: 24px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); opacity: 0; transition: opacity .25s, transform .35s var(--ease); pointer-events: none; }
.dot:hover .dot__label { opacity: 1; transform: translate(0, -50%); }

/* ---------- Escenas ---------- */
.scene { position: relative; min-height: 100vh; min-height: 100svh; width: 100%; overflow: hidden; }
.scene__inner { position: relative; width: min(1200px, 100% - clamp(40px, 8vw, 96px)); margin: 0 auto; padding: clamp(96px, 12vh, 140px) 0 clamp(64px, 8vh, 96px); }

/* 01 · Portada */
.scene--hero { display: flex; align-items: center; justify-content: center; }
.hero__bg { position: absolute; inset: 0; opacity: 0.32; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(0.7); transform: scale(1.1); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,64,0.55), rgba(10,18,64,0.85) 60%, var(--navy)); mix-blend-mode: normal; }
.hero__bg::before { content: ""; position: absolute; inset: 0; background: var(--royal); mix-blend-mode: color; z-index: 1; }
.hero__grid { position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(95,208,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(95,208,255,0.08) 1px, transparent 1px); background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent); }
.hero__arc { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__content { position: relative; width: min(1200px, 100% - clamp(40px, 8vw, 96px)); text-align: center; padding-top: 4vh; }
.hero__kicker { display: inline-flex; align-items: center; gap: 14px; color: var(--sky); margin-bottom: 26px; }
.hero__kicker i { width: 40px; height: 1px; background: var(--sky); opacity: 0.6; }
.wordmark { font-family: var(--wordmark); font-size: clamp(2.6rem, 11vw, 9.6rem); line-height: 1; letter-spacing: 0.06em; margin: 0; display: flex; justify-content: center; }
.wordmark span { display: inline-block; will-change: transform, opacity;
  background: linear-gradient(180deg, #ffffff 0%, #dbe7fb 38%, #8fa9d6 50%, #ffffff 62%, #b9cbe9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(23,71,184,0.5)) drop-shadow(0 0 26px rgba(30,144,255,0.35)); }
.hero__sub { margin-top: 18px; color: var(--sky); letter-spacing: 0.42em; font-size: clamp(0.7rem, 1.4vw, 1rem); }
.hero__tag { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.8vw, 2.4rem); line-height: 1.05; margin-top: clamp(30px, 5vh, 54px); color: var(--white); text-transform: uppercase; letter-spacing: 0.02em; }
.hero__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.hero__pills span, .end__pills span { padding: 9px 14px; border: 1px solid rgba(95,208,255,0.35); border-radius: 3px; color: var(--sky); font-size: 0.68rem; background: rgba(10,18,64,0.5); backdrop-filter: blur(6px); }
.hero__hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(255,255,255,0.55); font-size: 0.66rem; }
.hero__wheel { width: 20px; height: 32px; border: 1px solid rgba(255,255,255,0.3); border-radius: 12px; position: relative; }
.hero__wheel span { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--sky); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(12px); opacity: 0 } 100% { transform: translateY(0); opacity: 0 } }

/* Bordes diagonales entre escenas (guiño a las láminas originales) */
.light { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

/* 02 · Quiénes somos */
.scene--who { display: flex; align-items: center; }
.who { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.pillars { display: flex; flex-direction: column; gap: 18px; margin-top: clamp(28px, 4vh, 44px); }
.pillar { position: relative; padding: 18px 0 18px 22px; border-left: 1px solid var(--line-l); }
.pillar__bar { position: absolute; left: -1px; top: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--royal), var(--sky)); transform: scaleY(0); transform-origin: top; }
.pillar b { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(1.1rem, 1.6vw, 1.4rem); color: var(--ink); margin-bottom: 6px; }
.pillar p { color: var(--ink2); font-size: 0.98rem; max-width: 520px; }
.who__photo, .adv__photo { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px rgba(11,20,69,0.22); }
.who__photo { aspect-ratio: 1 / 1; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.who__photo img, .adv__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.who__photo figcaption, .adv__photo figcaption { position: absolute; left: 16px; bottom: 16px; color: #fff; background: rgba(10,18,64,0.75); padding: 8px 12px; border-radius: 3px; font-size: 0.66rem; backdrop-filter: blur(6px); }
.who__photo::after, .adv__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(10,18,64,0.55)); }

/* 03 · Ventajas */
.scene--adv { display: flex; align-items: center; }
.adv { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.adv__photo { aspect-ratio: 9 / 14; max-height: 70vh; }
.plates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(28px, 4vh, 44px); }
.plate { position: relative; background: var(--white); border: 1px solid var(--line-l); border-radius: 6px; padding: 22px; overflow: hidden; will-change: transform, opacity; transition: transform .4s var(--ease), box-shadow .4s; }
.plate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--royal), var(--sky)); }
.plate:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,20,69,0.14); }
.plate__icon { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; background: rgba(30,144,255,0.1); margin-bottom: 14px; }
.plate__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--royal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.plate b { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; line-height: 1.1; }
.plate p { color: var(--ink2); font-size: 0.94rem; }

/* 04 · Cifras */
.scene--stats { display: flex; align-items: center; background: radial-gradient(80% 60% at 70% 20%, rgba(23,71,184,0.45), transparent 60%), var(--navy); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(28px, 4vh, 48px); }
.stat { background: rgba(255,255,255,0.05); border: 1px solid var(--line-d); border-radius: 8px; padding: clamp(20px, 2.4vw, 32px); will-change: transform, opacity; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(95,208,255,0.18), transparent); }
.stat__n { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -0.02em; display: flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.stat__pre { color: var(--sky); font-size: 0.6em; margin-right: 2px; }
.stat__unit { color: var(--sky); font-size: 0.5em; margin-left: 2px; }
.stat__l { margin-top: 10px; color: var(--steel); font-size: 0.92rem; }
.stat--ring { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; background: linear-gradient(90deg, rgba(23,71,184,0.35), rgba(30,144,255,0.1)); }
.stat--ring svg { width: clamp(110px, 12vw, 150px); flex: 0 0 auto; }
.stat--ring .stat__l { max-width: 640px; }
.odo { display: inline-flex; height: 1em; overflow: hidden; line-height: 1; }
.odo__col { position: relative; width: 0.56em; height: 1em; }
.odo__strip { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; will-change: transform; }
.odo__strip span { display: block; height: 1em; line-height: 1; text-align: center; }

/* 05 · Unidades de servicio */
.scene--units { display: flex; align-items: center; }
.units__head { margin-bottom: clamp(20px, 3vh, 36px); }
.units { position: relative; height: clamp(520px, 62vh, 640px); }
.units__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.units__lines line { stroke: var(--royal); stroke-width: 2; stroke-dasharray: 6 6; opacity: 0.55; }
.units__core { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; background: var(--white); border: 2px solid var(--royal); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--royal); box-shadow: 0 0 0 12px rgba(30,144,255,0.08), 0 20px 50px rgba(11,20,69,0.18); will-change: transform, opacity; }
.units__coreSwoosh { width: 70px; height: 34px; display: block; }
.units__coreSwoosh svg { width: 100%; height: 100%; overflow: visible; }
.unit { position: absolute; width: min(300px, 42%); background: var(--white); border: 1px solid var(--line-l); border-radius: 6px; padding: 18px 20px; box-shadow: 0 16px 40px rgba(11,20,69,0.12); will-change: transform, opacity; }
.unit::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--royal), var(--sky)); border-radius: 6px 6px 0 0; }
.unit b { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 10px; }
.unit li { position: relative; padding-left: 14px; color: var(--ink2); font-size: 0.9rem; line-height: 1.35; margin: 5px 0; will-change: transform, opacity; }
.unit li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--electric); }
.unit[data-pos="tl"] { left: 0; top: 0; } .unit[data-pos="tr"] { right: 0; top: 0; }
.unit[data-pos="bl"] { left: 0; bottom: 0; } .unit[data-pos="br"] { right: 0; bottom: 0; }

/* 06 · Departamentos */
.scene--deps { display: flex; align-items: center; background: linear-gradient(180deg, var(--navy2), var(--navy)); }
.deps { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.deps__side { position: relative; }
.deps__index { margin-top: clamp(24px, 4vh, 40px); display: flex; flex-direction: column; }
.deps__index li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-d); font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1rem, 1.5vw, 1.3rem); letter-spacing: 0.04em; color: rgba(255,255,255,0.4); transition: color .4s, padding-left .5s var(--ease); }
.deps__index li .label { color: var(--sky); opacity: 0.6; font-size: 0.7rem; }
.deps__index li.is-on { color: var(--white); padding-left: 10px; }
.deps__index li.is-on .label { opacity: 1; }
.deps__index li.is-done { color: rgba(255,255,255,0.7); }
.deps__meter { margin-top: 22px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.deps__meter span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--royal), var(--sky)); transform: scaleX(0); transform-origin: left; }
.deps__stage { position: relative; min-height: 62vh; }
.dep { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.dep header { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; margin-bottom: 18px; }
.dep__n { grid-row: 1 / 3; font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 5.2rem); line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px var(--sky); }
.dep h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; letter-spacing: 0.01em; }
.dep header p { color: var(--steel); font-size: 1rem; }
.dep__items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; counter-reset: item; }
.dep__items li { position: relative; padding: 12px 14px 12px 40px; background: rgba(255,255,255,0.05); border: 1px solid var(--line-d); border-radius: 6px; font-size: 0.92rem; color: var(--steel); line-height: 1.4; will-change: transform, opacity; counter-increment: item; }
.dep__items li::before { content: counter(item, decimal-leading-zero); position: absolute; left: 12px; top: 12px; font-family: var(--display); font-weight: 700; color: var(--sky); font-size: 0.8rem; letter-spacing: 0.06em; }
.dep__items li b { color: var(--white); font-weight: 600; }

/* 07 · Cierre */
.scene--end { display: flex; align-items: center; }
.end__bg { position: absolute; right: 0; top: 0; width: 42%; height: 100%; opacity: 0.35; }
.end__bg img { width: 100%; height: 165%; object-fit: cover; object-position: 50% 0; filter: grayscale(0.4) brightness(0.6); }
.end__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy), rgba(10,18,64,0.4) 50%, rgba(10,18,64,0.7)); }
.end__arc { opacity: 0.9; }
.end__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 0.96; max-width: 900px; }
.end__lead { max-width: 560px; margin-top: 26px; color: var(--steel); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.end__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.end__foot { display: flex; flex-direction: column; gap: 8px; margin-top: clamp(50px, 9vh, 110px); color: rgba(255,255,255,0.5); font-size: 0.64rem; max-width: 720px; letter-spacing: 0.08em; }
.end__demo { text-transform: none; letter-spacing: 0.03em; font-family: var(--body); font-weight: 400; font-size: 0.78rem; }

/* ---------- Estados iniciales ---------- */
.js .mask > span { transform: translateY(110%); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .wordmark span { opacity: 0; transform: translateY(40px); }
.js .hero__kicker, .js .hero__sub, .js .hero__pills { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .who, .adv, .deps { grid-template-columns: 1fr; }
  .adv__photo { max-height: 40vh; aspect-ratio: 16 / 9; order: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .units { height: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 0; }
  .units__lines, .units__core { display: none; }
  .unit { position: relative; width: 100%; left: auto; right: auto; top: auto; bottom: auto; }
  .deps__stage { min-height: 0; }
  .dep { position: relative; }
  .dep__items { grid-template-columns: 1fr; }
  .who__photo { aspect-ratio: 4 / 3; }
  .topbar__tag, .topbar__counter { display: none; }
}
@media (max-width: 640px) {
  .plates, .stats { grid-template-columns: 1fr; }
  .dots, .hero__hint { display: none; }
  .brand__name { display: none; }
  .wm-badge { font-size: 0.6rem; right: 10px; bottom: 10px; }
  .hero__content { padding-top: 12vh; }
  .wordmark { letter-spacing: 0.03em; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__wheel span { animation: none; }
  .js .mask > span, .js .reveal, .js .wordmark span, .js .hero__kicker, .js .hero__sub, .js .hero__pills { opacity: 1; transform: none; }
  .who__photo { clip-path: none; }
  .pillar__bar { transform: none; }
  .dep { position: relative; opacity: 1; }
}
