/* Hoja compartida de las páginas SEO públicas (rol, FAQ, cómo funciona).
   Extraída del <style> inline de que-es-ats.html para no duplicarla en
   cada página nueva. que-es-ats.html conserva su copia inline a
   propósito: ya está indexada y no se toca. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:     #050d1c;
  --ink2:    #081120;
  --ink3:    #0c1829;
  --surface: #0f1e32;
  --surf2:   #132337;
  --indigo:  #6366f1;
  --indigo2: #818cf8;
  --violet:  #8b5cf6;
  --gold:    #c9a55a;
  --gold2:   #e8c97a;
  --text:    #eef2f8;
  --text2:   #8a9ab8;
  --text3:   #3d4f6a;
  --rule:    rgba(255,255,255,.07);
  --rule2:   rgba(255,255,255,.12);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.wrap    { max-width: 1120px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.wrap-sm { max-width: 760px;  margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.wrap-art{ max-width: 680px;  margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .05s; } .d2 { transition-delay: .12s; } .d3 { transition-delay: .2s; }
.d4 { transition-delay: .28s; } .d5 { transition-delay: .36s; }

.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ─── NAV ───────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  padding: 0;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(5,13,28,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--rule);
}
.nav-inner { display: flex; align-items: center; height: 66px; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-brand img { border-radius: 9px; filter: drop-shadow(0 2px 12px rgba(99,102,241,.45)); }
.nav-brand-text { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; letter-spacing: .01em; color: var(--text); }
.nav-brand-text em { font-style: normal; color: var(--indigo2); }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 13.5px; color: var(--text2); font-weight: 500; letter-spacing: .01em; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-lang { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); border: 1px solid var(--rule2); padding: 5px 10px; border-radius: 5px; transition: all .15s; }
.nav-lang:hover { color: var(--gold); border-color: var(--gold); }
.nav-login { font-size: 13px; font-weight: 600; color: var(--text2); background: rgba(255,255,255,.05); border: 1px solid var(--rule2); padding: 8px 16px; border-radius: 8px; transition: all .15s; }
.nav-login:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.nav-cta { font-size: 13.5px; font-weight: 700; background: var(--indigo); color: #fff !important; padding: 9px 20px; border-radius: 8px; transition: all .2s; }
.nav-cta:hover { background: #5254d8; box-shadow: 0 4px 16px rgba(99,102,241,.4); }
/* Selector de idioma: fuera de .nav-links a propósito. Ese bloque se oculta
   por completo en móvil y se llevaba el cambio de idioma con él, obligando a
   bajar al pie de página para cambiarlo. */
.nav-lang-top {
  display: none;
  align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em;
  color: var(--text2, #cbd5e1);
  border: 1px solid var(--rule2, rgba(255,255,255,.18));
  padding: 6px 11px; border-radius: 6px;
  text-decoration: none; white-space: nowrap;
  transition: all .15s;
}
.nav-lang-top:hover { color: var(--gold, #e2b857); border-color: var(--gold, #e2b857); }
@media(max-width:720px) { .nav-lang-top { display: inline-flex; } }
@media(max-width:720px) { .nav-links { display: none; } }

/* ─── HERO ──────────────────────────────────────── */
.page-hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.08) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.page-hero-inner { position: relative; z-index: 1; }

.eyebrow {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); flex-shrink: 0; }

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 22px;
}
.page-hero h1 em { font-style: italic; color: transparent; background: linear-gradient(135deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text; }

.page-hero-lead {
  font-size: 17px; font-weight: 300;
  color: var(--text2);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 28px;
}
.page-hero-lead strong { color: var(--text); font-weight: 500; }

.stat-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(201,165,90,.08);
  border: 1px solid rgba(201,165,90,.2);
  padding: 10px 18px; border-radius: 8px;
  font-size: 13px; color: var(--gold2);
}
.stat-pill strong { font-size: 22px; font-family: 'Cormorant Garamond', serif; font-weight: 700; }

/* ─── HR ────────────────────────────────────────── */
.hr { height: 1px; background: var(--rule); position: relative; z-index: 1; }
.hr-gold { background: linear-gradient(90deg, transparent, var(--gold) 35%, var(--gold) 65%, transparent); opacity: .3; }

/* ─── SECTIONS ──────────────────────────────────── */
.section { padding: 60px 0; position: relative; z-index: 1; }
.section-alt { background: var(--ink2); }
.section-dark { background: var(--ink3); }

.headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--text);
  margin-bottom: 16px;
}
.headline em { font-style: italic; color: var(--gold2); }

.lead {
  font-size: 16px; font-weight: 300;
  color: var(--text2);
  line-height: 1.78;
  max-width: 560px;
}

/* ─── ATS PROCESS ───────────────────────────────── */
.ats-process {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px; overflow: hidden;
  margin-top: 36px;
}
@media(max-width:700px) { .ats-process { grid-template-columns: 1fr; } }

.ats-proc-step {
  background: var(--surface);
  padding: 28px 24px;
  transition: background .2s;
}
.ats-proc-step:hover { background: var(--surf2); }
.ats-proc-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px; font-weight: 700;
  color: rgba(201,165,90,.08);
  line-height: .9;
  margin-bottom: 16px;
  letter-spacing: -.03em;
}
.ats-proc-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.ats-proc-icon svg { width: 18px; height: 18px; stroke: var(--indigo2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ats-proc-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.ats-proc-desc { font-size: 13.5px; font-weight: 300; color: var(--text2); line-height: 1.65; }
.ats-proc-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
  padding: 3px 9px;
  border: 1px solid rgba(201,165,90,.2);
  border-radius: 3px;
}

/* ─── FAILURE REASONS ───────────────────────────── */
.reasons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px; overflow: hidden;
  margin-top: 36px;
}
@media(max-width:640px) { .reasons-grid { grid-template-columns: 1fr; } }

