/* ============================================================
   INNOVA TALENT · Llosa Edificaciones
   Rediseño "Editorial Kinético" — bone · ink · lima eléctrica
   ============================================================ */

:root {
  --bone: #efe9dc;
  --bone-2: #e6dfce;
  --paper: #f6f2e9;
  --ink: #141310;
  --ink-2: #1c1a15;
  --ink-soft: #57534a;
  --ink-mute: #8b8577;
  --lime: #cbf23d;
  --lime-deep: #b6dd1f;
  --line: #cfc7b4;
  --line-ink: rgba(255, 255, 255, 0.14);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-body: "Inter Tight", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --nav-h: 82px;
  --pad: clamp(20px, 5vw, 88px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}

/* Grano sutil */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
em { font-style: normal; }
::selection { background: var(--lime); color: var(--ink); }

.section { padding: clamp(70px, 11vw, 168px) var(--pad); position: relative; }

/* ============================================================
   Loader
   ============================================================ */
.loader { position: fixed; inset: 0; z-index: 10000; background: var(--ink); color: var(--bone); display: grid; place-content: center; gap: 26px; transition: transform 0.9s var(--ease-out); }
.loader.is-done { transform: translateY(-100%); }
.loader__inner { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-display); }
.loader__mark { font-size: clamp(2.4rem, 9vw, 5rem); font-weight: 800; color: var(--lime); line-height: 1; }
.loader__word { font-size: clamp(1rem, 3vw, 1.4rem); font-weight: 500; letter-spacing: -0.01em; }
.loader__count { margin-left: auto; font-size: clamp(1rem, 3vw, 1.4rem); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.loader__bar { width: min(72vw, 420px); height: 2px; background: var(--line-ink); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--lime); }

/* ============================================================
   Progreso + Nav
   ============================================================ */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--lime); z-index: 200; }

.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 150; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); transition: transform 0.5s var(--ease), background 0.4s, backdrop-filter 0.4s; }
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-solid { background: rgba(239, 233, 220, 0.72); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }

