/* Sitio de guías IA. Tokens copiados de iacedemy-web/site/assets/css/style.css (14-oct-2026)
   vía kit/brand/tokens.json. Si la web cambia de marca, sincronizar a mano (ver docs/RUNBOOK). */

@font-face { font-family: 'DM Serif Display'; font-weight: 400; font-display: swap; src: url(../fonts/dm-serif-display-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-variable.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-tight-variable.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-400.woff2) format('woff2'); }

:root {
  --bg: #0f0f18;
  --surface: #1a1a2e;
  --surface-alt: #2a2a3d;
  --border: #3a3a50;
  --accent: #EF4444;
  --accent-dark: #DC2626;
  --accent-deep: #B91C1C;
  --accent-soft: rgba(239, 68, 68, 0.12);
  --text: #F1F1F1;
  --text-secondary: #A0A0B0;
  --text-faded: #8A8AA0;
  --success: #22C55E;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow-card: rgba(0,0,0,0.2) 0px 2px 4px 0px, rgba(0,0,0,0.1) 0px 0px 1px 0px;
  --shadow-elevated: rgba(0,0,0,0.3) 0px 8px 24px 0px, rgba(0,0,0,0.15) 0px 2px 8px 0px;
  --shadow-glow: 0 4px 20px rgba(239, 68, 68, 0.12);
  --focus-ring: 0 0 0 3px rgba(239, 68, 68, 0.55);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, h2:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: var(--focus-ring); border-radius: 4px;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-secondary); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent-dark); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { left: 16px; }

/* Franja del evento */
.evento { background: var(--accent-dark); color: #fff; }
.evento__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.evento__txt { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; line-height: 1.4; }
.evento__txt strong { font-size: 17px; font-weight: 800; }
.evento__det { opacity: .95; }
.evento__live { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulso 1.6s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.evento__btn { flex: none; background: #fff; color: var(--accent-deep); font-weight: 800; border-radius: var(--radius-pill); padding: 10px 20px; white-space: nowrap; transition: transform .2s; }
.evento__btn:hover { text-decoration: none; transform: translateY(-1px); color: var(--accent-deep); }
.evento__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: none; }
.evento-card { display: grid; gap: 4px; margin-top: 20px; padding: 18px 20px; border-radius: var(--radius); background: var(--accent-dark); color: #fff; }
.evento-card:hover { background: var(--accent-deep); text-decoration: none; color: #fff; }
.evento-card strong { font-size: 18px; }
.evento-card__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
[data-evento-hasta][hidden] { display: none; }

/* Cabecera */
.top { border-bottom: 1px solid var(--surface-alt); }
.top__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.logo:hover { text-decoration: none; }

/* Hero */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% 30% auto -10%; height: 520px; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; grid-template-areas: "copy form" "ben form"; column-gap: 48px; align-items: start; }
.hero__copy { grid-area: copy; }
.form-card { grid-area: form; }
.beneficios { grid-area: ben; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; }
h1 span { color: var(--accent); }
.lead { font-size: 18px; color: var(--text-secondary); margin-bottom: 28px; max-width: 58ch; }
.beneficios { list-style: none; display: grid; gap: 14px; align-self: start; }
.beneficios li { position: relative; padding-left: 30px; color: var(--text-secondary); }
.beneficios li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.beneficios strong { color: var(--text); }

/* Tarjetas */
.card { background: var(--surface); border: 1px solid var(--surface-alt); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 28px; }
.form-card { box-shadow: var(--shadow-elevated), var(--shadow-glow); }
.form-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.2; margin-bottom: 6px; }
.form-card .muted { margin-bottom: 20px; font-size: 15px; }
.campo { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input[type="email"] { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 14px; margin-bottom: 16px; }
select { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: var(--focus-ring); }
.opcional { font-weight: 400; color: var(--text-secondary); }
input[type="email"]::placeholder { color: var(--text-faded); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text-secondary); margin-bottom: 20px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: #FCA5A5; font-size: 14px; margin-top: 12px; }

/* Botones */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; font: inherit; font-weight: 700; border-radius: var(--radius-pill); padding: 14px 26px; cursor: pointer; border: 1px solid transparent; transition: background .2s, transform .2s; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent-dark); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn--primary[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-card .btn--primary { width: 100%; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); margin-top: 20px; width: 100%; }
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }

/* Descargas */
.descargas h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 16px 0 8px; }
.descargas ul { list-style: none; display: grid; gap: 6px; }
.descargas a { display: flex; justify-content: space-between; gap: 12px; color: var(--text); background: var(--bg); border: 1px solid var(--surface-alt); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 15px; }
.descargas a::after { content: "PDF ↓"; color: var(--text-faded); font-size: 13px; flex: none; }
.descargas a:hover { border-color: var(--accent); text-decoration: none; }

