/* =============================================================
   Mimesis Talento Humano — página pública (landing)
   Arquetipo: degradado reactivo al cursor, con la paleta Mimesis.
   Exo 2 (títulos) · Montserrat (texto) · fuentes locales.
   Regla: el contenido siempre se ve; la animación solo lo enriquece.
   ============================================================= */
@font-face { font-family: "Exo 2"; src: url("/fonts/Exo2-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("/fonts/Exo2-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("/fonts/Exo2-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0f0330;         /* noche índigo */
  --bg-2: #170644;       /* superficie */
  --night: #1f0856;      /* índigo Mimesis */
  --ink: #f4efff;        /* texto sobre oscuro */
  --mute: #b8a9d6;
  --line: rgba(227, 192, 255, .16);
  --violet: #7832a5;
  --orchid: #b779e8;
  --lilac: #e3c0ff;
  --cyan: #22c7e0;       /* único acento frío: acciones y foco */
  --royal: #00269e;
  --paper: #f7f4fb;
  --text: #1c1c1c;
  --text-2: #4a4458;
  --display: "Exo 2", system-ui, sans-serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
h2 { text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1220px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--text); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Botones (lift + sombra) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px; font: 600 .95rem/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: background .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; text-align: center; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn-go { background: linear-gradient(100deg, var(--cyan), #8f4ff0 72%); color: #fff; box-shadow: 0 12px 30px -12px rgba(34, 199, 224, .7); }
.btn-go:hover { box-shadow: 0 18px 38px -12px rgba(143, 79, 240, .8); }
.btn-line { border-color: rgba(227, 192, 255, .4); color: #fff; background: rgba(255, 255, 255, .03); }
.btn-line:hover { border-color: var(--lilac); background: rgba(227, 192, 255, .1); }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--violet); box-shadow: 0 14px 30px -14px rgba(120, 50, 165, .8); }

/* ---------- Barra superior: transparente → sólida ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.top.is-solid { background: rgba(15, 3, 48, .92); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(12px)) { .top.is-solid { background: rgba(15, 3, 48, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 50%; }
.brand b { font-family: var(--display); font-size: 1.15rem; color: #fff; margin-right: 4px; }
.brand span span { color: var(--lilac); font-size: .92rem; }
.top-nav { display: flex; gap: 26px; margin-left: auto; font-size: .88rem; }
.top-nav a { position: relative; text-decoration: none; color: rgba(255, 255, 255, .75); padding: 6px 0; }
.top-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.top-nav a:hover { color: #fff; }
.top-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.top-cta { display: flex; gap: 10px; }
.top-cta .btn { min-height: 40px; padding: 8px 16px; font-size: .88rem; }

/* ---------- Calendario de días laborales (lienzo del hero) ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; background:
  radial-gradient(1100px 620px at 78% 0%, rgba(120, 50, 165, .38), transparent 62%),
  radial-gradient(900px 600px at 0% 100%, rgba(0, 38, 158, .32), transparent 60%),
  var(--bg); }
.days { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.days-fade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 3, 48, .9) 0%, rgba(15, 3, 48, .6) 50%, rgba(15, 3, 48, .2) 100%),
              linear-gradient(180deg, rgba(15, 3, 48, .55) 0%, transparent 18%, transparent 55%, var(--bg) 100%); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 0; }
.kicker { color: var(--lilac); font-weight: 600; font-size: .95rem; margin-bottom: 26px; }
.hero-title { font-weight: 800; font-size: clamp(2.5rem, 1rem + 5.6vw, 6.4rem); line-height: .98; letter-spacing: -.035em; }
.hero-title .ln { display: block; padding-bottom: .04em; }
/* Palabras que pasan de desenfocadas a nítidas, una tras otra (solo si el JS las separó) */
.hero-title .w { display: inline-block; animation: wordIn .9s var(--ease) both; animation-delay: calc(var(--i) * 55ms + .1s); }
@keyframes wordIn { from { opacity: 0; filter: blur(14px); transform: translateY(.18em) scale(1.04); } to { opacity: 1; filter: blur(0); transform: none; } }
.hero-title em { font-style: normal; background: linear-gradient(100deg, var(--lilac), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title em .w { background: linear-gradient(100deg, var(--lilac), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: 40px; align-items: end; margin-top: 44px; }
.lead { font-size: 1.1rem; color: rgba(244, 239, 255, .82); max-width: 58ch; animation: fadeUp .9s .45s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; animation: fadeUp .9s .55s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.stage-hero { position: relative; margin-top: 72px; padding-bottom: 80px; animation: fadeUp 1.1s .65s var(--ease) both; }
.device { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; }
.desk { width: 88%; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(227, 192, 255, .2); }
.phone { position: absolute; width: 21%; right: 2%; bottom: 20px; border-radius: 30px; border: 7px solid #0a0222; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .85); }

/* Inclinación 3D sutil (máx. 6°) */
[data-tilt] { --rx: 0deg; --ry: 0deg; transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease); will-change: transform; }

/* ---------- Datos con conteo ---------- */
.facts-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts > div { padding: 40px 28px 44px 0; }
.facts > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 2.4vw, 3.8rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.facts dd { margin: 12px 0 0; color: var(--mute); font-size: .92rem; line-height: 1.5; max-width: 28ch; }

/* ---------- Revelado al hacer scroll (seguro: 6 s de respaldo en JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-reveal][data-tilt].is-revealed { transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); }
.facts > div:nth-child(2) { transition-delay: .08s; }
.facts > div:nth-child(3) { transition-delay: .16s; }
.facts > div:nth-child(4) { transition-delay: .24s; }

/* ---------- Encabezados ---------- */
.sec-head { max-width: 760px; margin-bottom: 72px; }
.sec-head h2, .onboard h2, .faq h2, .close h2 { font-size: clamp(2rem, 1.1rem + 2.8vw, 3.6rem); font-weight: 800; }
.sec-head p { margin-top: 18px; color: var(--mute); font-size: 1.08rem; max-width: 60ch; }

/* ---------- Recorrido: capítulos + escenario fijo ---------- */
.journey { padding: 140px 0 120px; }
.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.chapters { list-style: none; counter-reset: ch; }
.chapter { position: relative; padding: 0 0 0 70px; min-height: 62vh; display: flex; flex-direction: column; justify-content: center; transition: opacity .5s var(--ease); }
.js .chapter { opacity: .35; }
.js .chapter.is-active { opacity: 1; }
.chapter::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.chapter.is-active::before { background: linear-gradient(var(--cyan), var(--orchid)); }
.ch-n { position: absolute; left: 0; top: calc(50% - 120px); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 1.05rem var(--display); background: var(--bg); color: var(--mute); border: 2px solid var(--line); transition: all .4s var(--ease); }
.chapter.is-active .ch-n { background: linear-gradient(135deg, var(--cyan), #8f4ff0); color: #fff; border-color: transparent; box-shadow: 0 0 0 8px rgba(34, 199, 224, .12); }
.chapter h3 { font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.4rem); font-weight: 800; }
.chapter > p { margin-top: 16px; color: rgba(244, 239, 255, .82); }
.chapter ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.chapter li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--mute); }
.chapter li::before, .biz li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); transform: rotate(45deg); }
.shot-inline { display: none; margin: 26px 0 0; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }

.stage { position: sticky; top: 14vh; height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.stage-frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(227, 192, 255, .22); }
.stage-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.035); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.stage-frame img.is-on { opacity: 1; transform: none; }
.stage-box { position: relative; }
.stage-pop { position: absolute; width: 44%; right: -4%; bottom: -7%; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(227, 192, 255, .25); opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .6s var(--ease), transform .7s var(--ease); pointer-events: none; }
.stage-pop.is-on { opacity: 1; transform: none; }
.stage-dots { order: -1; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 22px; font-size: .82rem; color: var(--mute); }
.stage-dots li { position: relative; padding-left: 16px; transition: color .4s; }
.stage-dots li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .4s, box-shadow .4s; }
.stage-dots li.is-on { color: #fff; }
.stage-dots li.is-on::before { background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 199, 224, .2); }

/* ---------- Inducción (capítulo claro) ---------- */
.onboard { background: var(--paper); color: var(--text); padding: 130px 0; border-radius: 36px 36px 0 0; }
.onboard h2 { color: var(--night); }
.onboard-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.lead-dark { margin-top: 18px; color: var(--text-2); font-size: 1.06rem; max-width: 52ch; }
.todo { margin: 30px 0 34px; list-style: none; counter-reset: t; display: grid; gap: 15px; }
.todo li { counter-increment: t; position: relative; padding-left: 42px; color: var(--text-2); }
.todo li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--night); color: #fff; font: 700 .85rem var(--display); }
.todo b { color: var(--night); font-weight: 600; }
.onboard-shot { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 50px 100px -40px rgba(31, 8, 86, .55), 0 0 0 1px rgba(31, 8, 86, .08); }

/* ---------- Empresas ---------- */
.biz { background: var(--paper); color: var(--text); padding: 40px 0 130px; }
.biz .sec-head h2 { color: var(--night); }
.biz .sec-head p { color: var(--text-2); }
.biz-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--night); }
.biz-cols > section { padding: 30px 30px 0 0; }
.biz-cols > section + section { padding-left: 30px; border-left: 1px solid #e2dcec; }
.biz-cols > section:nth-child(2) { transition-delay: .08s; }
.biz-cols > section:nth-child(3) { transition-delay: .16s; }
.biz h3 { font-size: 1.3rem; color: var(--night); margin-bottom: 18px; }
.biz ul { list-style: none; display: grid; gap: 12px; }
.biz li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--text-2); }
.biz li::before { background: var(--violet); }
.biz-custom p { color: var(--text-2); font-size: .95rem; }
.biz-custom p + p { margin-top: 14px; }

