/* =========================================================
   Empleopilot — sistema de diseño
   Paleta de marca: Navy piloto #0B1F3A · Azul vuelo #2F6BFF · Cielo #6E9BFF · Blanco
   Tipografía: Space Grotesk 500 / 700
   ========================================================= */

:root {
  --navy: #0B1F3A;
  --blue: #2F6BFF;
  --blue-deep: #1A3FB0;
  --cielo: #6E9BFF;

  --bg: #F4F6FA;
  --bg-elev: #ffffff;
  --bg-soft: #EAEEF5;
  --ink: var(--navy);
  --ink-2: #44536B;
  --ink-3: #7F8DA4;
  --line: #DCE2EC;
  --accent: var(--blue);
  --accent-ink: #ffffff;
  --accent-soft: #E6EDFF;
  --sky: var(--cielo);
  --sky-ink: var(--navy);
  --ok: #12A37A;
  --warn: #E8A317;
  --danger: #E5484D;
  --shadow: 0 1px 2px rgba(11,31,58,.05), 0 8px 24px rgba(11,31,58,.07);
  --shadow-lg: 0 2px 4px rgba(11,31,58,.05), 0 24px 60px rgba(11,31,58,.14);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  /* colores del símbolo (la E y el avión) */
  --mark-e: var(--navy);
  --mark-p: var(--blue);
  /* superficies destacadas (tarjetas navy con texto blanco) */
  --surface-strong: var(--navy);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface-strong: #14305C;
    --bg: #071427;
    --bg-elev: #0E1E38;
    --bg-soft: #142846;
    --ink: #F4F6FA;
    --ink-2: #B3C0D6;
    --ink-3: #7385A3;
    --line: #1E3354;
    --accent: var(--cielo);
    --accent-ink: var(--navy);
    --accent-soft: #15295A;
    --mark-e: #ffffff;
    --mark-p: var(--cielo);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --surface-strong: #14305C;
  --bg: #071427;
  --bg-elev: #0E1E38;
  --bg-soft: #142846;
  --ink: #F4F6FA;
  --ink-2: #B3C0D6;
  --ink-3: #7385A3;
  --line: #1E3354;
  --accent: var(--cielo);
  --accent-ink: var(--navy);
  --accent-soft: #15295A;
  --mark-e: #ffffff;
  --mark-p: var(--cielo);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.5);
}

*, *::before, *::after { box-sizing: border-box; }
/* El atributo hidden siempre gana, aunque la clase defina display */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sky); color: var(--sky-ink); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.serif { font-weight: 700; color: var(--accent); letter-spacing: -.03em; }
.cta .serif, .auth-art .serif { color: var(--navy); }
.muted { color: var(--ink-2); }
.tiny { font-size: 13px; color: var(--ink-3); }

