/* ============================================================
   Gymbo — sistema visual v7
   Paleta y tipografía: TulkIT (propuesta-clever-soft.html / TULKIT-SOFTWARE-FACTORY)
   ============================================================ */

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

:root {
  --bg:       #F6F3EE;
  --pure:     #FFFFFF;
  --ink:      #111827;
  --ink-2:    #374151;
  --gray:     #5B6472;
  --gray-l:   #9CA3AF;
  --navy:     #0E1E40;
  --navy-2:   #0A1730;
  --blue:     #2E6BF0;
  --blue-deep:#1B4DD1;
  --blue-tint:#D9E6FD;
  --border:   rgba(17,24,39,.08);
  --border-2: rgba(17,24,39,.14);

  --font: 'Montserrat', sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 24px;

  --maxw: 1180px;
  --ease: cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--pure);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 2.9vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--gray); }
a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section { padding: 88px 0; background: var(--bg); }
.section--white { background: var(--pure); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3 { color: var(--pure); }

/* ===== VIDEO PARALLAX — placeholder para clips generados, listo para <video> ===== */
.video-parallax {
  position: relative; overflow: hidden;
  height: 46vh; min-height: 320px; max-height: 520px;
  background: var(--navy);
}
.video-parallax-track { position: absolute; inset: -12% 0; will-change: transform; }
.video-parallax-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.video-parallax-media.is-placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, var(--navy-2), var(--navy));
  border-top: 1px dashed rgba(255,255,255,.14);
  border-bottom: 1px dashed rgba(255,255,255,.14);
}
.video-placeholder-content {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; color: rgba(255,255,255,.7);
  padding: 0 24px;
}
.video-placeholder-content svg {
  width: 56px; height: 56px; color: rgba(255,255,255,.55);
}
.video-placeholder-content p {
  font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.68);
  max-width: 360px; margin: 0;
}
.section--navy p { color: rgba(255,255,255,.65); }
.section--navy .eyebrow { color: #9CC0FF; }
/* Bloque azul medio — distinto del navy del CTA final, misma familia de azul */
.section--blue-deep { background: var(--blue-deep); }
.section--blue-deep h2, .section--blue-deep h3 { color: var(--pure); }
.section--blue-deep p { color: rgba(255,255,255,.68); }
.section--blue-deep .eyebrow { color: var(--blue-tint); }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: .92rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--grad { background: var(--blue); color: var(--pure); box-shadow: 0 8px 20px rgba(46,107,240,.25); }
.btn--grad:hover { background: var(--blue-deep); box-shadow: 0 10px 26px rgba(46,107,240,.38); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--border-2); }
.btn--outline:hover { border-color: var(--navy); }
.btn--white { background: var(--pure); color: var(--navy); }
.btn--white:hover { background: #E9F0E6; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .92rem; color: var(--ink);
  border-bottom: 1.5px solid var(--border-2); padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease, gap .15s ease;
}
.link-arrow:hover { color: var(--blue); border-color: var(--blue); gap: 10px; }