/* Secciones */
.preview, .incluye { padding: 72px 24px; border-top: 1px solid var(--surface-alt); }
.h-section { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 36px); line-height: 1.15; text-align: center; margin-bottom: 10px; }
.preview__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 36px 0; }
.thumb { padding: 14px; transition: transform .2s, box-shadow .2s; }
.thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated), var(--shadow-glow); }
.thumb img { border-radius: var(--radius-sm); }
.thumb figcaption { text-align: center; font-weight: 600; margin-top: 10px; }
.incluye__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.incluye h3 { font-size: 20px; margin-bottom: 8px; }
.incluye p { color: var(--text-secondary); }

/* Pie */
.pie { border-top: 1px solid var(--surface-alt); padding: 32px 0 40px; font-size: 14px; }
.aviso { color: var(--text-secondary); margin-bottom: 10px; max-width: 80ch; }
.aviso strong { color: var(--text); }

@media (max-width: 900px) {
  .hero { padding: 36px 0 48px; }
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "copy" "form" "ben"; row-gap: 28px; }
  .lead { margin-bottom: 0; }
  .preview__grid { grid-template-columns: 1fr 1fr; }
  .preview__grid .thumb:last-child { display: none; }
  .incluye__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .preview, .incluye { padding: 48px 16px; }
  .card { padding: 22px; }
  .lead { font-size: 17px; }
  .evento__in { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; padding-top: 12px; padding-bottom: 16px; }
  .evento__txt { justify-content: center; }
  .evento__det { font-size: 14px; }
  .evento__btn { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .thumb, .evento__btn { transition: none; }
  .evento__live { animation: none; }
}

