/* KINAM Energy | sistema visual basado en el Manual Corporativo */
:root {
  --navy: #07172A;      /* Fondo Deep Navy */
  --navy-2: #0A1D33;
  --navy-3: #10294A;
  --cyan: #00E5FF;      /* Cian Neón: acción */
  --green: #28A745;     /* Verde Hoja: sostenibilidad */
  --white: #FFFFFF;
  --text: #E3ECF5;
  --muted: #9DB2C7;
  --line: rgba(0, 229, 255, .16);
  --line-2: rgba(157, 178, 199, .18);
  --radius: 4px;
  --wrap: 1200px;
  --display: "Exo 2", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--navy); color: var(--text); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); color: var(--white); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; max-width: 18ch; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 1em; }
a { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--cyan); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--navy); padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }
.note { color: var(--muted); font-size: .82rem; }
.glow { color: var(--white); text-shadow: 0 0 28px rgba(0, 229, 255, .55); }

/* Entorno fijo: rejilla técnica y brillo que deriva lentamente */
.env { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.env__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,229,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%); }
.env__glow { position: absolute; width: 70vmax; height: 70vmax; left: -15vmax; top: 10vh; background: radial-gradient(circle, rgba(0,229,255,.07), transparent 60%); animation: drift 90s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(55vw, 40vh); } }

/* Botones (manual: arquitectónicos, 4px, sin degradados) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 28px; border-radius: var(--radius); font: 700 .86rem var(--body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--cyan); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.btn--primary { background: var(--cyan); color: var(--navy); }
.btn--primary:hover { background: var(--white); border-color: var(--white); box-shadow: 0 0 32px rgba(0,229,255,.35); }
.btn--ghost { background: rgba(7,23,42,.4); color: var(--cyan); }
.btn--ghost:hover { background: rgba(0, 229, 255, .12); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .74rem; }
.btn--block { width: 100%; }

/* Navbar (manual: Deep Navy puro, logo a 60px) */
.nav { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand img { height: 60px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__private::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border: 1px solid var(--cyan); border-radius: 50%; vertical-align: 2px; }
.nav__menu a:not(.btn) { color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; position: relative; }
.nav__menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--cyan); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span[aria-hidden], .nav__toggle span[aria-hidden]::before, .nav__toggle span[aria-hidden]::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--white); content: ""; }
.nav__toggle span[aria-hidden] { top: 21px; }
.nav__toggle span[aria-hidden]::before { left: 0; top: -7px; }
.nav__toggle span[aria-hidden]::after { left: 0; top: 7px; }
@media (max-width: 1180px) {
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none; }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .nav__menu .btn { margin-top: 16px; }
}