.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__logo { display: grid; place-items: center; }
.nav__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1; display: flex; flex-direction: column; gap: 3px; }
.nav__name em { font-family: var(--font-body); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__menu > a { position: relative; font-size: 0.92rem; font-weight: 500; padding: 10px 16px; border-radius: 100px; display: inline-flex; align-items: center; gap: 7px; transition: background 0.25s, color 0.25s; }
.nav__menu > a span { font-size: 0.66rem; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.nav__menu > a:not(.nav__cta):hover { background: var(--ink); color: var(--bone); }
.nav__menu > a:not(.nav__cta):hover span { color: var(--lime); }
.nav__cta { background: var(--ink); color: var(--bone); font-family: var(--font-display); font-weight: 600; padding: 11px 20px !important; }
.nav__cta .nav__cta-arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.nav__cta:hover { background: var(--lime); color: var(--ink); }
.nav__cta:hover .nav__cta-arrow { transform: translate(2px, -2px); }

.nav__burger { display: none; width: 46px; height: 46px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nav__burger span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.2s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   Botones
   ============================================================ */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 15px 26px; border-radius: 100px; overflow: hidden; transition: color 0.3s var(--ease), background 0.3s var(--ease); white-space: nowrap; }
.btn__ico { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .btn__ico { transform: translate(3px, -3px); }

.btn--fill { background: var(--ink); color: var(--bone); }
.btn--fill::before { content: ""; position: absolute; inset: 0; background: var(--lime); border-radius: inherit; transform: scale(0); transform-origin: bottom; transition: transform 0.5s var(--ease); z-index: -1; }
.btn--fill:hover { color: var(--ink); }
.btn--fill:hover::before { transform: scale(1.05); }
.btn--fill.btn--lime { background: var(--lime); color: var(--ink); }
.btn--fill.btn--lime::before { background: var(--ink); }
.btn--fill.btn--lime:hover { color: var(--bone); }

.btn--line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bone); }
.btn--line-light { border-color: var(--line-ink); color: var(--bone); }
.btn--line-light:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.round-btn { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 1.2rem; display: grid; place-items: center; transition: background 0.3s, color 0.3s, transform 0.3s var(--ease); }
.round-btn:hover { background: var(--ink); color: var(--lime); }
.round-btn:active { transform: scale(0.92); }

/* ============================================================
   Tipografía de secciones
   ============================================================ */
.sec-index { display: inline-block; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; }
.sec-index--lime { color: var(--lime-deep); }

.h-display { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.03em; }
.h-display em { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

.sec-head { max-width: 900px; margin-bottom: clamp(40px, 5vw, 72px); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: calc(var(--nav-h) + clamp(28px, 6vw, 70px)) var(--pad) clamp(40px, 6vw, 80px); }
.hero__head { border-bottom: 1px solid var(--line); padding-bottom: clamp(24px, 3vw, 40px); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 26px; }
.hero__eyebrow .star { color: var(--lime-deep); }

.hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.7rem, 10.5vw, 9.2rem); line-height: 0.92; letter-spacing: -0.045em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .w { display: inline-block; }
.hero__title .accent em { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -0.02em; position: relative; }
.hero__title .accent { position: relative; color: var(--ink); }
.hero__title .accent::after { content: ""; position: absolute; left: 0; right: 6%; bottom: 0.1em; height: 0.14em; background: var(--lime); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 1s; }
body.loaded .hero__title .accent::after { transform: scaleX(1); }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(30px, 4vw, 56px); }
.hero__lead { max-width: 460px; min-width: 0; }
.hero__media { min-width: 0; }
.hero__lead p { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-soft); margin-bottom: 30px; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 16 / 12; max-height: 460px; object-fit: cover; border-radius: 20px; }
.hero__badge { position: absolute; top: -30px; left: -30px; width: 118px; height: 118px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.hero__badge-svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.hero__badge-svg text { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; fill: var(--bone); text-transform: uppercase; }
.hero__badge-dot { position: absolute; color: var(--lime); font-size: 1.3rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__mini { position: absolute; right: -14px; bottom: -22px; background: var(--lime); color: var(--ink); border-radius: 16px; padding: 16px 20px; box-shadow: 0 18px 40px -16px rgba(20, 19, 16, 0.5); }
.hero__mini strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.hero__mini span { font-size: 0.76rem; font-weight: 500; }

/* Entrada hero */
.hero__title .w, .reveal-up { opacity: 0; transform: translateY(115%); }
.reveal-up { transform: translateY(28px); }
body.loaded .hero__title .w { opacity: 1; transform: translateY(0); transition: transform 1s var(--ease-out), opacity 1s var(--ease-out); }
body.loaded .reveal-up { opacity: 1; transform: none; transition: transform 0.9s var(--ease-out) 0.5s, opacity 0.9s var(--ease-out) 0.5s; }
.reveal-media { clip-path: inset(100% 0 0 0); }
body.loaded .reveal-media { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out) 0.4s; }

/* ============================================================
   Ticker / marquees
   ============================================================ */
.ticker { background: var(--ink); color: var(--bone); overflow: hidden; padding: 20px 0; }
.ticker__row, .carreras__row, .footer__wordmark span { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; }
.ticker__row { gap: 34px; font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 500; animation: marquee 26s linear infinite; }
.ticker__row i { color: var(--lime); font-style: normal; }
.ticker:hover .ticker__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.carreras { background: var(--lime); color: var(--ink); overflow: hidden; padding: 16px 0; border-block: 2px solid var(--ink); }
.carreras__row { gap: 26px; font-family: var(--font-display); font-size: clamp(1.1rem, 2.6vw, 1.7rem); font-weight: 600; animation: marquee 30s linear infinite reverse; }
.carreras__row i { font-style: normal; }

/* ============================================================
   Manifiesto
   ============================================================ */
.manifiesto { border-bottom: 1px solid var(--line); }
.manifiesto__text { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 4.4vw, 3.4rem); line-height: 1.16; letter-spacing: -0.02em; max-width: 20ch; margin-inline: auto; text-align: center; }
.manifiesto__text em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.manifiesto__text mark { background: none; color: var(--ink); box-shadow: inset 0 -0.38em 0 var(--lime); padding: 0 0.05em; }
.manifiesto__text .word { display: inline-block; opacity: 0.16; transition: opacity 0.4s var(--ease); }
.manifiesto__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: clamp(48px, 6vw, 88px); max-width: 1000px; margin-inline: auto; }
.manifiesto__meta .k { display: block; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime-deep); margin-bottom: 10px; }
.manifiesto__meta p { color: var(--ink-soft); font-size: 0.98rem; }

