/* ===========================================================
   Landing de ENDEL Labs (https://endellabs.com/)
   Tema claro por defecto y oscuro opcional, con la misma clave que
   ENDEL App (endel.tema). El encabezado es oscuro en los dos, como en la app.
   Sin estilos ni scripts en línea: la CSP solo permite 'self'.
   =========================================================== */

@font-face{font-family:'Poppins';font-style:normal;font-weight:300;font-display:swap;src:url(/fonts/poppins-300-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:300;font-display:swap;src:url(/fonts/poppins-300-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C4,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/poppins-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/poppins-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C4,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/poppins-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/poppins-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C4,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/poppins-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/poppins-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C4,U+2C60-2C7F,U+A720-A7FF}

/* ---------- Colores ---------- */
:root{
  --navy:#0A0F1C;
  --cyan:#22D3EE; --cyan-2:#67E8F9; --blue:#1D6FF2;
  /* Tema claro (por defecto) */
  --bg:#F6F8FB; --band:#FFFFFF; --surface:#FFFFFF; --line:#E3E8F0; --line-2:#CBD5E1;
  --text:#334155; --strong:#0B1324; --muted:#5B6B82; --dim:#8492A6;
  --acento:#0891B2; --acento-2:#0E7490;
  --sombra:0 1px 2px rgba(15,23,42,.04), 0 18px 40px -22px rgba(15,23,42,.22);
  --chip-bg:#FFFFFF; --chip-line:#D6E4F0; --chip-text:#0B1324;
  --burbuja:#FFFFFF; --burbuja-line:#DCE3EC; --punto:#94A3B8;
  --piso:#CBD5E1;
  color-scheme:light;
}
html[data-tema="oscuro"]{
  --bg:#0A0F1C; --band:#0D1322; --surface:#111829; --line:#1F2A42; --line-2:#2E3A55;
  --text:#C9D2E0; --strong:#FFFFFF; --muted:#A9B4C7; --dim:#7D889C;
  --acento:#22D3EE; --acento-2:#67E8F9;
  --sombra:0 18px 40px -18px rgba(0,0,0,.6);
  --chip-bg:rgba(17,24,41,.92); --chip-line:#27406A; --chip-text:#FFFFFF;
  --burbuja:#1A2133; --burbuja-line:#2F384C; --punto:#5D6679;
  --piso:#2E3A55;
  color-scheme:dark;
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top:calc(env(safe-area-inset-top,0px) + 88px); background:var(--bg)}
body{margin:0; background:var(--bg); color:var(--text); font-family:'Poppins','Helvetica Neue',Helvetica,Arial,sans-serif; font-weight:300; font-size:17px; line-height:1.65; -webkit-font-smoothing:antialiased; overflow-x:hidden; transition:background-color .3s ease, color .3s ease}
html:not([data-tema="oscuro"]) body{background:
  radial-gradient(60% 40% at 6% 0%, rgba(34,211,238,.12), transparent 70%),
  radial-gradient(45% 34% at 96% 2%, rgba(29,111,242,.09), transparent 70%),
  var(--bg) no-repeat}
img{max-width:100%; display:block}
a{color:var(--acento)}
a:hover{color:var(--acento-2)}
:focus-visible{outline:2px solid var(--acento); outline-offset:3px; border-radius:6px}
.wrap{max-width:1200px; margin:0 auto; padding-inline:clamp(20px,4vw,32px)}
h1,h2,h3{margin:0; color:var(--strong); font-weight:300; letter-spacing:-0.01em}
h1 b,h2 b{font-weight:600}
p{margin:0}
.eyebrow{font-size:13px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--acento)}
.saltar-contenido{position:absolute; left:12px; top:-60px; z-index:200; padding:10px 16px; border-radius:8px; background:var(--cyan); color:var(--navy); font-weight:500; text-decoration:none}
.saltar-contenido:focus{top:12px; color:var(--navy)}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:14px 26px; border-radius:10px; text-decoration:none; font-weight:500; font-size:16px; transition:transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease}
.btn-main{background:var(--cyan); color:var(--navy); box-shadow:0 10px 24px -12px rgba(34,211,238,.8)}
.btn-main:hover{background:var(--cyan-2); color:var(--navy); transform:translateY(-1px)}
.btn-ghost{color:var(--strong); border:1px solid var(--line-2); background:transparent}
.btn-ghost:hover{color:var(--strong); border-color:var(--acento)}