/* ---------- Botones ---------- */
.btn {
  --b-bg: var(--bg-elev);
  --b-ink: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--b-bg); color: var(--b-ink);
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { --b-bg: var(--ink); --b-ink: var(--bg); border-color: transparent; }
.btn-accent { --b-bg: var(--accent); --b-ink: var(--accent-ink); border-color: transparent; }
.btn-sky { --b-bg: var(--sky); --b-ink: var(--sky-ink); border-color: transparent; }
.btn-ghost { --b-bg: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-soft); box-shadow: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg-elev);
  transition: background .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Chips / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.pill .tag { background: var(--sky); color: var(--sky-ink); font-weight: 700; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elev);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.is-active { background: var(--surface-strong); color: #fff; border-color: var(--surface-strong); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot.live { box-shadow: 0 0 0 0 rgba(23,166,115,.5); animation: ping 1.8s infinite; }

/* ---------- Logos de fuentes ---------- */
.src {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; letter-spacing: -.02em;
}
.src-li { background: #0a66c2; }
.src-ct { background: #ff6a00; }
.src-cl { background: #0f9d58; }
.src-bu { background: #1f2937; }
.src-in { background: #2557a7; }
.src-gt { background: #e11d74; }

/* ---------- Animaciones ---------- */
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(23,166,115,0); } 100% { box-shadow: 0 0 0 0 rgba(23,166,115,0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blob {
  0%,100% { transform: translate(0,0) scale(1); border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; }
  33% { transform: translate(30px,-20px) scale(1.06); border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; }
  66% { transform: translate(-25px,15px) scale(.96); border-radius: 38% 62% 55% 45% / 60% 35% 65% 40%; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wordcycle {
  0%, 20% { transform: translateY(0); }
  25%, 45% { transform: translateY(-1.15em); }
  50%, 70% { transform: translateY(-2.3em); }
  75%, 95% { transform: translateY(-3.45em); }
  100% { transform: translateY(-4.6em); }
}
@keyframes progress { from { width: 0; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes stamp {
  0% { transform: scale(2) rotate(-12deg); opacity: 0; }
  60% { transform: scale(.95) rotate(-6deg); opacity: 1; }
  100% { transform: scale(1) rotate(-6deg); opacity: 1; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   LANDING
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
/* Logo: símbolo "estela en E" + wordmark Empleo(500)·pilot(700) */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.brand-sym {
  width: 38px; height: 28px; flex: none; overflow: visible;
  --e: var(--mark-e); --p: var(--mark-p);
  transition: transform .6s var(--ease);
}
.wordmark b { font-weight: 700; color: var(--mark-p); }
/* Ícono de app: cuadrado navy con E blanca y avión cielo */
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--navy);
  display: grid; place-items: center; flex: none;
}
.brand-mark svg { width: 64%; height: auto; aspect-ratio: 82 / 60; overflow: visible; --e: #fff; --p: var(--cielo); }
/* En modo oscuro el cuadrado navy se pierde con el fondo: se le da un borde */
.brand-mark { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .2s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-bg .b {
  position: absolute; filter: blur(60px); opacity: .55;
  animation: blob 18s ease-in-out infinite;
}
.hero-bg .b1 { width: 420px; height: 420px; background: var(--accent); top: -120px; right: -60px; }
.hero-bg .b2 { width: 340px; height: 340px; background: var(--sky); top: 220px; left: -120px; animation-delay: -6s; opacity: .45; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: .6;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 84px); line-height: .98; letter-spacing: -.045em;
  margin: 22px 0 22px; font-weight: 800;
}
.hero h1 .serif { color: var(--accent); }
.cycle { display: inline-block; font-size: .78em; line-height: 1.15em; height: 1.15em; overflow: hidden; vertical-align: bottom; white-space: nowrap; }
.cycle span { display: block; animation: wordcycle 10s var(--ease) infinite; }
.hero h1 .cycle i.serif { display: block; height: 1.15em; font-size: 1em; }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 36px; font-size: 14px; color: var(--ink-2); }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg);
  margin-left: -10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.hero > .container > .hero-grid > div:first-child > * { animation: rise .9s var(--ease) both; }
.hero > .container > .hero-grid > div:first-child > *:nth-child(2) { animation-delay: .08s; }
.hero > .container > .hero-grid > div:first-child > *:nth-child(3) { animation-delay: .16s; }
.hero > .container > .hero-grid > div:first-child > *:nth-child(4) { animation-delay: .24s; }
.hero > .container > .hero-grid > div:first-child > *:nth-child(5) { animation-delay: .32s; }

/* Hero demo */
.demo { position: relative; height: 520px; animation: rise 1s .2s var(--ease) both; }
.demo-card {
  position: absolute; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.demo-main { inset: 64px 20px 60px 40px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.demo-head { display: flex; justify-content: space-between; align-items: center; }
.demo-head b { font-size: 15px; }
.autopilot-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--sky); color: var(--sky-ink); font-size: 12px; font-weight: 700;
}
.autopilot-badge svg { width: 14px; height: 14px; animation: spin 4s linear infinite; }
.job-row {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg);
  opacity: 0; animation: slideIn .6s var(--ease) forwards;
}
.job-row:nth-child(2) { animation-delay: .6s; }
.job-row:nth-child(3) { animation-delay: 1.2s; }
.job-row:nth-child(4) { animation-delay: 1.8s; }
.job-row:nth-child(5) { animation-delay: 2.4s; }
.job-row .meta { flex: 1; min-width: 0; }
.job-row .meta b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-row .meta small { color: var(--ink-3); font-size: 12px; }
.status {
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--bg-soft); color: var(--ink-2);
}
.status.sent { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.status.work { background: var(--accent-soft); color: var(--accent); }
.status.work::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }

.demo-float { padding: 14px 16px; display: flex; gap: 12px; align-items: center; animation: float 6s ease-in-out infinite; }
.demo-f1 { right: -8px; top: 0; animation-delay: -2s; }
.demo-f2 { left: -10px; bottom: 10px; }
.demo-f1 .big { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.match-ring { width: 46px; height: 46px; position: relative; }
.match-ring svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.match-ring circle { fill: none; stroke-width: 5; }
.match-ring .track { stroke: var(--bg-soft); }
.match-ring .val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 113; animation: ringfill 1.6s 1s var(--ease) forwards; }
.match-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; }
@keyframes ringfill { to { stroke-dashoffset: 9; } }

/* Marquee */
.sources { padding: 40px 0 20px; }
.sources p { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin: 0 0 20px; font-weight: 600; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .pill { padding: 8px 16px 8px 8px; font-size: 15px; font-weight: 600; color: var(--ink); }

/* Secciones */
section.block { padding: 110px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-title { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.04em; margin: 0 0 18px; font-weight: 800; max-width: 760px; }
.section-sub { font-size: 18px; color: var(--ink-2); max-width: 580px; margin: 0; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; counter-reset: step; }
.step {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font); font-weight: 700; letter-spacing: -.04em; font-size: 56px; line-height: 1; color: var(--accent);
  display: block; margin-bottom: 40px;
}
.step h3 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-2); }
.step .glow { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--sky); filter: blur(50px); opacity: 0; right: -60px; top: -60px; transition: opacity .5s; }
.step:hover .glow { opacity: .35; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 56px; }
.tile {
  grid-column: span 2; padding: 28px; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--line); position: relative; overflow: hidden;
  min-height: 260px; display: flex; flex-direction: column;
}
.tile.wide { grid-column: span 4; }
.tile.dark { background: var(--surface-strong); color: #fff; border-color: var(--surface-strong); }
.tile.dark .muted { color: rgba(255,255,255,.65); }
.tile.sky { background: var(--sky); color: var(--sky-ink); border-color: transparent; }
.tile h3 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; }
.tile p { margin: 0; }
.tile .art { margin-top: auto; padding-top: 24px; }

.filter-art { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-art .chip { animation: pop .5s var(--ease) both; }
.filter-art .chip:nth-child(2) { animation-delay: .1s; } .filter-art .chip:nth-child(3) { animation-delay: .2s; }
.filter-art .chip:nth-child(4) { animation-delay: .3s; } .filter-art .chip:nth-child(5) { animation-delay: .4s; }

.bar-art { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.bar-art span { flex: 1; border-radius: 8px 8px 4px 4px; background: rgba(255,255,255,.22); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.bar-art span:last-child { background: var(--sky); }
@keyframes grow { from { transform: scaleY(0); } }

.cv-art { display: grid; gap: 8px; }
.cv-art i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-soft) 0%, var(--line) 50%, var(--bg-soft) 100%); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.cv-art i:nth-child(1) { width: 60%; height: 14px; } .cv-art i:nth-child(3) { width: 85%; } .cv-art i:nth-child(4) { width: 70%; }
.cv-art i.hl { background: var(--accent-soft); width: 92%; position: relative; }
.cv-art i.hl::after { content: "IA"; position: absolute; right: -2px; top: -18px; font-size: 10px; font-weight: 800; font-style: normal; color: var(--accent); }

.lock-art { display: flex; align-items: center; gap: 12px; }
.lock-art .sh { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--sky-ink) 10%, transparent); }
.lock-art svg { width: 28px; height: 28px; }

/* Piloto automático */
.auto-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rules { display: grid; gap: 12px; margin-top: 32px; }
.rule { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev); transition: border-color .3s, transform .3s var(--ease); }
.rule:hover { border-color: var(--accent); transform: translateX(6px); }
.rule .ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.rule .ic svg { width: 18px; height: 18px; }
.rule b { display: block; font-size: 15px; }
.rule span { font-size: 14px; color: var(--ink-2); }

.timeline { position: relative; padding: 28px; border-radius: 24px; background: var(--surface-strong); color: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.timeline::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--accent); filter: blur(90px); opacity: .45; right: -100px; bottom: -120px; }
.tl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; position: relative; z-index: 1; }
.tl-head small { color: rgba(255,255,255,.55); }
.tl-item { display: flex; gap: 14px; padding: 12px 0; position: relative; z-index: 1; }
.tl-item::before { content: ""; position: absolute; left: 15px; top: 44px; bottom: -12px; width: 2px; background: rgba(255,255,255,.14); }
.tl-item:last-child::before { display: none; }
.tl-item .t { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.12); font-size: 12px; }
.tl-item .t.on { background: var(--sky); color: var(--sky-ink); }
.tl-item b { display: block; font-size: 14px; }
.tl-item small { color: rgba(255,255,255,.55); font-size: 13px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-elev); padding: 32px 28px; }
.stat b { display: block; font-size: clamp(36px, 4vw, 52px); letter-spacing: -.04em; line-height: 1; font-weight: 800; }
.stat span { color: var(--ink-2); font-size: 14px; }