/* ============================================================
   HEADER — sticky, reactivo al scroll (no flotante, no estático)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  width: 100%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(17,24,39,.06); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 28px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; }
.nav-logo img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: .92rem; color: var(--ink-2); }
.nav-links > a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px 9px 10px; border-radius: 999px; font-weight: 600;
  border: 1.5px solid transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.nav-links > a svg { width: 17px; height: 17px; flex: none; color: var(--blue); transition: transform .25s var(--ease); }
.nav-links > a:hover { color: var(--ink); background: var(--bg); border-color: var(--border); transform: translateY(-1px); }
.nav-links > a:hover svg { transform: scale(1.12) rotate(-4deg); }
.nav-links a.is-active { color: var(--pure); font-weight: 700; background: var(--blue); }
.nav-links a.is-active svg { color: var(--pure); }
.nav-links a.is-active:hover { background: var(--blue-deep); border-color: transparent; }
.nav-cta { flex: none; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.nav-close { display: none; }
.nav-links > a.nav-links-cta { display: none; }

.nav-item { position: relative; }
.nav-item-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: .92rem; font-weight: 500; color: var(--ink-2);
  padding: 10px 12px; border-radius: 999px;
}
.nav-item-btn:hover { color: var(--ink); background: rgba(17,24,39,.05); }
.nav-item-btn .chev { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .2s var(--ease); }
.nav-item.is-open .nav-item-btn .chev { transform: rotate(-135deg); margin-top: 3px; }
.nav-item.is-open .nav-item-btn { color: var(--ink); background: rgba(17,24,39,.06); }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  width: 300px;
  background: var(--pure); border: 1px solid var(--border); border-radius: var(--radius-m);
  box-shadow: 0 24px 50px rgba(17,24,39,.14);
  padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 60;
}
.nav-item.is-open .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
/* Stagger de entrada de cada item del dropdown */
.dropdown a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: var(--radius-s); font-size: .88rem;
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), background .15s ease;
}
.nav-item.is-open .dropdown a { opacity: 1; transform: translateY(0); }
.nav-item.is-open .dropdown a:nth-child(1) { transition-delay: .03s; }
.nav-item.is-open .dropdown a:nth-child(2) { transition-delay: .07s; }
.nav-item.is-open .dropdown a:nth-child(3) { transition-delay: .11s; }
.nav-item.is-open .dropdown a:nth-child(4) { transition-delay: .15s; }
.dropdown a:hover { background: var(--bg); }
.dropdown a .dd-title { font-weight: 700; color: var(--ink); }
.dropdown a .dd-desc { font-size: .78rem; color: var(--gray); }

@media (max-width: 900px) {
  .nav-toggle {
    position: relative; z-index: 210;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-2);
    background: var(--pure); cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
  }
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    display: block; width: 18px; height: 1.8px; background: var(--ink); position: relative;
    transition: transform .25s var(--ease), opacity .2s ease, top .25s var(--ease);
  }
  .nav-toggle span::before, .nav-toggle span::after { content:""; position:absolute; left:0; }
  .nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
  .nav-toggle.is-open { background: var(--blue); border-color: var(--blue); }
  .nav-toggle.is-open span { background: transparent; }
  .nav-toggle.is-open span::before, .nav-toggle.is-open span::after { background: var(--pure); top: 0; }
  .nav-toggle.is-open span::before { transform: rotate(45deg); }
  .nav-toggle.is-open span::after { transform: rotate(-45deg); }

  /* Menú mobile: overlay a pantalla completa, con entrada/salida animada.
     Se usa visibility+opacity (no display:none) para poder transicionar;
     visibility queda "visible" de inmediato al abrir y se retrasa al cerrar,
     así el contenido no deja de ser interactivo/clickeable a mitad de la salida. */
  .nav-links {
    position: fixed; inset: 0; z-index: 200;
    flex-direction: column; align-items: stretch; justify-content: center;
    gap: 12px;
    background: var(--pure);
    padding: 100px 24px 40px;
    overflow-y: auto;
    visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), visibility 0s linear .22s;
  }
  .nav-links.is-open {
    visibility: visible; opacity: 1; pointer-events: auto;
    transition: opacity .26s var(--ease), visibility 0s linear 0s;
  }

  /* Botón cerrar: entra con escala, sale con fade */
  .nav-close {
    position: absolute; top: 20px; right: 20px;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--border); color: var(--ink);
    cursor: pointer;
    opacity: 0; transform: scale(.6) rotate(-45deg);
    transition: opacity .2s var(--ease), transform .2s var(--ease), background .15s ease;
  }
  .nav-links.is-open .nav-close { opacity: 1; transform: scale(1) rotate(0deg); transition-delay: .16s; }
  .nav-close svg { width: 18px; height: 18px; }
  .nav-close:active { transform: scale(.9) rotate(0deg); background: var(--border); }

  /* Links: icono en badge circular de color + entrada escalonada (stagger) */
  .nav-links > a {
    padding: 16px 18px; border-radius: var(--radius-m);
    font-size: 1.1rem; background: var(--bg); border-color: var(--border);
    justify-content: flex-start; gap: 14px;
    opacity: 0; transform: translateY(16px);
    transition: opacity .32s var(--ease), transform .32s var(--ease), background .15s ease, border-color .15s ease;
  }
  .nav-links > a svg {
    width: 20px; height: 20px; flex: none;
    padding: 9px; box-sizing: content-box; border-radius: 50%;
    background: var(--blue-tint); color: var(--blue);
    transition: transform .3s var(--ease), background .2s ease;
  }
  .nav-links > a:active { background: var(--border); border-color: var(--border-2); transform: translateY(0) scale(.97); }
  .nav-links > a:active svg { transform: scale(1.12) rotate(-6deg); background: var(--blue); color: var(--pure); }
  .nav-links > a.is-active svg { background: var(--blue); color: var(--pure); }

  .nav-links > a.nav-links-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 10px; padding: 18px 20px !important;
    font-size: 1.05rem; color: var(--pure) !important; background: var(--blue) !important;
    opacity: 0; transform: translateY(16px);
    transition: opacity .32s var(--ease), transform .32s var(--ease);
  }
  .nav-links-cta svg { width: 20px; height: 20px; color: var(--pure); padding: 0; background: none; }
  .nav-links-cta:active { transform: translateY(0) scale(.97); background: var(--blue-deep) !important; }

  /* Stagger — solo al abrir; al cerrar todo colapsa junto y rápido */
  .nav-links.is-open > a:nth-of-type(1) { transition-delay: .06s; }
  .nav-links.is-open > a:nth-of-type(2) { transition-delay: .10s; }
  .nav-links.is-open > a:nth-of-type(3) { transition-delay: .14s; }
  .nav-links.is-open > a:nth-of-type(4) { transition-delay: .18s; }
  .nav-links.is-open > a.nav-links-cta { transition-delay: .22s; }
  .nav-links.is-open > a { opacity: 1; transform: translateY(0); }

  .nav-cta .btn--grad { display: none; }
  body.nav-open { overflow: hidden; }
}