/* ---------- Encabezado (oscuro en los dos temas) ---------- */
header.top{position:sticky; top:0; z-index:40; padding-top:env(safe-area-inset-top,0px); background:rgba(10,15,28,.9); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid #161E31}
header.top .wrap{display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:76px}
.brand{display:flex; align-items:center; gap:14px; text-decoration:none; min-height:48px}
.brand .iso{height:40px; width:auto}
.brand .sep{width:1px; height:34px; background:#5B667C}
.brand .wm{height:34px; width:auto}
.tema{display:inline-grid; place-items:center; width:42px; height:42px; border-radius:50%; border:1px solid #2E3A55; background:transparent; color:#C3CCDA; cursor:pointer; transition:border-color .2s ease, color .2s ease}
.tema:hover{border-color:var(--cyan); color:#fff}
.tema svg{width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.tema .sol{display:none}
html[data-tema="oscuro"] .tema .sol{display:block}
html[data-tema="oscuro"] .tema .luna{display:none}
@media (max-width:520px){
  header.top .wrap{gap:10px; min-height:64px}
  .brand{gap:10px} .brand .iso{height:30px} .brand .sep{height:24px} .brand .wm{height:24px}
  .tema{width:40px; height:40px}
}
@media (max-width:440px){ header.top .brand .sep, header.top .brand .wm{display:none} }

/* ---------- Intro ---------- */
#intro{position:fixed; inset:0; z-index:100; display:grid; place-items:center}
html:not(.js) #intro{display:none}
#intro .bg{position:absolute; inset:0; background:var(--bg); transition:opacity .7s ease}
#intro .fly{position:relative; width:150px; height:150px; will-change:transform; transition:transform .8s cubic-bezier(.65,0,.3,1)}
#intro .drop{width:100%; height:100%; display:grid; place-items:center; animation:drop 1s cubic-bezier(.3,0,.4,1) both}
#intro .drop img{height:150px; width:auto}
#intro .ring{position:absolute; left:50%; top:50%; width:150px; height:150px; margin:-75px 0 0 -75px; border-radius:50%; border:2px solid var(--cyan); opacity:0; transform:scale(.6); animation:ring 1.3s ease-out forwards; pointer-events:none}
#intro .ring:nth-of-type(1){animation-delay:.74s}
#intro .ring:nth-of-type(2){animation-delay:.92s}
#intro .ring:nth-of-type(3){animation-delay:1.1s}
#intro .ring:nth-of-type(4){animation-delay:1.28s}
#intro.gone{pointer-events:none}
#intro.gone .bg{opacity:0}
#intro.skipped .fly, #intro.skipped .ring{opacity:0; transition:opacity .3s ease}
#intro .skip{position:absolute; right:20px; bottom:calc(20px + env(safe-area-inset-bottom,0px)); background:none; border:1px solid var(--line-2); color:var(--muted); font:inherit; font-size:14px; padding:10px 16px; border-radius:8px; min-height:44px; cursor:pointer}
@keyframes drop{0%{transform:translateY(-75vh) scale(.9); opacity:0} 12%{opacity:1} 62%{transform:translateY(0) scale(1.06,.9)} 74%{transform:translateY(-34px) scale(.97,1.04)} 88%{transform:translateY(0) scale(1.02,.97)} 100%{transform:translateY(0) scale(1)}}
@keyframes ring{0%{opacity:.9; transform:scale(.7)} 100%{opacity:0; transform:scale(3.4)}}
html.js.intro .brand .iso{opacity:0}
html.js.intro header .brand .wm, html.js.intro header .brand .sep{clip-path:inset(0 100% 0 0)}
.brand .wm, .brand .sep{transition:clip-path .7s cubic-bezier(.65,0,.3,1) .1s}
html.js.intro .hero-in{opacity:0; transform:translateY(22px)}
.hero-in{transition:opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1)}
html.ready .hero-in:nth-child(2){transition-delay:.1s}
html.ready .hero-in:nth-child(3){transition-delay:.2s}
html.ready .hero-in:nth-child(4){transition-delay:.3s}

/* ---------- Hero ---------- */
.hero{padding:clamp(48px,8vw,96px) 0 clamp(56px,7vw,88px)}
.hero .wrap{display:flex; flex-wrap:wrap; align-items:center; gap:clamp(32px,5vw,56px)}
.hero .copy{flex:999 1 460px; min-width:0; display:flex; flex-direction:column; gap:24px}
.hero h1{font-size:clamp(2.4rem,5vw,4rem); line-height:1.08}
.hero .sub{font-size:clamp(1.05rem,1.6vw,1.2rem); color:var(--muted); max-width:38ch}
.hero .ctas, .app .ctas{display:flex; flex-wrap:wrap; gap:14px}
.stage{position:relative; flex:1 1 420px; min-width:0; max-width:620px; aspect-ratio:6/5}
.stage .hand{position:absolute; left:-8%; top:2%; width:66%; z-index:2; transform-origin:0 30%; -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 26%); mask-image:linear-gradient(90deg, transparent 0, #000 26%)}
.stage .tip{position:absolute; left:58%; top:42%; width:90px; height:90px; margin:-45px 0 0 -45px; border-radius:50%; z-index:3; pointer-events:none; background:radial-gradient(circle, rgba(255,255,255,.95) 0 6%, rgba(103,232,249,.75) 14%, rgba(29,111,242,.35) 34%, rgba(29,111,242,0) 66%)}
.stage .hero-monito{position:absolute; right:4%; bottom:0; height:62%; width:auto; z-index:1; filter:drop-shadow(0 18px 30px rgba(15,23,42,.28))}
html[data-tema="oscuro"] .stage .hero-monito{filter:drop-shadow(0 18px 30px rgba(0,0,0,.45))}
.stage .floor{position:absolute; left:28%; right:0; bottom:0; height:1px; background:linear-gradient(90deg, transparent, var(--piso) 30%, var(--piso) 70%, transparent)}
.chip{position:absolute; z-index:4; display:flex; align-items:center; gap:10px; padding:10px 14px; background:var(--chip-bg); border:1px solid var(--chip-line); border-radius:12px; font-size:14px; font-weight:400; color:var(--chip-text); white-space:nowrap; box-shadow:var(--sombra)}
.chip svg{width:22px; height:22px; fill:none; stroke:var(--acento); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none}
.chip.c1{right:-2%; top:12%} .chip.c2{left:6%; bottom:20%} .chip.c3{right:30%; bottom:4%}
html.ready .stage .hand{animation:handIn 1.1s cubic-bezier(.2,.7,.2,1) .15s both}
html.ready .stage .tip{animation:tipOn .6s ease 1.1s both, pulse 2.4s ease-in-out 1.7s infinite}
html.ready .stage .hero-monito{animation:hopUp .9s cubic-bezier(.3,.7,.3,1) .35s both}
html.ready .chip{animation:pop .5s cubic-bezier(.3,1.4,.5,1) both}
html.ready .chip.c1{animation-delay:1.5s} html.ready .chip.c2{animation-delay:1.85s} html.ready .chip.c3{animation-delay:2.2s}
html.js.intro .stage .hand, html.js.intro .stage .tip, html.js.intro .stage .hero-monito, html.js.intro .chip{opacity:0}
@keyframes handIn{0%{opacity:0; transform:translate(-30%,-18%) rotate(-6deg)} 100%{opacity:1; transform:none}}
@keyframes tipOn{0%{opacity:0; transform:scale(.2)} 100%{opacity:1; transform:scale(1)}}
@keyframes pulse{0%,100%{transform:scale(1); opacity:1} 50%{transform:scale(1.25); opacity:.75}}
@keyframes hopUp{0%{opacity:0; transform:translateY(40%)} 60%{opacity:1; transform:translateY(-6%)} 80%{transform:translateY(0) scale(1.03,.97)} 100%{transform:none}}
@keyframes pop{0%{opacity:0; transform:scale(.6) translateY(10px)} 100%{opacity:1; transform:none}}

/* ---------- Bandas ---------- */
.band{background:var(--band); border-block:1px solid var(--line)}

/* ---------- Problema ---------- */
.problem{padding:clamp(64px,9vw,104px) 0}
.problem .wrap{display:flex; flex-wrap:wrap; align-items:center; gap:clamp(32px,6vw,72px)}
.scene{position:relative; flex:1 1 360px; min-width:0; max-width:480px; aspect-ratio:1/0.82; overflow:hidden; border-bottom:1px solid var(--piso)}
.scene img{position:absolute; bottom:0; height:78%; width:auto}
.scene .m-admin{left:8%; filter:grayscale(1) brightness(.72)}
.scene .m-cliente{right:6%; height:70%}
.bubble{position:absolute; display:flex; gap:6px; padding:12px 16px; background:var(--burbuja); border:1px solid var(--burbuja-line); border-radius:16px 16px 16px 4px; box-shadow:var(--sombra)}
.bubble i{width:7px; height:7px; border-radius:50%; background:var(--punto); display:block}
.bubble.b1{left:2%; top:8%} .bubble.b2{left:36%; top:2%} .bubble.b3{right:4%; top:14%}
.scene .clock{position:absolute; left:58%; top:24%; width:34px; height:34px; fill:none; stroke:var(--punto); stroke-width:2}
.problem .copy{flex:999 1 440px; min-width:0; display:flex; flex-direction:column; gap:30px}
.problem h2{font-size:clamp(1.8rem,3.4vw,2.6rem); line-height:1.2}
.pains{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:20px}
.pains li{display:grid; grid-template-columns:28px 1fr; gap:8px 14px; color:var(--muted)}
.pains li span{font-size:13px; font-weight:500; color:var(--dim); padding-top:3px}
.pains li strong{color:var(--strong); font-weight:500}
.js [data-scene] .m-admin, .js [data-scene] .m-cliente, .js [data-scene] .bubble, .js [data-scene] .clock{opacity:0}
[data-scene].on .m-admin{animation:hopInL 1.1s cubic-bezier(.3,.7,.3,1) both}
[data-scene].on .m-cliente{animation:arriveThenLeave 4.2s ease-in-out .5s both}
[data-scene].on .bubble{animation:pop .45s cubic-bezier(.3,1.4,.5,1) both}
[data-scene].on .bubble.b1{animation-delay:.9s} [data-scene].on .bubble.b2{animation-delay:1.3s} [data-scene].on .bubble.b3{animation-delay:1.7s}
[data-scene].on .bubble i{animation:blink 1.4s ease-in-out infinite}
[data-scene].on .bubble i:nth-child(2){animation-delay:.2s} [data-scene].on .bubble i:nth-child(3){animation-delay:.4s}
[data-scene].on .clock{animation:pop .45s ease 2s both}
@keyframes hopInL{0%{opacity:0; transform:translateX(-130%)} 35%{opacity:1; transform:translate(-70%,-14%)} 62%{transform:translate(-12%,0)} 74%{transform:translate(0,-5%)} 88%{transform:translate(0,0) scale(1.03,.97)} 100%{opacity:1; transform:none}}
@keyframes hopInR{0%{opacity:0; transform:translateX(130%)} 35%{opacity:1; transform:translate(70%,-14%)} 62%{transform:translate(12%,0)} 74%{transform:translate(0,-5%)} 88%{transform:translate(0,0) scale(1.03,.97)} 100%{opacity:1; transform:none}}
@keyframes arriveThenLeave{0%{opacity:0; transform:translateX(120%)} 18%{opacity:1; transform:translateX(0)} 58%{opacity:1; transform:translateX(0)} 66%{transform:translateX(12%) translateY(-3%)} 74%{transform:translateX(30%) translateY(0)} 82%{transform:translateX(52%) translateY(-3%)} 100%{opacity:0; transform:translateX(130%)}}
@keyframes blink{0%,100%{opacity:.35} 50%{opacity:1}}

/* ---------- Cambio (gris a color) ---------- */
.shift{padding:clamp(72px,10vw,120px) 0; position:relative; overflow:hidden}
.shift .glow{position:absolute; left:50%; top:52%; width:min(900px,120vw); aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(circle, rgba(34,211,238,.22), rgba(29,111,242,.08) 40%, transparent 68%); opacity:var(--p,0); pointer-events:none}
.shift .wrap{position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; gap:28px}
.shift h2{font-size:clamp(2rem,4.6vw,3.4rem); line-height:1.12}
.shift .sub{color:var(--muted); max-width:46ch}
.duo{position:relative; width:min(240px,52vw); aspect-ratio:774/1184}
.duo img{position:absolute; inset:0; width:100%; height:100%; object-fit:contain}
.duo .gray{filter:grayscale(1) brightness(.7); opacity:calc(1 - var(--p,0))}
.duo .color{opacity:var(--p,0); filter:drop-shadow(0 0 calc(var(--p,0) * 40px) rgba(34,211,238,.45))}
.duo-floor{width:min(320px,70vw); height:1px; background:linear-gradient(90deg,transparent,var(--piso),transparent); margin-top:-28px}

/* ---------- ENDEL App ---------- */
.app{padding:clamp(72px,9vw,112px) 0; background:var(--band); border-block:1px solid var(--line); position:relative; overflow:hidden}
.app::before{content:""; position:absolute; left:-10%; top:-30%; width:60%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle, rgba(34,211,238,.13), transparent 65%); pointer-events:none}
.app .wrap{position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:clamp(40px,7vw,88px)}
.app .copy{flex:999 1 480px; min-width:0; display:flex; flex-direction:column; gap:22px}
.app h2{font-size:clamp(1.9rem,3.6vw,2.8rem); line-height:1.15}
.app .lead{color:var(--muted); font-size:clamp(1rem,1.4vw,1.1rem); max-width:56ch}

/* La pantalla de inicio de un celular, con el ícono de la app */
/* ENDEL App arriba de todo en la raíz: es lo primero que se ve (y lo que revisa Google). */
.app-arriba{border-top:0; padding-top:clamp(48px,7vw,88px)}
@media (max-width:900px){ .app-arriba .app-vista{order:2} }
.app-vista{flex:1 1 300px; display:flex; justify-content:center; min-width:0}
.pantalla{position:relative; width:min(330px,86vw); aspect-ratio:9/17; border-radius:46px; padding:18px 18px 16px; display:flex; flex-direction:column; gap:22px;
  background:linear-gradient(160deg,#16244A 0%,#0B1530 45%,#0A0F1C 100%); border:10px solid #0B0F19;
  box-shadow:0 0 0 1px #2A3550, 0 40px 80px -30px rgba(10,15,28,.55), inset 0 0 0 1px rgba(255,255,255,.04); overflow:hidden}
.pantalla::before{content:""; position:absolute; left:50%; top:10px; width:92px; height:26px; transform:translateX(-50%); border-radius:20px; background:#04060B}
.pantalla::after{content:""; position:absolute; right:-30%; top:28%; width:90%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle, rgba(34,211,238,.28), transparent 62%); pointer-events:none}
.barra{display:flex; justify-content:space-between; align-items:center; padding:0 10px; color:#fff; font-size:13px; font-weight:500; position:relative; z-index:1}
.barra .se{display:flex; gap:6px; align-items:center}
.barra svg{height:12px; width:auto; fill:#fff; stroke:#fff; stroke-width:1}
.aviso{position:relative; z-index:1; display:grid; grid-template-columns:38px 1fr auto; gap:10px; align-items:center; padding:11px 12px; border-radius:18px; background:rgba(255,255,255,.14); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); color:#fff; margin-top:14px}
.aviso img{width:38px; height:38px; border-radius:10px}
.aviso b{display:block; font-size:13px; font-weight:600}
.aviso span{display:block; font-size:12.5px; line-height:1.35; color:rgba(255,255,255,.86)}
.aviso small{align-self:start; font-size:11px; color:rgba(255,255,255,.6)}
.iconos{position:relative; z-index:1; display:grid; grid-template-columns:repeat(4,1fr); gap:18px 14px; padding:4px 6px; align-items:start}
.fantasma{display:block; aspect-ratio:1; border-radius:22.5%; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.06)}
.icono{grid-column:span 2; grid-row:span 2; margin:0; display:flex; flex-direction:column; align-items:center; gap:8px}
.icono img{width:100%; height:auto; border-radius:22.5%; box-shadow:0 0 0 1px rgba(255,255,255,.12), 0 18px 34px -10px rgba(34,211,238,.55)}
.icono figcaption{color:#fff; font-size:13px; font-weight:500}
.dock{position:relative; z-index:1; margin-top:auto; display:grid; grid-template-columns:repeat(4,1fr); gap:14px; padding:12px; border-radius:28px; background:rgba(255,255,255,.1)}
.js .app-vista[data-scene] .aviso{opacity:0; transform:translateY(-16px)}
.js .app-vista[data-scene] .icono img{transform:scale(.86); opacity:0}
.app-vista[data-scene].on .icono img{animation:icono .7s cubic-bezier(.3,1.4,.5,1) .15s both}
.app-vista[data-scene].on .aviso{animation:aviso .55s cubic-bezier(.2,.8,.2,1) 1s both}
@keyframes icono{0%{opacity:0; transform:scale(.6)} 100%{opacity:1; transform:none}}
@keyframes aviso{0%{opacity:0; transform:translateY(-24px) scale(.96)} 100%{opacity:1; transform:none}}

.funciones{list-style:none; margin:4px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:18px 28px}
.funciones li{display:grid; grid-template-columns:40px 1fr; gap:14px; align-items:start}
.funciones svg{width:40px; height:40px; padding:9px; border-radius:11px; background:rgba(34,211,238,.12); fill:none; stroke:var(--acento); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round}
.funciones b{display:block; color:var(--strong); font-weight:500; font-size:16px}
.funciones span{display:block; color:var(--muted); font-size:15px; line-height:1.5}
.pasos-app{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:10px}
.pasos-app li{display:inline-flex; align-items:center; gap:10px; padding:8px 14px 8px 8px; border:1px solid var(--line); border-radius:999px; font-size:14.5px; color:var(--strong); background:var(--surface)}
.pasos-app span{display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--navy); color:var(--cyan); font-size:13px; font-weight:600}
html[data-tema="oscuro"] .pasos-app span{background:rgba(34,211,238,.14)}
.planes{display:flex; flex-wrap:wrap; align-items:stretch; border:1px solid var(--line); border-radius:16px; background:var(--surface); overflow:hidden}
.planes div{flex:1 1 120px; padding:14px 18px; display:flex; flex-direction:column; border-right:1px solid var(--line)}
.planes div:nth-child(3){border-right:0}
.planes b{color:var(--strong); font-size:22px; font-weight:600; font-variant-numeric:tabular-nums; line-height:1.2}
.planes span{color:var(--muted); font-size:14px}
.planes small{flex:1 1 100%; padding:10px 18px; border-top:1px solid var(--line); color:var(--dim); font-size:13px}

/* ---------- Qué hacemos ---------- */
.areas{padding:clamp(72px,9vw,104px) 0}
.areas .head{display:flex; flex-direction:column; gap:14px; max-width:720px; margin-bottom:clamp(36px,5vw,56px)}
.areas h2{font-size:clamp(1.8rem,3.4vw,2.6rem); line-height:1.2}
.areas .head p{color:var(--muted)}
.grid4{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:clamp(28px,4vw,44px) clamp(24px,3vw,40px)}
.area{display:flex; flex-direction:column; gap:12px}
.area svg{width:48px; height:48px; fill:none; stroke:var(--acento); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round}
.area h3{font-size:20px; font-weight:500; line-height:1.3}
.area p{color:var(--muted); font-size:16px}
.js .areas[data-scene] .area svg *{stroke-dasharray:140; stroke-dashoffset:140}
.areas[data-scene].on .area svg *{animation:draw 1.2s ease forwards}
.areas[data-scene].on .area:nth-child(2) svg *{animation-delay:.15s}
.areas[data-scene].on .area:nth-child(3) svg *{animation-delay:.3s}
.areas[data-scene].on .area:nth-child(4) svg *{animation-delay:.45s}
@keyframes draw{to{stroke-dashoffset:0}}
.giros{margin-top:clamp(40px,5vw,60px); padding-top:28px; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px}
.giros .t{font-size:13px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--dim)}
.giros ul{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px}
.giros li{padding:6px 14px; border:1px solid var(--line); border-radius:999px; font-size:14.5px; color:var(--text); background:var(--bg)}

/* ---------- Nosotros ---------- */
.about{padding:clamp(72px,9vw,104px) 0}
.about .wrap{display:flex; flex-wrap:wrap; align-items:center; gap:clamp(32px,6vw,72px)}
.about .copy{flex:999 1 460px; min-width:0; display:flex; flex-direction:column; gap:32px}
.years{display:flex; align-items:baseline; gap:18px; flex-wrap:wrap}
.years .n{font-size:clamp(5rem,12vw,8.5rem); font-weight:600; line-height:.9; color:var(--strong); font-variant-numeric:tabular-nums}
.years .l{font-size:clamp(1.1rem,2vw,1.4rem); color:var(--muted); max-width:18ch; line-height:1.35}
.points{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:24px}
.points h3{font-size:18px; font-weight:500; margin-bottom:6px}
.points p{color:var(--muted); font-size:15.5px}
.team{position:relative; flex:1 1 320px; min-width:0; max-width:440px; aspect-ratio:1/0.86; overflow:hidden; border-bottom:1px solid var(--piso)}
.team img{position:absolute; bottom:0; height:80%; width:auto}
.team .t1{left:6%} .team .t2{right:6%; height:86%}
.js .team[data-scene] img{opacity:0}
.team[data-scene].on .t1{animation:hopInL 1s cubic-bezier(.3,.7,.3,1) both}
.team[data-scene].on .t2{animation:hopInR 1s cubic-bezier(.3,.7,.3,1) .25s both}

/* ---------- Método ---------- */
.method{padding:clamp(72px,9vw,104px) 0}
.method h2{font-size:clamp(1.8rem,3.4vw,2.6rem); line-height:1.2; max-width:22ch; margin-bottom:clamp(36px,5vw,56px)}
.track{position:relative}
.track .rail{position:absolute; left:0; right:0; top:0; height:2px; background:var(--line)}
.track .fill{position:absolute; left:0; top:0; height:2px; width:calc(var(--m,0) * 100%); background:var(--cyan); box-shadow:0 0 12px rgba(34,211,238,.6)}
.steps{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:28px}
.steps li{padding-top:24px; display:flex; flex-direction:column; gap:8px}
.steps .k{font-size:13px; font-weight:500; color:var(--dim)}
.steps h3{font-size:20px; font-weight:500}
.steps p{color:var(--muted); font-size:16px}

/* ---------- Unidad E-Com ---------- */
.unidad{padding:clamp(56px,7vw,88px) 0 clamp(28px,4vw,40px)}
.unidad-caja{display:flex; flex-wrap:wrap; align-items:center; gap:18px 32px; padding:24px clamp(22px,4vw,36px); border-radius:18px; background:var(--navy); border:1px solid #1F2A42; text-decoration:none; color:#A9B4C7; transition:border-color .2s ease, transform .2s ease}
.unidad-caja:hover{border-color:var(--cyan); color:#A9B4C7; transform:translateY(-2px)}
.unidad-caja img{height:28px; width:auto}
.unidad-caja p{flex:1 1 320px; font-size:15.5px}
.unidad-caja .ir{display:inline-flex; align-items:center; gap:8px; color:#fff; font-weight:500; font-size:15px}
.unidad-caja svg{width:18px; height:18px; fill:none; stroke:var(--cyan); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .2s ease}
.unidad-caja:hover svg{transform:translateX(4px)}

/* ---------- CTA ---------- */
.cta{padding:clamp(28px,4vw,40px) 0 clamp(72px,9vw,104px)}
.cta .box{position:relative; overflow:hidden; background:var(--surface); border:1px solid var(--line); border-radius:22px; padding:clamp(32px,6vw,64px); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:32px; box-shadow:var(--sombra)}
.cta .box::after{content:""; position:absolute; right:-120px; top:-120px; width:360px; height:360px; border-radius:50%; background:radial-gradient(circle, rgba(34,211,238,.16), transparent 70%); pointer-events:none}
.cta .copy{flex:999 1 440px; min-width:0; display:flex; flex-direction:column; gap:14px; position:relative}
.cta h2{font-size:clamp(1.8rem,3.4vw,2.6rem); line-height:1.2}
.cta p{color:var(--muted); max-width:48ch}
.cta .btn{position:relative; font-size:17px; padding:16px 30px}

/* ---------- Pie (oscuro en los dos temas, como el encabezado) ---------- */

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none !important; transition:none !important}
  .js [data-scene] *, .js .team[data-scene] img, .js .app-vista[data-scene] *{opacity:1 !important; transform:none !important; stroke-dashoffset:0 !important}
}