/* ============================================================
   Retos (scroll horizontal)
   ============================================================ */
.retos { padding-right: 0; }
.retos__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-right: var(--pad); margin-bottom: 46px; }
.retos__nav { display: flex; gap: 12px; }
.retos__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--pad) 26px 0; scrollbar-width: none; cursor: grab; }
.retos__track::-webkit-scrollbar { display: none; }
.retos__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.reto { scroll-snap-align: start; flex: 0 0 clamp(280px, 40vw, 440px); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px 40px; min-height: 340px; display: flex; flex-direction: column; transition: background 0.4s var(--ease), color 0.4s, transform 0.4s var(--ease), border-color 0.4s; }
.reto:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); transform: translateY(-6px); }
.reto__n { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; color: var(--ink-mute); line-height: 1; transition: color 0.4s; }
.reto:hover .reto__n { color: var(--lime); }
.reto h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; margin: auto 0 12px; letter-spacing: -0.01em; }
.reto p { font-size: 0.98rem; color: var(--ink-soft); transition: color 0.4s; }
.reto:hover p { color: rgba(239, 233, 220, 0.7); }
.retos__hint { display: block; padding: 0 var(--pad); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }

/* ============================================================
   Beneficios (bento)
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.bento__card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.bento__card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(20, 19, 16, 0.4); }
.bento__card .bento__k { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--ink-mute); margin-bottom: auto; }
.bento__card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin: 22px 0 8px; letter-spacing: -0.01em; }
.bento__card p { font-size: 0.96rem; color: var(--ink-soft); }
.bento--big { grid-row: span 2; background: var(--lime); border-color: var(--ink); }
.bento--big .bento__k { color: var(--ink); }
.bento--big h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.bento--big p { color: rgba(20, 19, 16, 0.72); font-size: 1.05rem; }
.bento--wide { grid-column: span 2; }
.bento__card--ink { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.bento__card--ink .bento__k { color: var(--lime); }
.bento__card--ink p { color: rgba(239, 233, 220, 0.66); }

/* ============================================================
   Recorrido (sticky)
   ============================================================ */
.recorrido { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 80px); }
.recorrido__sticky { position: sticky; top: 120px; }
.recorrido__sticky p { color: var(--ink-soft); margin-top: 22px; max-width: 34ch; }
.recorrido__rail { margin-top: 34px; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.recorrido__rail span { display: block; height: 100%; width: 0; background: var(--ink); }
.recorrido__list { display: grid; gap: 2px; }
.recorrido__list li { padding: 28px 6px 26px; border-top: 1px solid var(--line); }
.recorrido__list li:last-child { border-bottom: 1px solid var(--line); }
.recorrido__list .wk { display: inline-block; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime-deep); margin-bottom: 8px; }
.recorrido__list h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.recorrido__list p { color: var(--ink-soft); font-size: 0.96rem; }
.recorrido__list li.is-final h3 { color: var(--ink); }
.recorrido__list li.is-final { background: var(--lime); border-radius: 18px; border-color: transparent; padding-inline: 26px; }
.recorrido__list li.is-final .wk { color: var(--ink); }