/* ============================================================
   HERO — login real + titular, mismo bloque, parallax, un solo azul
   ============================================================ */
.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex; align-items: center;
  background: var(--blue);
}
.hero-bg {
  position: absolute; inset: -30% -10%;
  background: var(--blue);
  will-change: transform;
}
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.14) 1.6px, transparent 1.6px);
  background-size: 32px 32px;
}
.hero-bg::after {
  content: "";
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  top: -12%; right: -8%;
  filter: blur(10px);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 90px 28px;
  width: 100%;
}
.hero-copy { color: var(--pure); }
.hero-copy h1 { color: var(--pure); min-height: 2.4em; margin-bottom: 18px; }
.hero-copy h1 em { font-style: normal; color: var(--blue-tint); }
.tw-cursor { display: inline-block; width: 3px; height: .85em; background: var(--pure); margin-left: 2px; vertical-align: -.1em; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-copy .lead { font-size: 1.1rem; max-width: 460px; margin-bottom: 32px; color: rgba(255,255,255,.82); }

/* Entrada escalonada del resto de los elementos del hero (el título ya tiene su propio efecto: tipeo) */
.hero-copy .lead,
.hero-ctas,
.login-card {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero-visual.is-loaded .hero-copy .lead { opacity: 1; transform: translateY(0); transition-delay: .15s; }
.hero-visual.is-loaded .hero-ctas { opacity: 1; transform: translateY(0); transition-delay: .3s; }
.hero-visual.is-loaded .login-card { opacity: 1; transform: translateY(0); transition-delay: .25s; }

.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn--hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pure); color: var(--blue-deep);
  font-weight: 700; font-size: .94rem;
  padding: 14px 22px 14px 16px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(10,20,50,.22);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn--hero-primary .ico { width: 20px; height: 20px; flex: none; }
.btn--hero-primary:hover { transform: translateY(-2px); background: var(--blue-tint); box-shadow: 0 14px 30px rgba(10,20,50,.3); }
.btn--hero-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); color: var(--pure);
  font-weight: 600; font-size: .94rem;
  padding: 14px 22px 14px 16px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.4);
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn--hero-secondary .ico { width: 20px; height: 20px; flex: none; transition: transform .25s var(--ease); }
.btn--hero-secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,.16); border-color: var(--pure); }
.btn--hero-secondary:hover .ico { transform: translateX(3px); }