.reason {
  background: var(--surface);
  padding: 20px 22px;
  display: flex; gap: 14px;
  align-items: flex-start;
  transition: background .2s;
}
.reason:hover { background: var(--surf2); }
.reason-x {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 13px;
}
.reason-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.reason-desc { font-size: 12.5px; font-weight: 300; color: var(--text2); line-height: 1.6; }

/* ─── DIRECTOR PARADOX ──────────────────────────── */
.paradox-box {
  background: rgba(201,165,90,.05);
  border: 1px solid rgba(201,165,90,.18);
  border-radius: 12px;
  padding: 36px 40px;
  margin-top: 36px;
  position: relative;
  overflow: hidden;
}
.paradox-box::before {
  content: '"';
  position: absolute;
  top: -10px; left: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  color: rgba(201,165,90,.08);
  line-height: 1;
  pointer-events: none;
}
.paradox-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--gold2);
  line-height: 1.35;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.paradox-sub {
  font-size: 14.5px; font-weight: 300;
  color: var(--text2); line-height: 1.7;
  max-width: 580px;
  position: relative; z-index: 1;
}

/* ─── DIRECTOR RISKS ────────────────────────────── */
.dir-risks {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px; overflow: hidden;
  margin-top: 28px;
}
.dir-risk {
  background: var(--surface);
  padding: 16px 22px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: background .15s;
}
.dir-risk:hover { background: var(--surf2); }
.dir-risk-icon {
  font-size: 16px; flex-shrink: 0; margin-top: 1px;
}
.dir-risk-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.dir-risk-desc { font-size: 13px; font-weight: 300; color: var(--text2); line-height: 1.55; }

/* ─── SOLUTION FLOW ─────────────────────────────── */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px; overflow: hidden;
  margin-top: 36px;
}
@media(max-width:820px) { .solution-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px) { .solution-grid { grid-template-columns: 1fr; } }

.sol-step {
  background: var(--surface);
  padding: 24px 20px;
  transition: background .2s;
}
.sol-step:hover { background: var(--surf2); }
.sol-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px; font-weight: 700;
  color: rgba(99,102,241,.12);
  line-height: .9;
  margin-bottom: 12px;
}
.sol-tag { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo2); margin-bottom: 8px; }
.sol-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.sol-desc { font-size: 12.5px; font-weight: 300; color: var(--text2); line-height: 1.6; }

/* ─── COMPARISON TABLE ──────────────────────────── */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 36px;
}
@media(max-width:600px) { .comparison { grid-template-columns: 1fr; } }

.comp-col {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--rule);
}
.comp-head {
  padding: 16px 20px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.comp-head-bad  { background: rgba(239,68,68,.08); border-bottom: 1px solid rgba(239,68,68,.15); color: #ef4444; }
.comp-head-good { background: rgba(99,102,241,.08); border-bottom: 1px solid rgba(99,102,241,.15); color: var(--indigo2); }
.comp-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  font-size: 13px; color: var(--text2); line-height: 1.5;
}
.comp-row:last-child { border-bottom: none; }
.comp-row svg { flex-shrink: 0; margin-top: 2px; }

/* ─── CTA FINAL ─────────────────────────────────── */
.cta-final {
  padding: 72px 0;
  text-align: center;
  position: relative; z-index: 1;
}
.cta-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700; line-height: 1.1;
  color: var(--text); margin-bottom: 18px;
}
.cta-headline em { font-style: italic; color: var(--gold2); }
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--indigo);
  color: #fff; font-size: 15px; font-weight: 600;
  padding: 15px 32px; border-radius: 9px;
  transition: all .25s; letter-spacing: .01em;
}
.btn-cta:hover { background: #5254d8; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(99,102,241,.35); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text2); font-size: 14px; font-weight: 500;
  padding: 12px 24px;
  border: 1px solid var(--rule2);
  border-radius: 9px;
  transition: all .2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ─── BREADCRUMB ────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text3);
  padding: 16px 0; position: relative; z-index: 1;
}
.breadcrumb a { color: var(--text3); transition: color .15s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text3); }

/* ─── FOOTER ────────────────────────────────────── */
footer {
  background: var(--ink2);
  border-top: 1px solid var(--rule);
  padding: 48px 0 24px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
@media(max-width:700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-brand-text { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; color: var(--text); }
.footer-brand-text em { font-style: normal; color: var(--indigo2); }
.footer-desc { font-size: 13px; color: var(--text3); line-height: 1.65; max-width: 280px; }
.footer-col-head { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13.5px; color: var(--text3); transition: color .15s; }
.footer-links a:hover { color: var(--text2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.footer-legal { font-size: 11.5px; color: var(--text3); line-height: 1.6; }
.footer-legal a { color: var(--text3); transition: color .15s; }
.footer-legal a:hover { color: var(--text2); }
.lang-sw { display: flex; gap: 8px; }
.lang-sw a { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); border: 1px solid var(--rule); padding: 4px 9px; border-radius: 4px; transition: all .15s; }
.lang-sw a.active, .lang-sw a:hover { color: var(--gold); border-color: rgba(201,165,90,.3); }

/* ─── FAQ (acordeón) ─────────────────────────────
   summary lleva list-style:none para quitar el triángulo nativo, así que
   sin este signo "+" no habría ninguna pista de que la pregunta se abre. */
.faq-q { position: relative; padding-right: 34px; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 22px; font-weight: 300; line-height: 1;
  color: var(--gold); transition: transform .2s ease;
}
details[open] > .faq-q::after { content: '−'; }
.faq-q:hover { color: var(--gold2); }