/* Precios */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; align-items: stretch; }
.plan { padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--bg-elev); display: flex; flex-direction: column; gap: 20px; position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan.featured { background: var(--surface-strong); color: #fff; border-color: var(--surface-strong); }
.plan.featured .muted, .plan.featured li { color: rgba(255,255,255,.75); }
.plan .ribbon { position: absolute; top: -12px; right: 24px; background: var(--sky); color: var(--sky-ink); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 18px; }
.price { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ok); }
.plan.featured li svg { color: var(--sky); }
.plan .btn { margin-top: auto; width: 100%; }
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-soft); margin-top: 28px; }
.billing-toggle button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .25s var(--ease); }
.billing-toggle button.is-active { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow); }
.billing-toggle .save { color: var(--ok); font-size: 12px; margin-left: 4px; }

/* FAQ */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .35s var(--ease), background .3s; flex: none; margin-left: 16px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--sky); border-color: var(--sky); color: var(--sky-ink); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 680px; animation: rise .5s var(--ease); }

/* CTA final */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: 80px 40px; text-align: center;
  background: var(--blue); color: #fff;
}
.cta h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1; letter-spacing: -.045em; margin: 0 0 18px; font-weight: 800; position: relative; z-index: 1; }
.cta p { position: relative; z-index: 1; font-size: 18px; opacity: .85; margin: 0 auto 32px; max-width: 520px; }
.cta .btn { position: relative; z-index: 1; }
.cta .b { position: absolute; filter: blur(70px); animation: blob 16s ease-in-out infinite; }
.cta .b1 { width: 360px; height: 360px; background: var(--sky); opacity: .5; left: -100px; bottom: -160px; }
.cta .b2 { width: 300px; height: 300px; background: var(--blue-deep); opacity: .4; right: -80px; top: -120px; animation-delay: -5s; }

footer.site { padding: 64px 0 40px; color: var(--ink-2); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: var(--ink); font-size: 14px; margin: 0 0 14px; }
.foot-grid a { display: block; padding: 4px 0; transition: color .2s; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid a.brand { display: flex; color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* =========================================================
   APP
   ========================================================= */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line); background: var(--bg);
}
.side .brand { padding: 4px 10px 20px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); border: 0; background: transparent; text-align: left; width: 100%;
  transition: background .2s, color .2s;
}
.side-link svg { width: 18px; height: 18px; flex: none; }
.side-link:hover { background: var(--bg-soft); color: var(--ink); }
.side-link.is-active { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow); }
.side-link .count { margin-left: auto; font-size: 12px; background: var(--bg-soft); padding: 1px 8px; border-radius: 999px; color: var(--ink-2); }
.side-link.is-active .count { background: var(--sky); color: var(--sky-ink); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.upgrade {
  padding: 16px; border-radius: 16px; background: var(--surface-strong); color: #fff; position: relative; overflow: hidden;
}
.upgrade::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--accent); filter: blur(40px); right: -50px; top: -60px; opacity: .7; }
.upgrade b { position: relative; z-index: 1; display: block; font-size: 15px; margin-bottom: 4px; }
.upgrade p { position: relative; z-index: 1; margin: 0 0 12px; font-size: 13px; opacity: .7; }
.upgrade .btn { position: relative; z-index: 1; width: 100%; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.me .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cielo)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.me b { display: block; font-size: 14px; }
.me small { font-size: 12px; color: var(--ink-3); }

.main { min-width: 0; padding: 0 28px 48px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 72px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar h1 { font-size: 22px; letter-spacing: -.03em; margin: 0; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }

.search {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; flex: 1; max-width: 460px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev); transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; }
.kbd { font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-3); font-weight: 600; }