.login-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 400px;
  background: var(--pure);
  border-radius: 22px;
  padding: 38px 34px;
  box-shadow: 0 40px 80px rgba(10,20,50,.28);
  will-change: transform;
}
.login-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--blue); color: var(--pure);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.login-icon svg { width: 26px; height: 26px; }
.login-card h2 { text-align: center; font-size: 1.3rem; color: var(--navy); }
.login-sub { text-align: center; font-size: .86rem; color: var(--gray); margin-top: 4px; margin-bottom: 26px; }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: .74rem; color: var(--gray); margin-bottom: 6px; }
.input-fake {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border-2); border-radius: 12px;
  padding: 13px 14px; font-size: .88rem; color: var(--ink); min-height: 46px;
  transition: border-color .2s ease;
}
.input-fake svg { width: 16px; height: 16px; flex: none; color: var(--gray-l); }
.input-fake .type-target { color: var(--ink); }
.input-fake .type-cursor {
  display: inline-block; width: 2px; height: 1em; background: var(--blue);
  margin-left: 1px; vertical-align: -.12em; animation: blink 1s step-end infinite;
}
.login-field.is-typing .input-fake { border-color: var(--blue); }
.login-btn {
  width: 100%; text-align: center; background: var(--navy); color: var(--pure);
  border-radius: 12px; padding: 13px; font-weight: 700; font-size: .92rem; margin-top: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.login-btn.is-pressed { transform: scale(.97); box-shadow: inset 0 2px 6px rgba(0,0,0,.3); }

/* ============================================================
   QUE ES GYMBO — mision / objetivo
   ============================================================ */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.mission-card {
  background: var(--pure); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 40px;
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), box-shadow .25s var(--ease);
}
.mission-card.is-visible { opacity: 1; transform: translateY(0); }
.mission-card:nth-child(2) { transition-delay: .12s; }
.mission-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(17,24,39,.1); }
.mission-ico {
  width: 64px; height: 64px;
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: transform .3s var(--ease);
}
.mission-ico svg { width: 100%; height: 100%; }
.mission-card:hover .mission-ico { transform: scale(1.06) rotate(-3deg); }
.mission-card h3 { margin-bottom: 10px; }
.mission-card p { font-size: .98rem; }
.mission-card .fill { background: #FFF3D6; color: #8A5A00; padding: 1px 6px; border-radius: 4px; font-size: .88em; }

/* ============================================================
   CAPACIDADES — grid 5x2
   ============================================================ */
.tiles-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 300px;
  gap: 16px; margin-top: 48px;
}
.tile {
  position: relative; border-radius: var(--radius-m); overflow: hidden;
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .2s ease;
}
.tile.is-visible { opacity: 1; transform: translateY(0); }
.tile--grad { background: var(--blue); }
.tile--navy { background: var(--navy); }
.tile--light { background: var(--bg); border: 1px solid var(--border); }
.tile--light .tile-cap, .tile--light .tile-arrow { color: var(--ink); }
.tile--light .tile-arrow { background: rgba(17,24,39,.08); }
.tile--light .tile-ico { color: var(--blue); }
.tile:hover { box-shadow: 0 20px 40px rgba(17,24,39,.14); }
.tile-ico {
  position: relative; z-index: 2;
  width: 92px; height: 92px; color: var(--pure);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
}
.tile-ico svg { width: 100%; height: 100%; }
.tile:hover .tile-ico { transform: scale(1.06) rotate(-2deg); }
.tile-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.16) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 60%);
}
.tile-bottom { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tile-cap {
  color: var(--pure); font-weight: 700; font-size: 1.02rem; line-height: 1.25;
  min-height: calc(1.02rem * 1.25 * 2);
  display: flex; align-items: flex-start;
}
.tile-cap--tight { font-size: .92rem; }
.tile-arrow {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: var(--pure);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  transition: background .2s ease, transform .2s ease;
}
.tile:hover .tile-arrow { background: rgba(255,255,255,.32); transform: scale(1.08); }
.tile--light:hover .tile-arrow { background: rgba(17,24,39,.16); }

/* ============================================================
   COMO SE IMPLEMENTA — stepper auto-avanzado
   ============================================================ */
.stepper { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; margin-top: 48px; align-items: start; }
.stepper-labels { display: flex; flex-direction: column; }
.step-label {
  display: block; width: 100%; text-align: left;
  background: none; border: none; border-top: 1px solid rgba(255,255,255,.14);
  padding: 20px 0; cursor: pointer;
}
.step-label:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.step-row { display: flex; gap: 16px; align-items: flex-start; }
.step-num { font-weight: 800; font-size: 1.1rem; color: rgba(255,255,255,.32); transition: color .2s ease; }
.step-txt b { display: block; font-size: 1.02rem; color: rgba(255,255,255,.55); transition: color .2s ease; margin-bottom: 3px; }
.step-txt span { display: block; font-size: .86rem; color: rgba(255,255,255,.38); transition: color .2s ease, max-height .3s ease, opacity .3s ease; }
.step-label.is-active .step-num { color: var(--pure); }
.step-label.is-active .step-txt b { color: var(--pure); }
.step-label.is-active .step-txt span { color: rgba(255,255,255,.65); }
.step-progress { display: block; height: 2px; background: rgba(255,255,255,.14); margin-top: 14px; margin-left: 34px; overflow: hidden; border-radius: 2px; }
.step-progress-fill { display: block; height: 100%; width: 0%; background: var(--pure); }
.step-label.is-active .step-progress-fill { transition: width linear; }

.stepper-visual {
  background: var(--pure); border-radius: var(--radius-l);
  padding: 26px; min-height: 440px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.step-panel { display: none; width: 100%; }
.step-panel.is-active { display: block; animation: panelIn .4s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Mockup de calendario/demo (paso 1, conceptual — no es pantalla real) */
.calendar-mock { max-width: 380px; margin: 0 auto; }
.calendar-mock .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.calendar-mock .cal-head b { font-size: .95rem; color: var(--navy); }
.calendar-mock .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 16px; }
.calendar-mock .cal-cell { aspect-ratio: 1; border-radius: 7px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: .72rem; color: var(--gray-l); }
.calendar-mock .cal-cell.is-picked { background: var(--blue); color: var(--pure); font-weight: 700; }
.calendar-mock .cal-slot { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: .84rem; color: var(--ink-2); margin-bottom: 8px; }
.calendar-mock .cal-slot.is-picked { border-color: var(--blue); background: rgba(46,107,240,.06); font-weight: 700; color: var(--navy); }

/* Historial de rutinas (paso 2 — como se ve en el sistema real) */
.history-mock { max-width: 420px; margin: 0 auto; }
.history-mock .hm-title { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 2px; }
.history-mock .hm-sub { font-size: .78rem; color: var(--gray); margin-bottom: 16px; }
.history-mock .hm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px;
}
.history-mock .hm-row .hm-left { display: flex; align-items: center; gap: 10px; }
.history-mock .hm-row .hm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); flex: none; }
.history-mock .hm-row.is-current .hm-dot { background: var(--blue); }
.history-mock .hm-row b { font-size: .86rem; color: var(--ink); display: block; }
.history-mock .hm-row span.hm-date { font-size: .74rem; color: var(--gray-l); }
.history-mock .hm-tag {
  font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--bg); color: var(--gray);
}
.history-mock .hm-row.is-current .hm-tag { background: rgba(46,107,240,.1); color: var(--blue); }