/* Hero: el Banner Kinam completo como pieza principal, seguido del titular sobre Deep Navy */
.hero { position: relative; text-align: center; isolation: isolate; }
.hero__banner { position: relative; margin: 0; background: var(--navy); }
.hero__banner img { width: 100%; height: clamp(230px, 40vw, 760px); object-fit: cover; object-position: center 45%; }
.hero__banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(180deg, transparent, var(--navy)); pointer-events: none; }
.hero__body { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__content { position: relative; max-width: 980px; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 660px; margin: 0 auto 2.2em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.kicker { font-family: var(--mono); color: var(--cyan); text-transform: uppercase; letter-spacing: .24em; font-size: .74rem; margin-bottom: 1.2em; }
.kicker--green { color: var(--green); }
.js .rise { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; }
.js .rise:nth-child(2) { animation-delay: .12s; } .js .rise:nth-child(3) { animation-delay: .26s; } .js .rise:nth-child(4) { animation-delay: .4s; } .js .rise:nth-child(5) { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Cifras */
.figures { padding: 40px 0 56px; border-bottom: 1px solid var(--line-2); }
.figures__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.figure { padding: 18px 24px; border-left: 1px solid var(--line); }
.figure__num { font: 700 clamp(2.2rem, 4vw, 3.2rem)/1 var(--display); color: var(--white); font-variant-numeric: tabular-nums; }
.figure__unit { font-family: var(--mono); color: var(--cyan); margin-left: 8px; font-size: .85rem; }
.figure p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.figures .note { margin-top: 18px; }
@media (max-width: 820px) { .figures__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; } .figure { padding: 14px 14px; } .figure__unit { display: inline-block; margin-left: 4px; } }

/* Secciones */
.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.section--panel { background: rgba(10, 29, 51, .78); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section__intro { color: var(--muted); max-width: 640px; font-size: 1.08rem; }

/* Problema */
.problem { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.pains { list-style: none; padding: 0; margin: 2em 0 0; }
.pains li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line-2); font-weight: 600; color: var(--white); }
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(7,23,42,.6); align-self: center; }
.compare__head, .compare__row { display: grid; grid-template-columns: .8fr 1.1fr 1.2fr; }
.compare__head span { padding: 16px 18px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.compare__head span:last-child { color: var(--cyan); background: rgba(0, 229, 255, .07); }
.compare__rows { margin: 0; }
.compare__row { border-top: 1px solid var(--line-2); }
.compare__row dt, .compare__row dd { margin: 0; padding: 18px; font-size: .95rem; }
.compare__row dt { font-weight: 700; color: var(--white); }
.compare__row .old { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(157,178,199,.35); }
.compare__row .new { color: var(--white); background: rgba(0, 229, 255, .07); }
@media (max-width: 900px) { .problem { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .compare__head { display: none; }
  .compare__row { grid-template-columns: 1fr; }
  .compare__row dt { padding-bottom: 4px; }
  .compare__row .old { padding-top: 0; padding-bottom: 8px; }
  .compare__row .sr-only { position: static; width: auto; height: auto; clip: auto; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
  .compare__row .new .sr-only { color: var(--cyan); }
}

/* Firma: onda en scroll */
.wave { position: relative; height: 320vh; }
.wave__sticky { position: sticky; top: 76px; height: calc(100vh - 76px); height: calc(100svh - 76px); display: flex; align-items: safe center; overflow: hidden; padding: 20px 0; }
.wave__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 64px); align-items: center; width: 100%; }
.wave__steps { list-style: none; padding: 0; margin: 1.6em 0 0; counter-reset: s; }
.wave__steps li { padding: 14px 0 14px 18px; border-left: 2px solid var(--line-2); color: var(--muted); transition: color .5s var(--ease), border-color .5s var(--ease); }
.wave__steps li .mono { display: block; color: var(--muted); margin-bottom: 4px; transition: color .5s var(--ease); }
.wave__steps li.is-on { color: var(--white); border-color: var(--cyan); }
.wave__steps li.is-on .mono { color: var(--cyan); }
.wave__stage { position: relative; aspect-ratio: 16 / 10; max-height: calc(100vh - 160px); width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(ellipse at 50% 50%, rgba(0,229,255,.06), transparent 70%), rgba(7,23,42,.7); }
.wave__stage canvas { width: 100%; height: 100%; display: block; }
.wave__labels { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wave__labels span:last-child { color: var(--cyan); }
.wave__meter { position: absolute; left: 18px; right: 18px; bottom: 16px; height: 2px; background: var(--line-2); }
.wave__meter i { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
@media (max-width: 900px) {
  .wave { height: 260vh; }
  .wave__inner { grid-template-columns: 1fr; gap: 20px; }
  .wave h2 { font-size: 1.7rem; }
  .wave__steps { margin-top: .6em; }
  .wave__steps li { padding: 6px 0 6px 14px; font-size: .9rem; }
  .wave__steps li:not(.is-on) { display: none; }
}

/* Solución */
.solution { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.solution__media, .res__media { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 229, 255, .25); }
.caps { list-style: none; padding: 0; margin: 56px 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.caps li { background: var(--navy); padding: 26px 22px; }
.caps svg { width: 40px; height: 40px; fill: none; stroke: var(--cyan); stroke-width: 1.5; margin-bottom: 18px; }
.caps p { color: var(--muted); margin: 0; font-size: .93rem; }
.spec { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: baseline; border-left: 2px solid var(--cyan); padding-left: 22px; }
.spec div { display: flex; flex-direction: column; }
.spec__num { font: 700 clamp(1.8rem, 3vw, 2.4rem) var(--display); color: var(--cyan); }
.spec .note { flex-basis: 100%; margin: 0; }
@media (max-width: 900px) { .solution { grid-template-columns: 1fr; } .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .caps { grid-template-columns: 1fr; } }

/* Capas */
.layers__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2.2em 0 28px; }
.layers__tabs button { display: inline-flex; gap: 10px; align-items: baseline; font: 600 .95rem var(--body); background: transparent; color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 20px; cursor: pointer; min-height: 46px; transition: all .3s var(--ease); }
.layers__tabs button:hover { border-color: var(--cyan); }
.layers__tabs button[aria-selected="true"] { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.layers__tabs button[aria-selected="true"] .mono { color: var(--navy); }
.layer { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 4vw, 56px); align-items: center; animation: fadeIn .6s var(--ease); }
.layer[hidden] { display: none; }
.layer p { color: var(--muted); }
.layer img { border: 1px solid var(--line); border-radius: var(--radius); }
.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; }
.ticks li { padding: 8px 0 8px 22px; position: relative; border-top: 1px solid var(--line-2); font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 2px; background: var(--cyan); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .layer { grid-template-columns: 1fr; } }

/* Centros de datos */
.dc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(32px, 5vw, 72px); align-items: center; }
.chain { width: 100%; height: auto; overflow: visible; }
.chain text { font: 500 15px var(--mono); fill: var(--muted); letter-spacing: .04em; }
.chain__old path { stroke: rgba(255, 107, 107, .55); stroke-width: 1.5; stroke-dasharray: 4 5; fill: none; }
.chain__new text { fill: var(--cyan); }
.chain__new path { stroke: var(--cyan); stroke-width: 3; fill: none; filter: drop-shadow(0 0 6px rgba(0,229,255,.8)); }
.dc__benefits { grid-column: 1 / -1; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dc__benefits li { border-top: 2px solid var(--cyan); padding-top: 18px; }
.dc__benefits p { color: var(--muted); margin: 0; }
.dc > .note { grid-column: 1 / -1; margin: 0; }
@media (max-width: 900px) { .dc { grid-template-columns: 1fr; } .dc__benefits { grid-template-columns: 1fr; } }

/* Resiliencia */
.res { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.numbered { list-style: none; padding: 0; margin: 1.8em 0 0; counter-reset: n; }
.numbered li { counter-increment: n; position: relative; padding: 0 0 22px 58px; }
.numbered li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; display: grid; place-items: center; font: 500 .8rem var(--mono); color: var(--navy); background: var(--cyan); border-radius: var(--radius); }
.numbered p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .res { grid-template-columns: 1fr; } }

/* Escalabilidad */
.scale__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.scale { margin: 48px 0 40px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7,23,42,.6); }
.scale__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2vw, 22px); margin-bottom: 30px; perspective: 900px; }
.unit { aspect-ratio: 2.4 / 1; border: 1px solid var(--line-2); border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(157,178,199,.08) 0 2px, transparent 2px 12px); transition: all .6s var(--ease); transform: rotateX(18deg); opacity: .35; }
.unit.is-on { border-color: var(--cyan); background: repeating-linear-gradient(90deg, rgba(0,229,255,.22) 0 2px, rgba(0,229,255,.05) 2px 12px); box-shadow: 0 0 34px rgba(0,229,255,.22), inset 0 -3px 0 var(--cyan); opacity: 1; }
.scale__label { font-weight: 600; margin: 0 0 10px; }
.scale__label strong { color: var(--cyan); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: var(--line-2); border-radius: 2px; padding: 0; border: 0; min-height: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 6px rgba(0,229,255,.18); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--cyan); cursor: pointer; }
.scale__mw { margin: 18px 0 0; color: var(--muted); }
.scale__mw span { font: 700 2.2rem var(--display); color: var(--white); margin-right: 8px; }
.trio { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trio p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .scale__head, .trio { grid-template-columns: 1fr; } }