.view { display: none; animation: rise .5s var(--ease); }
.view.is-active { display: block; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-elev); }
.kpi small { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.kpi b { display: block; font-size: 30px; letter-spacing: -.03em; margin-top: 6px; line-height: 1.1; }
.kpi .delta { font-size: 12px; font-weight: 700; color: var(--ok); }
.kpi.accent { background: var(--blue); color: #fff; border-color: transparent; }
.kpi.accent small { color: rgba(255,255,255,.75); }
.kpi.accent .delta { color: var(--sky); }

/* Feed + detalle */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.feed-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.feed { display: grid; gap: 10px; }
.job {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-elev);
  cursor: pointer; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: rise .45s var(--ease) both;
}
.job:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.job.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.job .logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; }
.job h4 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.job .co { font-size: 14px; color: var(--ink-2); }
.job .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tagx { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-weight: 500; }
.job .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.match { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.match.hi { background: var(--sky); color: var(--sky-ink); }
.match.md { background: var(--accent-soft); color: var(--accent); }
.match.lo { background: var(--bg-soft); color: var(--ink-2); }
.via { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.via .src, .chip .src { width: 18px; height: 18px; border-radius: 5px; font-size: 9px; }
/* Logos oficiales de los portales */
img.src { object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

.detail { position: sticky; top: 88px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-elev); max-height: calc(100vh - 110px); overflow: auto; animation: slideIn .4s var(--ease); }
.detail .logo { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 14px; }
.detail h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.detail .co { color: var(--ink-2); margin: 4px 0 16px; }
.detail .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.fact { padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); }
.fact small { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.fact b { font-size: 14px; }
.why { padding: 14px; border-radius: 14px; background: var(--accent-soft); margin-bottom: 18px; }
.why b { color: var(--accent); font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.why ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }
.detail h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 18px 0 8px; }
.detail p { font-size: 14px; color: var(--ink-2); margin: 0; }
.detail .actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 22px; position: sticky; bottom: -22px; padding: 14px 0 0; background: linear-gradient(transparent, var(--bg-elev) 30%); }
.detail .applied-stamp { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 2px solid var(--ok); color: var(--ok); border-radius: 10px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; animation: stamp .6s var(--ease) both; }

.skeleton { height: 92px; border-radius: 16px; background: linear-gradient(90deg, var(--bg-soft) 0%, var(--bg-elev) 50%, var(--bg-soft) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* Piloto automático (app) */
.ap-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 28px; border-radius: 24px; background: var(--surface-strong); color: #fff; position: relative; overflow: hidden; margin-bottom: 18px;
}
.ap-hero::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--accent); filter: blur(90px); opacity: .5; right: 10%; top: -160px; transition: background .6s; }
.ap-hero.on::after { background: var(--sky); opacity: .35; }
.ap-hero > * { position: relative; z-index: 1; }
.ap-hero h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.03em; }
.ap-hero p { margin: 0; opacity: .7; max-width: 520px; }
.ap-hero .state { font-size: 13px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 10px; opacity: .9; }
.ap-hero .state .dot { background: var(--ink-3); }
.ap-hero.on .state .dot { background: var(--sky); animation: ping 1.8s infinite; }

.switch { position: relative; width: 84px; height: 46px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 2; margin: 0; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.18); transition: background .35s var(--ease); }
.switch .knob { position: absolute; top: 5px; left: 5px; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); transition: transform .45s cubic-bezier(.5,1.6,.4,1), background .35s; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.switch input:checked ~ .track { background: var(--sky); }
.switch input:checked ~ .knob { transform: translateX(38px); background: var(--sky-ink); }
.switch input:focus-visible ~ .track { outline: 3px solid var(--accent); outline-offset: 3px; }
.switch.sm { width: 46px; height: 26px; }
.switch.sm .track { background: var(--line); }
.switch.sm .knob { width: 20px; height: 20px; top: 3px; left: 3px; background: #fff; }
.switch.sm input:checked ~ .track { background: var(--accent); }
.switch.sm input:checked ~ .knob { transform: translateX(20px); background: #fff; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-elev); }
.card h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.01em; }
.card > .tiny { margin: 0 0 18px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="password"], .field input[type="date"], .field input[type="number"], .field select, .field textarea {
  width: 100%; color: var(--ink);
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.range-row output { font-weight: 800; min-width: 52px; text-align: right; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.toggle-row:first-of-type { border-top: 0; }
.toggle-row b { display: block; font-size: 14px; }
.toggle-row small { color: var(--ink-3); font-size: 13px; }
.tokens { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); min-height: 44px; align-items: center; }
.token { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; animation: pop .35s var(--ease); }
.token button { border: 0; background: transparent; padding: 0 4px; color: inherit; opacity: .7; font-size: 15px; line-height: 1; }
.tokens input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 100px; height: 28px; font-size: 14px; }

.log { display: grid; gap: 2px; }
.log-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; animation: slideIn .4s var(--ease) both; }
.log-item:last-child { border-bottom: 0; }
.log-item time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Cuentas */
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.acct { padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-elev); display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.acct:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.acct.connected { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.acct-head { display: flex; align-items: center; gap: 12px; }
.acct-head .src { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.acct-head b { display: block; font-size: 16px; }
.acct-head small { color: var(--ink-3); font-size: 13px; }
.acct .perm { font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; }
.acct .perm span::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.acct .btn { width: 100%; }
.acct .conn-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ok); }
.notice { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); font-size: 14px; margin-bottom: 18px; align-items: flex-start; }
.notice svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }

/* Kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.col { padding: 12px; border-radius: 18px; background: var(--bg-soft); min-height: 360px; }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; font-size: 14px; font-weight: 700; }
.col-head span { font-size: 12px; background: var(--bg-elev); padding: 2px 8px; border-radius: 999px; color: var(--ink-2); }
.col-head i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.kcard { padding: 14px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--line); margin-bottom: 10px; cursor: grab; transition: transform .25s var(--ease), box-shadow .25s var(--ease); animation: rise .4s var(--ease) both; }
.kcard:hover { transform: translateY(-2px) rotate(-.4deg); box-shadow: var(--shadow); }
.kcard.dragging { opacity: .4; }
.col.over { outline: 2px dashed var(--accent); outline-offset: -4px; }
.kcard b { display: block; font-size: 14px; }
.kcard small { color: var(--ink-3); font-size: 12px; }
.kcard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.auto-tag { font-size: 11px; font-weight: 700; color: var(--accent); display: inline-flex; gap: 4px; align-items: center; }

/* Toast */
.toast-wrap { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 100; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--surface-strong); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; animation: rise .4s var(--ease) both; max-width: 360px; }
.toast.out { animation: rise .3s var(--ease) reverse both; }
.toast .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--sky); color: var(--sky-ink); display: grid; place-items: center; font-size: 12px; font-weight: 900; flex: none; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 16px; background: rgba(8,9,12,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.open { display: grid; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-box { width: min(440px, 100%); padding: 28px; border-radius: 24px; background: var(--bg-elev); box-shadow: var(--shadow-lg); animation: pop .4s var(--ease); }
.modal-box h3 { margin: 14px 0 6px; font-size: 22px; letter-spacing: -.02em; }
.oauth-flow { display: flex; align-items: center; justify-content: center; gap: 14px; }
.oauth-flow .src, .oauth-flow .brand-mark { width: 52px; height: 52px; border-radius: 14px; font-size: 18px; }
.oauth-flow .dots { display: flex; gap: 5px; }
.oauth-flow .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: bounce 1.2s infinite; }
.oauth-flow .dots i:nth-child(2) { animation-delay: .15s; } .oauth-flow .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-6px); opacity: 1; } }
.modal-box ul { padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 6px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 22px; }

.backdrop { display: none; }

/* Login / registro */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art .brand { color: #fff; }
.auth-art .brand-sym { --e: #fff; --p: #fff; }
.auth-art .wordmark b { color: #fff; }
.auth-art h2 { position: relative; z-index: 1; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: -.045em; margin: 0; }
.auth-art .b { position: absolute; filter: blur(70px); animation: blob 16s ease-in-out infinite; }
.auth-art .b1 { width: 380px; height: 380px; background: var(--sky); opacity: .55; left: -80px; bottom: -120px; }
.auth-art .b2 { width: 300px; height: 300px; background: var(--blue-deep); opacity: .4; right: -60px; top: 10%; animation-delay: -5s; }
.auth-main { display: grid; place-items: center; padding: 40px 16px; }
.auth-box { width: min(400px, 100%); animation: rise .6s var(--ease) both; }
.auth-box h1 { font-size: 34px; letter-spacing: -.035em; margin: 0 0 6px; }
.auth-box > .muted { margin: 0 0 28px; }
.auth-box .field input { height: 50px; font-size: 16px; }
.auth-brand-sm { display: none; margin-bottom: 28px; }
.form-error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 0 0 12px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-brand-sm { display: flex; }
}

/* Estados extra de la app */
.btn[disabled] { opacity: .6; pointer-events: none; }
.acct.pending { opacity: .75; }
.acct .note { font-size: 13px; color: var(--ink-3); margin: 0; }
.kcard .act { display: flex; gap: 6px; margin-top: 10px; }
.kcard .act .btn { height: 30px; padding: 0 12px; font-size: 13px; flex: 1; }
.kcard .note { display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.empty { text-align: center; padding: 48px 20px; }
.empty .ico { font-size: 36px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .feed-wrap { grid-template-columns: 1fr; }
  .detail { position: fixed; inset: auto 0 0 0; top: auto; max-height: 82vh; border-radius: 24px 24px 0 0; z-index: 60; display: none; box-shadow: var(--shadow-lg); }
  .detail.open { display: block; animation: rise .35s var(--ease); }
  .detail .close-detail { display: grid !important; }
}
@media (max-width: 1080px) { .nav-links { display: none; } }
@media (max-width: 960px) {
  .hero-grid, .auto-wrap { grid-template-columns: 1fr; }
  .demo { height: 470px; max-width: 520px; width: 100%; margin-inline: auto; }
  .steps, .pricing { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 70; transform: translateX(-100%); transition: transform .35s var(--ease); background: var(--bg); }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .backdrop.show { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(8,9,12,.4); }
  .menu-btn { display: grid; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .ap-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section.block { padding: 72px 0; }
  .hero { padding-top: 40px; }
  .nav-cta .btn-ghost { display: none; }
  .demo { height: 440px; }
  .demo-main { inset: 64px 0 50px 0; }
  .demo-f1 { right: 0; }
  .demo-f2 { left: 0; bottom: 0; }
  .main { padding: 0 16px 40px; }
  .topbar .search .kbd { display: none; }
  .topbar h1 { font-size: 18px; }
  .hide-sm { display: none !important; }
  .job { grid-template-columns: auto 1fr; }
  .job .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .cta { padding: 56px 20px; border-radius: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .stat { padding: 22px 18px; }
}

/* Autocompletado del navegador: mantener colores de la marca y texto visible */
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--bg) inset;
  caret-color: var(--ink);
  transition: background-color 9999s;
}
/* Contraseña con botón mostrar / ocultar */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 48px !important; letter-spacing: .08em; }
.pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent;
  display: grid; place-items: center; color: var(--ink-3);
}
.pass-toggle:hover { background: var(--bg-soft); color: var(--ink); }
.pass-toggle svg { width: 18px; height: 18px; }
.field .hint { font-size: 12px; color: var(--ink-3); }
/* Medidor de fuerza de contraseña */
.pass-meter { height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin: -6px 0 6px; }
.pass-meter i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .35s var(--ease), background .35s; }
#view-cuenta .card .btn { width: 100%; margin-top: 4px; }