/* ---------- Preguntas ---------- */
.faq { padding: 130px 0; }
.faq-in { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 1.05rem; transition: color .25s; }
.faq-list summary:hover { color: var(--lilac); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--cyan); transition: transform .35s var(--ease); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 44px 24px 0; color: var(--mute); }

/* ---------- Cierre ---------- */
.close { padding: 150px 0 140px; border-top: 1px solid var(--line); background:
  radial-gradient(900px 520px at 85% 20%, rgba(120, 50, 165, .45), transparent 62%),
  radial-gradient(800px 520px at 10% 100%, rgba(34, 199, 224, .16), transparent 60%), var(--bg); }
.close h2 { max-width: 18ch; }
.close-in > p { margin-top: 20px; color: rgba(244, 239, 255, .82); font-size: 1.1rem; }
.close-in > p.close-alt { font-size: .95rem; color: var(--mute); }
.close-alt a { color: #fff; }
.big-link { display: inline-block; margin-top: 46px; font: 800 clamp(2rem, 1rem + 4vw, 4.6rem)/1.05 var(--display); letter-spacing: -.03em; text-decoration: none; color: #fff; background: linear-gradient(var(--cyan), var(--cyan)) left 100% / 0% 4px no-repeat; padding-bottom: 8px; transition: background-size .5s var(--ease), color .3s; }
.big-link::after { content: ""; display: inline-block; width: .55em; height: .55em; margin-left: .25em; border-top: .09em solid currentColor; border-right: .09em solid currentColor; transform: rotate(45deg) translate(-.06em, .06em); transition: transform .4s var(--ease); }
.big-link:hover { background-size: 100% 4px; color: var(--lilac); }
.big-link:hover::after { transform: rotate(45deg) translate(.08em, -.08em); }

/* ---------- Pie ---------- */
.foot { background: #08011c; color: var(--mute); font-size: .88rem; padding: 34px 0; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.foot b { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }

/* ---------- Solo lo intrusivo respeta «reducir movimiento» ---------- */
@media (prefers-reduced-motion: reduce) {
  .stage-frame img { transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .top-nav { display: none; }
  .top-cta { margin-left: auto; }
  .hero { padding-top: 130px; }
  .hero-foot { grid-template-columns: 1fr; gap: 28px; }
  .desk { width: 100%; }
  .phone { width: 24%; right: -1%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  /* Sin escenario fijo: cada capítulo lleva su captura */
  .story { grid-template-columns: 1fr; }
  .stage { display: none; }
  .chapter, .js .chapter { min-height: 0; opacity: 1; padding-bottom: 72px; justify-content: flex-start; }
  .chapter::before { background: linear-gradient(var(--orchid), rgba(183, 121, 232, .15)); }
  .ch-n { top: 0; background: linear-gradient(135deg, var(--cyan), #8f4ff0); color: #fff; border-color: transparent; }
  .chapter h3 { padding-top: 4px; }
  .shot-inline { display: block; }
  .onboard-in { grid-template-columns: 1fr; gap: 48px; }
  .biz-cols { grid-template-columns: 1fr; }
  .biz-cols > section + section { padding-left: 0; border-left: 0; border-top: 1px solid #e2dcec; margin-top: 30px; }
  .faq-in { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, 1220px); }
  .hide-sm { display: none; }
  .top-in { gap: 12px; min-height: 64px; }
  .hero { padding-top: 108px; }
  .kicker { font-size: .88rem; margin-bottom: 18px; }
  .hero-title { font-size: clamp(2.2rem, 1rem + 7.4vw, 3rem); line-height: 1.02; }
  .hero-title .ln { display: inline; padding: 0; }
  .hero-title .ln + .ln::before { content: " "; }
  .days-fade { background: linear-gradient(180deg, rgba(15, 3, 48, .55) 0%, rgba(15, 3, 48, .88) 55%, var(--bg) 100%); }
  .lead { font-size: 1rem; }
  .hero-cta .btn { width: 100%; }
  .stage-hero { margin-top: 48px; padding-bottom: 56px; }
  .phone { width: 34%; right: -2%; bottom: 8px; border-width: 4px; border-radius: 18px; }
  .facts > div { padding: 26px 12px 28px 0; }
  .facts > div + div { padding-left: 14px; }
  .facts > div:nth-child(3) { padding-left: 0; }
  .facts dd { font-size: .82rem; }
  .journey { padding: 96px 0 40px; }
  .sec-head { margin-bottom: 48px; }
  .chapter { padding-left: 54px; padding-bottom: 60px; }
  .chapter::before { left: 17px; }
  .ch-n { width: 36px; height: 36px; font-size: .95rem; }
  .onboard { padding: 88px 0; border-radius: 26px 26px 0 0; }
  .biz { padding: 24px 0 88px; }
  .faq { padding: 88px 0; }
  .close { padding: 100px 0; }
}
@media (max-width: 420px) { .brand span span { display: none; } }