/* Seguridad */
.sec { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: start; }
.sec__list { list-style: none; padding: 0; margin: 0; }
.sec__list li { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6px 28px; padding: 26px 0; border-top: 1px solid var(--line-2); }
.sec__big { grid-row: span 2; font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.1 var(--display); color: var(--cyan); }
.sec__list h3 { margin: 0; }
.sec__list p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .sec, .sec__list li { grid-template-columns: 1fr; } .sec__big { grid-row: auto; } }

/* Video */
.video { text-align: center; }
.video h2 { max-width: none; }
.video__frame { margin: 1.6em auto 0; max-width: 960px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(0, 229, 255, .06), 0 24px 60px rgba(0, 0, 0, .45); }
.video__frame video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }

/* EaaS */
.eaas { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eaas__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 2em; }
.eaas__cols p { color: var(--muted); }
.crossed { list-style: none; padding: 0; margin: 0; }
.crossed li { padding: 9px 0 9px 26px; position: relative; color: var(--muted); border-top: 1px solid var(--line-2); }
.crossed li::before, .crossed li::after { content: ""; position: absolute; left: 2px; top: 21px; width: 12px; height: 1.5px; background: #FF8A8A; transform: rotate(45deg); }
.crossed li::after { transform: rotate(-45deg); }
.eaas__pairs { margin-top: 2em; }
.eaas__head, .eaas__pairs li { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; }
.eaas__head h3 { margin: 0 0 .6em; }
.eaas__head h3:last-child { color: var(--green); filter: brightness(1.35); }
.eaas__pairs ul { list-style: none; padding: 0; margin: 0; }
.eaas__pairs li { padding: 14px 0; border-top: 1px solid var(--line-2); align-items: start; }
.eaas__pairs .no, .eaas__pairs .yes { position: relative; padding-left: 34px; }
.eaas__pairs .no { color: var(--muted); }
.eaas__pairs .no::before, .eaas__pairs .no::after { content: ""; position: absolute; left: 6px; top: 13px; width: 13px; height: 1.6px; background: #FF8A8A; transform: rotate(45deg); }
.eaas__pairs .no::after { transform: rotate(-45deg); }
.eaas__pairs .yes { color: var(--text); font-weight: 500; }
.eaas__pairs .yes::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #2ED158 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: 0 0 0 4px rgba(46, 209, 88, .18), 0 0 14px rgba(46, 209, 88, .45); }
@media (max-width: 900px) { .eaas { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .eaas__head { display: none; }
  .eaas__pairs li { grid-template-columns: 1fr; gap: 8px; }
}

/* Formularios */
.calc, .form { background: rgba(7,23,42,.85); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
label { display: block; font-size: .84rem; font-weight: 600; color: var(--text); margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: 400 1rem var(--body); color: var(--white); background: var(--navy-3); border: 1px solid rgba(157, 178, 199, .35); border-radius: var(--radius); padding: 12px 14px; min-height: 48px; }
input::placeholder, textarea::placeholder { color: #7F95AB; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: 2px solid var(--cyan); outline-offset: 0; }
[aria-invalid="true"] { border-color: #FF8A8A; }
.calc__out { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 24px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc__out span { color: var(--muted); font-size: .9rem; }
.calc__out strong { color: var(--cyan); text-align: right; font-family: var(--display); font-size: 1.1rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-bottom: 22px; }
.form__grid .full { grid-column: 1 / -1; }
.form .note { margin: 14px 0 0; text-align: center; }
@media (max-width: 600px) { .form__grid { grid-template-columns: 1fr; } }
.form__error { color: #FF8A8A; font-size: .9rem; }

/* Casos de uso */
.uses { list-style: none; padding: 0; margin: 2.4em 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.uses li { background: var(--navy-2); padding: 30px 26px; transition: background .4s var(--ease); }
.uses li:hover { background: #0D2440; }
.uses .mono { display: block; margin-bottom: 26px; }
.uses p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }

/* Confianza */
.trust { background: linear-gradient(180deg, transparent, rgba(40,167,69,.07) 60%, transparent); }
.trust__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.venn { width: 100%; max-width: 380px; margin: 0 auto; overflow: visible; }
.venn circle.draw { fill: rgba(0,229,255,.03); stroke: var(--cyan); stroke-width: 1.2; }
.venn text { font: 600 13px var(--body); fill: var(--white); }
.venn__core { fill: var(--white); filter: drop-shadow(0 0 10px var(--cyan)); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.proof { list-style: none; padding: 0; margin: 2em 0 0; }
.proof li { padding: 18px 0; border-top: 1px dashed var(--line-2); display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center; }
.proof h3 { margin: 0; grid-column: 1; }
.proof p { margin: 0; color: var(--muted); font-size: .93rem; grid-column: 1; }
.proof .link, .proof .tag { grid-column: 2; grid-row: 1 / span 2; }
.link { font-weight: 700; }
.tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); border: 1px solid var(--green); padding: 4px 9px; border-radius: var(--radius); white-space: nowrap; }
@media (max-width: 900px) { .trust__inner { grid-template-columns: 1fr; } .venn { max-width: 260px; } }

/* Conversión */
.cta { overflow: hidden; }
.cta__bg { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(0,229,255,.1), transparent 70%), radial-gradient(ellipse 40% 50% at 10% 90%, rgba(40,167,69,.08), transparent 70%); z-index: -1; }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 1.8em 0; }
.steps li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line-2); color: var(--white); font-weight: 600; }
.contact { list-style: none; padding: 0; margin: 0; }
.contact li { margin-bottom: 10px; }
.contact a { font-weight: 700; text-decoration: none; }
.contact a:hover { text-decoration: underline; }
@media (max-width: 900px) { .cta__inner { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--navy); border-top: 1px solid var(--line); padding: 48px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer__inner img { height: 80px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.footer__nav a { color: var(--text); text-decoration: none; font-size: .9rem; }
.footer__nav a:hover { color: var(--cyan); }
.footer p { margin: 0; color: var(--muted); font-size: .88rem; max-width: 720px; }

/* Entradas y trazos */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js li.reveal:nth-child(2) { transition-delay: .08s; } .js li.reveal:nth-child(3) { transition-delay: .16s; } .js li.reveal:nth-child(4) { transition-delay: .24s; } .js li.reveal:nth-child(5) { transition-delay: .32s; } .js li.reveal:nth-child(6) { transition-delay: .4s; }
.js .draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 2.2s var(--ease); }
.js .draw.is-drawn { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .rise { opacity: 1; transform: none; }
  .js .draw { stroke-dashoffset: 0; }
  .wave { height: auto; }
  .wave__sticky { position: static; height: auto; padding: 96px 0; }
  .wave__steps li { color: var(--white); border-color: var(--cyan); display: block !important; }
}

/* Pantallas bajas (laptops): la sección de la onda se compacta para que el titular nunca se corte */
@media (min-width: 901px) and (max-height: 820px) {
  .wave h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
  .wave__steps { margin-top: .8em; }
  .wave__steps li { padding: 8px 0 8px 16px; font-size: .95rem; }
}
@media (max-width: 900px) and (max-height: 760px) {
  .wave__stage { aspect-ratio: 16 / 8; }
}