/* ============================================================
   Proceso
   ============================================================ */
.proceso__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fase { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 36px 30px 32px; display: flex; flex-direction: column; transition: transform 0.4s var(--ease); }
.fase:hover { transform: translateY(-6px); }
.fase__n { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--lime-deep); line-height: 1; margin-bottom: 20px; }
.fase h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
.fase p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 22px; }
.fase__out { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.fase--win { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.fase--win .fase__n { color: var(--lime); }
.fase--win p { color: rgba(239, 233, 220, 0.66); }
.fase--win .fase__out { color: var(--lime); }

/* ============================================================
   Perfil
   ============================================================ */
.perfil__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.perfil__lead { color: var(--ink-soft); font-size: 1.1rem; margin-top: 20px; max-width: 32ch; }
.reqs { display: grid; gap: 2px; }
.reqs li { display: flex; align-items: flex-start; gap: 16px; padding: 20px 4px; border-top: 1px solid var(--line); font-size: clamp(1rem, 1.6vw, 1.22rem); color: var(--ink-soft); }
.reqs li:last-child { border-bottom: 1px solid var(--line); }
.reqs b { color: var(--ink); font-weight: 600; }
.reqs i { font-style: normal; color: var(--ink-mute); font-size: 0.85em; }
.reqs span { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; }

/* ============================================================
   Demo Day
   ============================================================ */
.demoday { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; background: var(--ink); color: var(--bone); border-radius: 34px; margin-inline: clamp(12px, 3vw, 40px); }
.demoday__media { border-radius: 22px; overflow: hidden; }
.demoday__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform 0.7s var(--ease); }
.demoday__media:hover img { transform: scale(1.05); }
.demoday__body .sec-index { color: var(--lime); }
.demoday__body .h-display { color: var(--bone); }
.demoday__body > p { color: rgba(239, 233, 220, 0.7); font-size: 1.05rem; margin-top: 22px; max-width: 42ch; }
.demoday__stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.demoday__stats strong { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; color: var(--lime); line-height: 1; }
.demoday__stats span { font-size: 0.82rem; color: rgba(239, 233, 220, 0.6); }

/* ============================================================
   Postular (form)
   ============================================================ */
.postular { background: var(--ink-2); color: var(--bone); }
.postular__head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.postular__head .sec-index { color: var(--lime); }
.postular__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 8vw, 6rem); line-height: 0.95; letter-spacing: -0.04em; }
.postular__title .line { display: block; overflow: hidden; }
.postular__title .accent em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--lime); }
.postular__head p { color: rgba(239, 233, 220, 0.66); font-size: 1.08rem; margin-top: 22px; }