/* Fichas (fase 2) */
.btn--sm { padding: 9px 18px; font-size: 14px; }
.top .btn--sm { width: auto; }
.ficha-hero { position: relative; padding: 40px 0 36px; overflow: hidden; border-bottom: 1px solid var(--surface-alt); }
.ficha-hero::before { content: ""; position: absolute; inset: -30% 40% auto -10%; height: 420px; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.ficha-hero .wrap { position: relative; }
.ficha-hero h1 { max-width: 22ch; }
.migas { font-size: 14px; color: var(--text-secondary); margin-bottom: 18px; }
.migas a { color: var(--text-secondary); }
.migas a:hover { color: var(--accent); }
.asof { font-size: 14px; color: var(--text-faded); margin-top: 14px; }
.cta-inline { display: none; margin-top: 20px; box-shadow: var(--shadow-elevated), var(--shadow-glow); }
.cta-inline h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin-bottom: 6px; }
.cta-inline .btn { width: 100%; text-decoration: none; }
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
.ficha__main section { margin-bottom: 56px; }
.ficha__main p { color: var(--text-secondary); margin-bottom: 14px; }
.ficha__main a { text-decoration: underline; text-underline-offset: 3px; }
.h-ficha { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; margin-bottom: 18px; }
.destacado { font-size: 20px; color: var(--text) !important; line-height: 1.45; }
.pros-contras { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.pros-contras h3 { font-size: 16px; margin-bottom: 10px; }
.lista { list-style: none; display: grid; gap: 8px; color: var(--text-secondary); }
.lista li { position: relative; padding-left: 22px; }
.lista--mas li::before { content: "+"; position: absolute; left: 2px; color: var(--success); font-weight: 800; }
.lista--menos li::before { content: "–"; position: absolute; left: 2px; color: #F59E0B; font-weight: 800; }
.tabla-wrap { overflow-x: auto; border: 1px solid var(--surface-alt); border-radius: var(--radius); }
.tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabla th, .tabla td { text-align: left; vertical-align: top; padding: 13px 16px; border-top: 1px solid var(--surface-alt); }
.tabla tr:first-child th, .tabla tr:first-child td { border-top: 0; }
.tabla th { width: 34%; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--surface); }
.tabla td { color: var(--text); }
.nota { font-size: 14px; margin-top: 12px; color: var(--text-faded) !important; }
.trucos { list-style: none; counter-reset: t; display: grid; gap: 12px; margin-bottom: 16px; }
.trucos li { counter-increment: t; position: relative; padding: 16px 18px 16px 58px; background: var(--surface); border: 1px solid var(--surface-alt); border-radius: var(--radius-sm); color: var(--text-secondary); }
.trucos li::before { content: counter(t); position: absolute; left: 18px; top: 14px; font-family: 'Inter Tight', var(--font-body); font-weight: 700; font-size: 22px; color: var(--accent); }
.trucos b { color: var(--text); }
.hechos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 24px; }
.hechos li { background: var(--surface); border: 1px solid var(--surface-alt); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 2px; font-size: 13px; color: var(--text-secondary); }
.hecho__n { font-family: 'Inter Tight', var(--font-body); font-weight: 700; font-size: 26px; color: var(--text); font-variant-numeric: tabular-nums; }
.indice { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bloque { background: var(--surface); border: 1px solid var(--surface-alt); border-top: 4px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.bloque--1 { border-top-color: #3B82F6; } .bloque--2 { border-top-color: #22C55E; } .bloque--3 { border-top-color: #F59E0B; } .bloque--4 { border-top-color: #EF4444; }
.bloque__t { font-weight: 700; color: var(--text) !important; margin-bottom: 8px !important; font-size: 15px; }
.bloque ol { padding-left: 20px; color: var(--text-secondary); font-size: 14px; display: grid; gap: 3px; }
.fuentes ul { padding-left: 20px; color: var(--text-secondary); font-size: 14px; display: grid; gap: 4px; }
.ficha__aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.cta-card { box-shadow: var(--shadow-elevated), var(--shadow-glow); }
.cta-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.cta-card .muted { font-size: 15px; margin-bottom: 18px; }
.cta-card .btn { width: 100%; }
.cta-card--sec { box-shadow: var(--shadow-card); }
.cta-card--sec .btn--ghost { margin-top: 0; }
.h-aside { font-size: 16px; margin-bottom: 10px; }
.lista-blog { list-style: none; display: grid; gap: 10px; font-size: 15px; }
@media (max-width: 900px) {
  .ficha { grid-template-columns: 1fr; gap: 8px; padding-top: 32px; }
  .ficha__aside { position: static; }
  .cta-inline { display: block; }
  .hechos { grid-template-columns: 1fr 1fr; }
  .indice, .pros-contras { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tabla th { width: 40%; padding: 12px; } .tabla td { padding: 12px; font-size: 14px; }
  .top .btn--sm { padding: 8px 14px; font-size: 13px; }
}

/* Navegación, categorías y comparativas (fase 2) */
.top__nav { display: flex; align-items: center; gap: 18px; }
.top__nav > a:not(.btn) { color: var(--text); font-weight: 600; font-size: 15px; }
.btn--auto { width: auto !important; }
.picks { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.picks li { display: grid; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.picks strong { font-size: 16px; color: var(--text); }
.herramientas { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.herramienta { padding: 20px; display: grid; gap: 8px; align-content: start; }
.herramienta__cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.herramienta__cab h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.herramienta__cab .muted { font-size: 13px; }
.herramienta__precio { margin: 0 !important; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.herramienta__precio .muted { font-size: 13px; }
.herramienta__destaca { margin: 0 !important; font-size: 15px; }
.herramienta__destaca strong { color: var(--text); }
.herramienta__datos { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; margin-top: 4px; }
.herramienta__datos dt { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.herramienta__datos dd { color: var(--text-secondary); }
.cmp__nav { margin-top: 14px; font-weight: 600; }
.cmp-sec { padding: 64px 24px 24px; }
.cmp-sec .h-section span, .h-section span { color: var(--accent); }
.cmp__aviso { display: none; font-size: 13px; text-align: center; margin-top: 8px; }
.cmp-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--surface-alt); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.cmp-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cmp { border-collapse: separate; border-spacing: 0; min-width: 980px; width: 100%; font-size: 14px; }
.cmp thead th { vertical-align: top; text-align: left; padding: 14px; background: var(--surface); border-top: 4px solid var(--accent); min-width: 150px; }
.cmp thead td { background: var(--surface); border-top: 4px solid transparent; }
.cmp__n { display: block; font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.1; }
.cmp__n a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.cmp__m { display: block; font-size: 12px; color: var(--text-faded); margin-bottom: 8px; }
.cmp__p { display: block; font-family: 'Inter Tight', var(--font-body); font-weight: 700; font-size: 24px; font-variant-numeric: tabular-nums; }
.cmp__ps { display: block; font-size: 12px; color: var(--text-secondary); font-weight: 400; }
.cmp tbody th { position: sticky; left: 0; z-index: 1; background: var(--bg); text-align: left; vertical-align: top; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 12px 14px; border-top: 1px solid var(--surface-alt); min-width: 120px; }
.cmp thead td:first-child { position: sticky; left: 0; z-index: 2; }
.cmp td { vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--surface-alt); color: var(--text-secondary); }
.cmp td ul { list-style: none; display: grid; gap: 4px; }
.cmp--fuertes li::before { content: "+ "; color: var(--success); font-weight: 800; }
.cmp--flojos li::before { content: "– "; color: #F59E0B; font-weight: 800; }
.cmp--para_quien, .cmp--destaca { color: var(--text) !important; font-weight: 600; }
.cmp__elige { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 28px 0 12px; }
.cmp-sec .btn--ghost { margin-top: 20px; }
.cmp-cta { padding: 48px 24px 80px; }
.cmp-cta .cta-card { text-align: center; max-width: 640px; margin: 0 auto; }
.guias-grid { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 32px; }
.guias-grid a { display: grid; gap: 4px; height: 100%; padding: 18px; color: var(--text); background: var(--surface); border: 1px solid var(--surface-alt); border-radius: var(--radius); transition: transform .2s, border-color .2s; }
.guias-grid a:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); }
.guias-grid strong { font-size: 17px; }
.guias-grid span { font-size: 13px; color: var(--text-secondary); }
@media (max-width: 900px) {
  .herramientas { grid-template-columns: 1fr; }
  .guias-grid { grid-template-columns: 1fr 1fr; }
  .cmp__aviso { display: block; }
}
@media (max-width: 520px) {
  .top__nav { gap: 12px; }
  .top__nav > a:not(.btn) { font-size: 14px; }
  .cmp-sec { padding: 48px 16px 16px; }
  .cmp-cta { padding: 32px 16px 56px; }
}