/* Capacitación del equipo (paso 3 — mockup conceptual, no es la rutina final) */
.training-mock { max-width: 400px; margin: 0 auto; }
.training-mock .tm-title { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 2px; }
.training-mock .tm-sub { font-size: .78rem; color: var(--gray); margin-bottom: 18px; }
.training-mock .tm-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px;
}
.training-mock .tm-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1.5px solid var(--border-2); color: transparent;
  font-size: .7rem;
}
.training-mock .tm-item.is-done .tm-check { background: var(--blue); border-color: var(--blue); color: var(--pure); }
.training-mock .tm-item.is-done span { color: var(--ink); font-weight: 600; }
.training-mock .tm-item span { font-size: .86rem; color: var(--gray); }
.training-mock .tm-progress { margin-top: 14px; height: 6px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.training-mock .tm-progress-fill { height: 100%; width: 66%; background: var(--blue); border-radius: 4px; }
.training-mock .tm-progress-label { display: flex; justify-content: space-between; font-size: .72rem; color: var(--gray); margin-top: 6px; }

/* ============================================================
   FICHA DE SOCIO — reconstrucción real del sistema (compacta) ===== */
.device { background: var(--bg); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.device-planilla-head { background: var(--pure); padding: 16px 16px 12px; border-bottom: 1px solid var(--border); }
.device-planilla-head .pn { display: flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.device-planilla-head .pn::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--blue); flex: none; }
.device-planilla-head .head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.device-planilla-head h4 { font-size: 1.05rem; margin-bottom: 2px; }
.device-planilla-head .meta { font-size: .76rem; color: var(--gray); }
.device-planilla-head .sub { font-size: .7rem; color: var(--gray-l); margin-top: 5px; }
.device-planilla-head .print-btn {
  flex: none; display: flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--border-2); border-radius: 999px; padding: 6px 12px;
}
.device-planilla-head .print-btn::before { content: "⎙"; }
.device-daybar { background: var(--navy); color: var(--pure); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .78rem; }
.device-daybar .day-label { font-weight: 700; }
.device-daybar .day-tag { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 3px 10px; font-size: .66rem; font-weight: 600; }
.device-daybar .day-time { opacity: .65; font-size: .72rem; }
.device-table { background: var(--pure); }
.device-table-head { display: grid; grid-template-columns: 20px 34px 1fr 38px 38px 44px; gap: 8px; padding: 7px 16px; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-l); border-bottom: 1px solid var(--border); }
.device-table .dt-row { display: grid; grid-template-columns: 20px 34px 1fr 38px 38px 44px; gap: 8px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--border); font-size: .76rem; }
.device-table .dt-row .num { color: var(--border-2); font-weight: 700; }
.device-table .dt-row .thumb { width: 30px; height: 30px; border-radius: 7px; flex: none; background: var(--blue); border: 1px solid var(--border); }
.device-table .dt-row .ex { color: var(--ink); font-weight: 600; min-width: 0; }
.device-table .dt-row .sub { color: var(--gray-l); font-size: .68rem; font-weight: 400; display: block; }
.device-table .dt-row .met { color: var(--ink-2); text-align: right; }