.form { max-width: 720px; margin-inline: auto; }
.form__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.form__step-label { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.form__count { font-family: var(--font-display); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.form__count b { color: var(--lime); }
.form__prog { height: 3px; background: var(--line-ink); border-radius: 3px; overflow: hidden; margin-bottom: 42px; }
.form__prog span { display: block; height: 100%; width: 33.33%; background: var(--lime); transition: width 0.5s var(--ease); }

.fstep { border: none; display: none; animation: stepIn 0.5s var(--ease); }
.fstep.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

/* Inputs subrayados (editorial) */
.ff { position: relative; margin-bottom: 34px; }
.ff input, .ff select, .ff textarea { width: 100%; background: transparent; border: none; border-bottom: 1.5px solid var(--line-ink); color: var(--bone); font: inherit; font-size: 1.15rem; padding: 12px 0 10px; outline: none; transition: border-color 0.3s; border-radius: 0; }
.ff textarea { resize: vertical; min-height: 60px; }
.ff select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23cbf23d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; }
.ff select option { background: var(--ink); color: var(--bone); }
.ff label { position: absolute; left: 0; top: 12px; font-size: 1.15rem; color: rgba(239, 233, 220, 0.5); pointer-events: none; transform-origin: left; transition: transform 0.25s var(--ease), color 0.25s; }
.ff input:focus, .ff select:focus, .ff textarea:focus { border-color: var(--lime); }
.ff input:focus ~ label, .ff input:not(:placeholder-shown) ~ label,
.ff textarea:focus ~ label, .ff textarea:not(:placeholder-shown) ~ label,
.ff--sel label { transform: translateY(-24px) scale(0.72); color: var(--lime); }
.ff--sel select:focus ~ label { color: var(--lime); }
.ff__hint { position: absolute; right: 0; bottom: -22px; font-size: 0.74rem; color: rgba(239, 233, 220, 0.4); }
.ff__err { display: none; margin-top: 8px; font-size: 0.8rem; color: #ff9a8a; }
.ff.has-error input, .ff.has-error select, .ff.has-error textarea { border-color: #ff6b57; }
.ff.has-error .ff__err { display: block; }
.ff__err--block { display: none; margin: -10px 0 18px; font-size: 0.8rem; color: #ff9a8a; }
.ff__err--block.show { display: block; }
.ff__legend { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 6px 0 16px; }

/* Pills radio */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: block; font-size: 0.9rem; font-weight: 500; padding: 10px 18px; border-radius: 100px; border: 1.5px solid var(--line-ink); color: rgba(239, 233, 220, 0.8); transition: all 0.25s var(--ease); }
.pill input:checked + span { background: var(--lime); color: var(--ink); border-color: var(--lime); font-weight: 600; }

/* Filebox */
.filebox { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1.5px dashed var(--line-ink); border-radius: 14px; color: rgba(239, 233, 220, 0.55); font-size: 0.95rem; cursor: pointer; margin-bottom: 26px; transition: border-color 0.3s, color 0.3s; }
.filebox input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filebox__ico { color: var(--lime); font-size: 1.2rem; }
.filebox:hover { border-color: var(--lime); color: var(--bone); }
.filebox.has-file { border-style: solid; border-color: var(--lime); color: var(--bone); }

/* Check */
.check { display: flex; align-items: flex-start; gap: 14px; font-size: 0.92rem; color: rgba(239, 233, 220, 0.8); cursor: pointer; margin-bottom: 6px; }
.check input { position: absolute; opacity: 0; }
.check__box { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-ink); display: grid; place-items: center; transition: all 0.25s var(--ease); margin-top: 1px; }
.check__box::after { content: ""; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform 0.2s var(--ease); margin-top: -2px; }
.check input:checked + .check__box { background: var(--lime); border-color: var(--lime); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }

.form__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; }

/* Éxito */
.form-done { text-align: center; padding: 30px 0; animation: stepIn 0.5s var(--ease); }
.form-done__mark { width: 84px; height: 84px; margin: 0 auto 24px; }
.form-done__mark svg { width: 100%; height: 100%; }
.form-done__mark circle { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: dc 0.6s var(--ease) forwards; }
.form-done__mark path { fill: none; stroke: var(--lime); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: dp 0.4s var(--ease) 0.5s forwards; }
@keyframes dc { to { stroke-dashoffset: 0; } }
@keyframes dp { to { stroke-dashoffset: 0; } }
.form-done h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; margin-bottom: 12px; }
.form-done p { color: rgba(239, 233, 220, 0.7); margin-bottom: 26px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: var(--bone); padding: clamp(48px, 6vw, 90px) var(--pad) 30px; }
.footer__cta { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 40px; }
.footer__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 11vw, 9rem); line-height: 0.9; letter-spacing: -0.04em; display: inline-flex; align-items: flex-start; gap: 0.1em; transition: color 0.3s; }
.footer__big span { font-size: 0.4em; }
.footer__big:hover { color: var(--lime); }
.footer__wordmark { overflow: hidden; border-block: 1px solid var(--line-ink); padding: 16px 0; margin: 20px 0 44px; }
.footer__wordmark span { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 3rem); font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(239, 233, 220, 0.4); letter-spacing: -0.02em; animation: marquee 34s linear infinite; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px; padding-bottom: 44px; border-bottom: 1px solid var(--line-ink); }
.footer__brand p { margin-top: 16px; color: rgba(239, 233, 220, 0.6); font-size: 0.94rem; max-width: 30ch; }
.footer__grid h4 { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
.footer__grid nav a, .footer__grid > div a { display: block; color: rgba(239, 233, 220, 0.7); padding: 5px 0; font-size: 0.94rem; transition: color 0.2s, transform 0.2s; }
.footer__grid nav a:hover, .footer__grid > div a:hover { color: var(--lime); transform: translateX(4px); }
.footer__badge { display: inline-block; margin-top: 12px; font-size: 0.72rem; font-weight: 600; color: var(--lime); border: 1px solid var(--line-ink); padding: 6px 12px; border-radius: 100px; }
.footer__base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.84rem; color: rgba(239, 233, 220, 0.55); }