/* Directorio de empresas (Trabaja con nosotros) */
.co-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.co-search { max-width: 420px; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.co-card {
  display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--bg-elev);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  animation: rise .45s var(--ease) both;
}
.co-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.co-head { display: flex; align-items: center; gap: 12px; }
.co-head h4 { margin: 0; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-head small { color: var(--ink-3); font-size: 12px; }
.co-logo {
  width: 48px; height: 48px; border-radius: 12px; flex: none; object-fit: contain; padding: 8px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(11,31,58,.08);
}
.co-logo-fallback { display: grid; place-items: center; padding: 0; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; }
.co-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.co-foot .btn { flex: none; }

/* Cuentas conectadas */
.acct-progress { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font-size: 14px; color: var(--ink-2); }
.acct-progress .bar { flex: 1; max-width: 260px; height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.acct-progress .bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .6s var(--ease); }
.acct-head .src { width: 44px; height: 44px; border-radius: 12px; }
.caps { display: flex; flex-wrap: wrap; gap: 6px; }
.cap { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-3); }
.cap.on { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.acct-actions .btn { flex: 1; min-width: 110px; }
.acct-url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#linkModal .src, #modal .src { width: 52px; height: 52px; border-radius: 14px; font-size: 18px; }
.co-foot .tagx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* =========================================================
   MOTION · logo "estela en E" (ver animaciones-logo.html)
   ========================================================= */
:root { --ease-io: cubic-bezier(.65,0,.35,1); --ease-back: cubic-bezier(.34,1.56,.64,1); }
.mark { overflow: visible; display: block; }
.eo, .em, .ln { fill: none; stroke: var(--e, var(--navy)); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.pl { fill: var(--p, var(--blue)); }
.draw { stroke-dasharray: 1 1; }
.logo-h { display: flex; align-items: center; gap: .3em; }
.logo-v { display: flex; flex-direction: column; align-items: center; gap: .25em; }
.logo-h .mark, .logo-v .mark { height: 1.8em; width: 2.46em; }
.word { font-weight: 500; color: var(--w, var(--ink)); white-space: nowrap; letter-spacing: -.01em; line-height: 1; }
.word .b { font-weight: 700; color: var(--p, var(--accent)); }
.word i { font-style: normal; display: inline-block; }
@keyframes ep-draw { 0% { stroke-dashoffset: 1; opacity: 0 } 1% { opacity: 1 } 100% { stroke-dashoffset: 0; opacity: 1 } }
@keyframes ep-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes ep-rise2 { from { opacity: 0; transform: translateY(.5em); filter: blur(4px) } to { opacity: 1; transform: none; filter: none } }
@keyframes ep-fadeout { to { opacity: 0 } }

/* 07 · Navbar: despegue y regreso al pasar el cursor */
.brand-sym .em { stroke-dasharray: 1 1; }
.brand:hover .brand-sym .plane, .brand.tap .brand-sym .plane { animation: d7-loop 1s var(--ease-io); }
.brand:hover .brand-sym .em, .brand.tap .brand-sym .em { animation: ep-draw .45s .55s var(--ease) both; }
@keyframes d7-loop { 0% { transform: none } 40% { transform: translate(36px,-14px) rotate(-20deg) scale(.8); opacity: 0 } 41% { transform: translate(-60px,0); opacity: 0 } 55% { opacity: 1 } 100% { transform: none; opacity: 1 } }

/* 01 · Intro (splash de la landing, una vez por sesión) */
.ep-splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); transition: opacity .5s var(--ease), visibility .5s; cursor: pointer; --e: var(--mark-e); --p: var(--mark-p); }
.ep-splash.out { opacity: 0; visibility: hidden; }
.ep-splash .logo-h { font-size: clamp(34px, 6vw, 58px); }
.d1 .tr { fill: none; stroke: url(#ep-trail); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
.d1 .eo, .d1 .em, .d1 .plane, .d1 .word i { opacity: 0; }
.d1.play .eo { animation: ep-draw .9s var(--ease-io) both; }
.d1.play .em { animation: ep-draw .45s 1.2s var(--ease) both; }
.d1.play .plane { animation: d1-plane 1.3s .35s var(--ease) both; }
.d1.play .tr { animation: ep-draw 1.3s .35s var(--ease) both, ep-fadeout .5s 1.5s forwards; }
.d1.play .word i { animation: ep-rise2 .6s calc(1.1s + var(--i) * 45ms) var(--ease) both; }
@keyframes d1-plane { 0% { transform: translateX(-130px); opacity: 0 } 15% { opacity: 1 } 100% { transform: none; opacity: 1 } }

/* 02 · Revelado en vuelo (tarjeta navy de la landing) */
.tl-brand { --e: #fff; --p: var(--cielo); --w: #fff; display: flex; align-items: center; gap: .3em; font-size: 22px; margin-bottom: 18px; position: relative; z-index: 1; }
.tl-brand .mark { height: 1.8em; width: 2.46em; }
.d2 .tr2 { fill: none; stroke: url(#ep-trail2); stroke-width: 3.5; stroke-linecap: round; opacity: 0; }
.d2 .wclip { overflow: hidden; padding: .12em .05em; }
.d2.play .d2-wipe, .d2.play .plane { animation: d2-fly 1.4s .2s var(--ease) both; }
.d2.play .pl { animation: ep-in .25s .2s both; }
.d2.play .tr2 { animation: d2-trail 1.8s .2s both; }
.d2.play .word { animation: d2-slide .9s 1.15s var(--ease) both; }
@keyframes d2-fly { from { transform: translateX(-120px) } to { transform: none } }
@keyframes d2-trail { 0%, 55% { opacity: 1 } 100% { opacity: 0 } }
@keyframes d2-slide { from { transform: translateX(-102%) } to { transform: none } }

/* 03 · Loader orbital */
.ep-loader { display: grid; justify-items: center; gap: 10px; padding: 40px 16px; color: var(--ink-2); font-size: 14px; }
.ep-loader .orbit { width: 110px; height: 110px; overflow: visible; --e: var(--mark-e); --p: var(--mark-p); }
.orbit-ring { fill: none; stroke: currentColor; stroke-opacity: .1; stroke-width: 2; }
.orbit .spin { animation: d3-spin 1.5s linear infinite; }
.orbit .em { animation: d3-pulse 1.5s var(--ease-io) infinite; }
@keyframes d3-spin { to { transform: rotate(360deg) } }
@keyframes d3-pulse { 50% { stroke: var(--blue) } }

/* 04 · Ícono vivo (cuadrado navy) */
.app-live { transition: transform .35s var(--ease-back), box-shadow .35s; box-shadow: 0 8px 24px rgba(11,31,58,.18); }
.app-live:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 16px 34px rgba(11,31,58,.28); }
.app-live .mark { --e: #fff; --p: var(--cielo); width: 68%; height: auto; aspect-ratio: 82 / 60; }
.d4 .plane { animation: d4-bob 2.6s ease-in-out infinite; }
.d4 .speed line { stroke: var(--p); stroke-width: 2.2; stroke-linecap: round; animation: d4-speed 1s linear infinite; opacity: 0; }
.d4 .speed line:nth-child(2) { animation-delay: .33s }
.d4 .speed line:nth-child(3) { animation-delay: .66s }
.app-live:hover .plane { animation-duration: 1.1s; }
@keyframes d4-bob { 0%, 100% { transform: none } 50% { transform: translate(2px,-2.5px) rotate(-4deg) } }
@keyframes d4-speed { 0% { transform: translateX(0); opacity: 0 } 30% { opacity: .9 } 100% { transform: translateX(-16px); opacity: 0 } }

/* 05 · Ensamblado (panel azul del login) */
.auth-logo { --e: #fff; --p: #fff; --w: #fff; font-size: clamp(30px, 3.4vw, 42px); position: relative; z-index: 1; align-self: center; }
.d5 .lv, .d5 .lt, .d5 .lm, .d5 .lb, .d5 .plane, .d5 .word { opacity: 0; }
.d5 .lt, .d5 .lm, .d5 .lb { transform-origin: 0 0; }
.d5.play .lv { animation: ep-draw .45s var(--ease-io) both; }
.d5.play .lt { animation: d5-bar .6s .35s var(--ease-back) both; }
.d5.play .lm { animation: d5-bar .6s .47s var(--ease-back) both; }
.d5.play .lb { animation: d5-bar .6s .59s var(--ease-back) both; }
.d5.play .plane { animation: d5-zoom .8s .75s cubic-bezier(.16,1,.3,1) both; }
.d5.play .word { animation: d5-track 1s 1.1s var(--ease) both; }
@keyframes d5-bar { from { transform: scaleX(0); opacity: 1 } to { transform: none; opacity: 1 } }
@keyframes d5-zoom { 0% { transform: translate(-14px,0) scale(3.2) rotate(-12deg); opacity: 0 } 50% { opacity: 1 } 100% { transform: none; opacity: 1 } }
@keyframes d5-track { from { letter-spacing: .55em; opacity: 0; filter: blur(6px) } to { letter-spacing: -.01em; opacity: 1; filter: none } }

/* 06 · Barra de progreso con avión */
@property --pct { syntax: "<integer>"; inherits: true; initial-value: 0; }
.ep-prog { width: 100%; transition: --pct .6s var(--ease); }
.ep-prog-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.ep-prog-head b { color: var(--ink); font-variant-numeric: tabular-nums; counter-reset: pct var(--pct); }
.ep-prog-head b::after { content: counter(pct) "%"; }
.ep-track { position: relative; height: 6px; border-radius: 99px; background: var(--bg-soft); }
.ep-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cielo), var(--blue)); width: calc(var(--pct) * 1%); }
.ep-rider { position: absolute; top: 50%; left: calc(var(--pct) * 1%); width: 30px; height: 30px; transform: translate(-62%, -50%); --p: var(--blue); }
.ep-rider svg { width: 100%; height: 100%; overflow: visible; }

/* Sin movimiento: logo final estático */
@media (prefers-reduced-motion: reduce) {
  .d1 .eo, .d1 .em, .d1 .plane, .d1 .word i, .d5 .lv, .d5 .lt, .d5 .lm, .d5 .lb, .d5 .plane, .d5 .word { opacity: 1; }
  .draw { stroke-dasharray: none; }
  .ep-splash { display: none; }
}
/* La palabra "pilot" usa la clase .b, igual que los blobs de fondo: se aísla */
.auth-art .word .b, .cta .word .b, .hero-bg .word .b { position: static; filter: none; animation: none; width: auto; height: auto; opacity: 1; background: none; }

/* Bloques editables (publicidad, avisos, secciones) */
.ep-blocks { display: grid; gap: 12px; margin-bottom: 18px; }
.ep-block { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-elev); animation: rise .45s var(--ease) both; }
.ep-block-img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; background: var(--bg-soft); }
.ep-block-body { flex: 1; min-width: 0; }
.ep-block h3 { margin: 2px 0 4px; font-size: 17px; letter-spacing: -.01em; }
.ep-block p { margin: 0; font-size: 14px; color: var(--ink-2); }
.ep-block-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ep-block-cta { flex: none; }
.ep-block.theme-navy { background: var(--surface-strong); color: #fff; border-color: transparent; }
.ep-block.theme-blue { background: var(--blue); color: #fff; border-color: transparent; }
.ep-block.theme-navy p, .ep-block.theme-blue p, .ep-block.theme-navy .ep-block-tag, .ep-block.theme-blue .ep-block-tag { color: rgba(255,255,255,.75); }
.ep-block.theme-navy .ep-block-cta, .ep-block.theme-blue .ep-block-cta { --b-bg: #fff; --b-ink: var(--navy); border-color: transparent; }
.ep-block-section { padding: 28px; }
.ep-block-section h3 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -.03em; }
.side .ep-block { flex-direction: column; align-items: flex-start; padding: 14px; gap: 8px; }
.side .ep-block h3 { font-size: 14px; }
.side .ep-block p { font-size: 12px; }
.side .ep-block-img { width: 100%; height: 90px; }
@media (max-width: 640px) { .ep-block { flex-wrap: wrap; } .ep-block-cta { width: 100%; } }

/* =========================================================
   Piloto automático (rediseño) + CV + directorio de empresas
   ========================================================= */
.ap-hero { grid-template-columns: 1fr auto; padding: 32px; border-radius: 28px; min-height: 220px; isolation: isolate; }
.ap-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 220px at 85% 0%, rgba(110,155,255,.28), transparent 70%); z-index: -1; }
.ap-orbit { position: absolute; right: 150px; top: 50%; width: 220px; height: 220px; transform: translateY(-50%); opacity: .18; color: #fff; --p: #fff; pointer-events: none; z-index: 0; }
.ap-hero.on .ap-orbit { opacity: .5; --p: var(--cielo); }
.ap-hero.on .ap-orbit .spin { animation: d3-spin 4s linear infinite; }
.ap-orbit .spin { transform-origin: 0 0; }
.ap-hero-main { position: relative; z-index: 1; }
.ap-hero h2 { font-size: clamp(26px, 3vw, 34px); }
.ap-stats { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.ap-stats div { padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); min-width: 120px; }
.ap-stats b { display: block; font-size: 22px; letter-spacing: -.02em; }
.ap-stats small { font-size: 12px; opacity: .7; }
.ap-hero-side { position: relative; z-index: 1; display: grid; justify-items: end; gap: 12px; align-self: center; }
.ap-run { --b-bg: rgba(255,255,255,.1); --b-ink: #fff; border-color: rgba(255,255,255,.2); }
.ap-run svg { width: 16px; height: 16px; }
.ap-run[disabled] { opacity: .45; }
.ap-last { font-size: 12px; opacity: .65; text-align: right; }

.ap-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: s; }
.ap-steps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev); font-size: 14px; font-weight: 600; color: var(--ink-3); transition: all .3s var(--ease); }
.ap-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--bg-soft); flex: none; }
.ap-steps li.current { color: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ap-steps li.current span { background: var(--accent); color: var(--accent-ink); }
.ap-steps li.done { color: var(--ink-2); }
.ap-steps li.done span { background: var(--ok); color: #fff; font-size: 0; }
.ap-steps li.done span::after { content: "✓"; font-size: 13px; }

.ap-card { position: relative; transition: border-color .3s, box-shadow .3s; }
.ap-card:hover { border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.ap-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.ap-card-head > div { flex: 1; }
.ap-card-head h3 { margin: 0 0 2px; }
.ap-card-head .tiny { margin: 0; }
.ap-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.ap-ic svg { width: 19px; height: 19px; }
.ap-mini { gap: 0 12px; }
.ap-cv { margin-bottom: 18px; }

.cv-drop { display: grid; justify-items: center; gap: 6px; padding: 30px 16px; border: 2px dashed var(--line); border-radius: 18px; text-align: center; cursor: pointer; transition: all .25s var(--ease); background: var(--bg); }
.cv-drop:hover, .cv-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.cv-drop.over { transform: scale(1.01); }
.cv-drop-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-elev); color: var(--accent); box-shadow: var(--shadow); }
.cv-drop-ic svg { width: 22px; height: 22px; }
.cv-drop small { color: var(--ink-3); }
.cv-file { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); flex-wrap: wrap; animation: rise .4s var(--ease); }
.cv-pdf { width: 46px; height: 56px; border-radius: 8px; display: grid; place-items: center; background: #E5484D; color: #fff; font-size: 12px; font-weight: 800; flex: none; position: relative; }
.cv-pdf::after { content: ""; position: absolute; top: 0; right: 0; border-width: 0 12px 12px 0; border-style: solid; border-color: var(--bg) rgba(0,0,0,.2); }
.cv-file-info { flex: 1; min-width: 160px; }
.cv-file-info b { display: block; word-break: break-all; }
.cv-file-info small { color: var(--ink-3); }
.cv-file-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cv-progress { margin-top: 18px; }
.cv-result { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--accent-soft); animation: rise .4s var(--ease); }
.cv-result-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--accent); }
.cv-result .tiny { margin: 10px 0 6px; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 14px 0 8px; }
.cv-h:first-child { margin-top: 0; }
.cv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cv-list li { padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); }
.cv-list b { display: block; font-size: 14px; }
.cv-list span { font-size: 13px; color: var(--ink-2); }