/* Picker de ejercicios (compacto) */
.device-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--pure); border-bottom: 1px solid var(--border); }
.device-bar .back { font-size: .78rem; color: var(--gray); }
.device-body { padding: 14px; }
.device-title { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 2px; }
.device-sub { font-size: .76rem; color: var(--gray); margin-bottom: 12px; }
.device-search { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; font-size: .78rem; color: var(--gray-l); margin-bottom: 10px; }
.device-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-s); margin-bottom: 6px; font-size: .82rem; }
.device-row b { color: var(--navy); font-weight: 700; }
.device-row span { color: var(--gray-l); font-size: .76rem; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  position: relative; overflow: hidden;
  padding: 100px 0;
  background: var(--blue);
}
.cta-final .hero-bg { background: var(--blue); }
.cta-final .wrap {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.cta-copy { color: var(--pure); text-align: left; }
.cta-final .eyebrow { color: var(--blue-tint); }
.cta-copy h2 {
  max-width: 520px; margin-bottom: 20px; color: var(--pure);
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  min-height: 2.3em;
}
.cta-copy p { max-width: 440px; color: rgba(255,255,255,.85); margin-bottom: 0; font-size: 1.05rem; }

/* Entrada escalonada de TODOS los elementos de la columna de texto */
.cta-final .eyebrow,
.cta-copy h2,
.cta-copy p,
.cta-form {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.cta-final.is-loaded .eyebrow { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.cta-final.is-loaded .cta-copy h2 { opacity: 1; transform: translateY(0); transition-delay: .1s; }
.cta-final.is-loaded .cta-copy p { opacity: 1; transform: translateY(0); transition-delay: .2s; }
.cta-final.is-loaded .cta-form { opacity: 1; transform: translateY(0); transition-delay: .3s; }

.cta-form {
  position: relative; z-index: 2;
  background: var(--pure); border-radius: 22px; padding: 36px;
  box-shadow: 0 40px 80px rgba(10,20,50,.28);
}
.cta-form .form-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.cta-form .form-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue); color: var(--pure);
  display: flex; align-items: center; justify-content: center;
}
.cta-form .form-ico svg { width: 22px; height: 22px; }
.cta-form h3 { color: var(--navy); margin-bottom: 2px; }
.cta-form .form-sub { font-size: .84rem; color: var(--gray); margin: 0; }
.cta-form .form-field { margin-bottom: 14px; }
.cta-form .form-field label { display: block; font-size: .74rem; color: var(--gray); margin-bottom: 6px; }
.cta-form .field-fake {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1.5px solid var(--border-2); border-radius: 12px;
  padding: 12px 14px; transition: border-color .15s ease;
}
.cta-form .field-fake:focus-within { border-color: var(--blue); }
.cta-form .field-fake svg { width: 16px; height: 16px; flex: none; color: var(--gray-l); margin-top: 2px; }
.cta-form input, .cta-form textarea {
  width: 100%; border: none; padding: 0;
  font-size: .88rem; font-family: var(--font); color: var(--ink);
  background: transparent;
}
.cta-form input:focus, .cta-form textarea:focus { outline: none; }
.cta-form textarea { resize: vertical; min-height: 64px; }
.cta-form .btn--grad { width: 100%; justify-content: center; margin-top: 6px; }
.cta-form .btn--grad:disabled { opacity: .7; cursor: default; }
.cta-form .form-status {
  font-size: .82rem; margin: 0 0 10px; min-height: 0;
  transition: color .15s ease;
}
.cta-form .form-status.is-ok { color: #1a8f4c; }
.cta-form .form-status.is-error { color: #d1433f; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { padding: 36px 0 44px; background: var(--pure); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.5rem; }
.footer-brand img { width: 40px; height: 40px; }
.footer-links { display: flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--gray); flex-wrap: wrap; }
.footer-links a { padding: 8px 12px; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.footer-links a:hover { color: var(--ink); background: rgba(17,24,39,.06); }
.footer-bottom { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--gray); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom .footer-links { margin-right: -12px; }
.footer-bottom .footer-links a:hover { background: rgba(17,24,39,.06); }
/* "Powered by TulkIT" usa el mismo lenguaje visual que el resto de los links del footer — texto + pill hover, sin fondo solido que lo destaque */
.footer-powered {
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--gray);
}
.footer-powered .btn--powered {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--gray);
  padding: 8px 12px; border-radius: 999px; font-size: .82rem;
  transition: background .15s ease, color .15s ease;
}
.footer-powered .btn--powered:hover { color: var(--ink); background: rgba(17,24,39,.06); }
.footer-powered .btn--powered svg { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.footer-powered .btn--powered:hover svg { transform: translateX(2px); }

/* ============================================================
   PAGINAS LEGALES
   ============================================================ */
.legal-page { padding: 70px 0 100px; background: var(--pure); }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .updated { color: var(--gray); font-size: .88rem; margin-bottom: 44px; }
.legal-page h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.legal-page p, .legal-page li { color: var(--ink-2); font-size: .96rem; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; margin-bottom: 16px; }
.legal-page a.inline-link { color: var(--blue); text-decoration: underline; }
.legal-page .fill { background: #FFF3D6; color: #8A5A00; padding: 1px 6px; border-radius: 4px; font-size: .88em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .tiles-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
}
@media (max-width: 900px) {
  .section { padding: 56px 0; }
  .header-inner { padding: 14px 20px; }
  .nav-links { flex-direction: column; }
  .nav-toggle { display: flex; }
  .hero-visual { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 20px; gap: 40px; }
  .hero-copy { order: 1; text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .login-card { order: 2; margin: 0 auto; padding: 30px 24px; }
  .mission-grid { grid-template-columns: 1fr; }
  .tiles-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .stepper { grid-template-columns: 1fr; gap: 32px; }
  .cta-final { padding: 56px 0; }
  .cta-final .wrap { grid-template-columns: 1fr; gap: 36px; }
  .cta-copy { text-align: center; }
  .cta-copy h2, .cta-copy p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) {
  .tiles-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
}