/* ============================================================
   Reveal genérico
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero__media { max-width: 560px; }
  .manifiesto__meta { grid-template-columns: 1fr; gap: 20px; max-width: 460px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento--big { grid-row: span 2; }
  .bento--wide { grid-column: span 2; }
  .recorrido { grid-template-columns: 1fr; }
  .recorrido__sticky { position: static; margin-bottom: 34px; }
  .recorrido__rail { display: none; }
  .proceso__row { grid-template-columns: 1fr; }
  .perfil__grid { grid-template-columns: minmax(0, 1fr); }
  .demoday { grid-template-columns: minmax(0, 1fr); }
  .demoday__media { order: -1; }
}

@media (max-width: 720px) {
  :root { --nav-h: 70px; }
  .nav__menu { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 18px var(--pad) 26px; background: var(--bone); border-bottom: 1px solid var(--line); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform 0.45s var(--ease), opacity 0.3s; }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__menu > a { padding: 15px 12px; font-size: 1.05rem; }
  .nav__menu > a:not(.nav__cta) { border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { justify-content: center; margin-top: 12px; }
  .nav.is-solid { background: rgba(239, 233, 220, 0.9); }
  .nav__burger { display: flex; }
  .nav__name em { display: none; }

  .hero__title { font-size: clamp(1.7rem, 7.4vw, 3.4rem); letter-spacing: -0.03em; }
  .postular__title { font-size: clamp(2rem, 8.4vw, 3.6rem); }

  .ff-row { grid-template-columns: 1fr; gap: 0; }
  .bento { grid-template-columns: 1fr; }
  .bento--big, .bento--wide { grid-row: auto; grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .demoday { border-radius: 24px; }
}

@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__badge { width: 92px; height: 92px; top: -18px; left: -14px; }
  .reto { flex-basis: 80vw; }
}

/* ============================================================
   Fail-safes (nunca dejar contenido oculto si el JS no corre)
   ============================================================ */
/* Sin JS: todo visible y sin loader */
html:not(.js) [data-reveal],
html:not(.js) .reveal-up,
html:not(.js) .hero__title .w,
html:not(.js) .manifiesto__text .word { opacity: 1 !important; transform: none !important; }
html:not(.js) .reveal-media { clip-path: none !important; }
html:not(.js) .loader { display: none !important; }
html:not(.js) .hero__title .accent::after { transform: scaleX(1); }

/* Con JS pero si algo falla: revelar por tiempo como respaldo */
html.js .hero__title .w,
html.js .reveal-up { animation: failSafeReveal 0.01s linear 3.2s forwards; }
html.js .loader { animation: failSafeLoader 0.8s var(--ease-out) 3.4s forwards; }
@keyframes failSafeReveal { to { opacity: 1; transform: none; } }
@keyframes failSafeLoader { to { transform: translateY(-100%); visibility: hidden; } }

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero__title .w, .reveal-up, [data-reveal] { opacity: 1 !important; transform: none !important; }
  .reveal-media { clip-path: none !important; }
}