.co-select { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); font-size: 14px; max-width: 220px; }
.co-select:disabled { opacity: .5; }
.co-industries .chip-n { font-size: 11px; opacity: .6; margin-left: 2px; }
.co-summary { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; }
.co-card { position: relative; }
.co-card.is-featured { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.co-star { position: absolute; top: 12px; right: 14px; color: var(--warn); font-size: 14px; }
.co-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.co-tags .tagx { font-size: 11px; }

@media (max-width: 960px) {
  .ap-steps { grid-template-columns: 1fr 1fr; }
  .ap-orbit { right: -40px; }
  .ap-hero-side { justify-items: start; }
  .ap-last { text-align: left; }
}
@media (max-width: 640px) {
  .ap-hero { padding: 22px; }
  .ap-stats div { min-width: 0; flex: 1; }
  .co-select { max-width: none; flex: 1; min-width: 140px; }
}

/* Buscar directo en cada portal */
.portal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; padding: 12px 14px; border-radius: 16px; background: var(--bg-elev); border: 1px dashed var(--line); animation: rise .4s var(--ease); }
.portal-links .tiny { margin-right: 4px; }
.portal-link .src { width: 18px; height: 18px; border-radius: 5px; font-size: 9px; }
.portal-link:hover { border-color: var(--accent); color: var(--accent); }

/* Postulación por correo */
.kcard .act { flex-wrap: wrap; }
.kcard .act .btn-accent { flex-basis: 100%; }
.kcard .mail-tag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin-top: 8px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-row { align-items: flex-start; }
.email-row small { line-height: 1.45; }
.email-state { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--ink-2) !important; animation: rise .35s var(--ease) both; }
.email-state[hidden] { display: none; }
.letter-box { width: min(600px, 100%); }
.letter-box textarea { font: 14px/1.6 inherit; min-height: 260px; }
