/* IA.pa — identidad "Esclusa ejecutiva"
   Golden = solo botones · Amarillo limón = solo resaltado · Espresso = tinta */

/* Archivo (SIL Open Font License), autoalojada: sin dependencias externas */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'), url(/assets/fonts/archivo-latin-wdth-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations'), url(/assets/fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --ink: #2B1A12;
  --muted: #5E4A3E;
  --line: #E3DACD;
  --gold: #C8A04B;
  --hl: #F3D646;
  --btn-ink: #2B1A12;
  --btn-border: #2B1A12;
  --cd-bg: #2B1A12;
  --cd-ink: #F7F4EE;
  --cd-border: transparent;
  --photo-line: #CDBFAE;
  --focus: #2B1A12;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #2B1A12;
    --surface: #35231A;
    --ink: #F7F4EE;
    --muted: #D8CCBF;
    --line: #4E3A2E;
    --btn-border: #F7F4EE;
    --cd-bg: transparent;
    --cd-ink: #F7F4EE;
    --cd-border: #C8A04B;
    --photo-line: #5E4A3E;
    --focus: #F3D646;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #2B1A12;
  --surface: #35231A;
  --ink: #F7F4EE;
  --muted: #D8CCBF;
  --line: #4E3A2E;
  --btn-border: #F7F4EE;
  --cd-bg: transparent;
  --cd-ink: #F7F4EE;
  --cd-border: #C8A04B;
  --photo-line: #5E4A3E;
  --focus: #F3D646;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 40px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* Tipografía */
.display, .h2, .h3, .logo, .card-num, .cd-num, .course-num {
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -0.025em;
}
.display { font-size: clamp(1.75rem, 8.1vw, 4rem); line-height: 1.04; margin: 0; font-stretch: 112%; }
@media (min-width: 960px) { .display { font-size: clamp(3rem, 4.6vw, 4.2rem); } }
.display .line { display: block; }
.h2 { font-size: clamp(1.75rem, 5.6vw, 2.9rem); line-height: 1.05; margin: 0 0 24px; }
.h3 { font-size: 1.35rem; line-height: 1.15; margin: 0; font-stretch: 112%; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin: 22px 0 28px; }
.big { font-size: clamp(1.3rem, 3.4vw, 1.7rem); line-height: 1.35; font-weight: 600; margin: 0 0 48px; }
.body-lg { font-size: 1.15rem; margin: 0; }
.narrow { max-width: 46rem; }
.narrow-text > * { max-width: 860px; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.apo { color: var(--gold); }

/* Resaltado: marcador limón en claro, subrayado limón en oscuro */
.hl {
  background: linear-gradient(transparent 54%, var(--hl) 54%, var(--hl) 92%, transparent 92%);
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hl { background: none; padding: 0; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 0.13em; text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
}
:root[data-theme="dark"] .hl { background: none; padding: 0; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 0.13em; text-underline-offset: 0.14em; text-decoration-skip-ink: none; }

/* Botones: golden sólido con borde. Solo acciones. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  background: var(--gold); color: var(--btn-ink);
  border: 2px solid var(--btn-border); border-radius: 4px;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--btn-border); }
.btn:active { transform: none; box-shadow: none; }
.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 1.12rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Header */
.top { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo . toggle" "nav nav nav"; align-items: center; gap: 12px 16px; padding-top: 16px; padding-bottom: 8px; }
.top .logo { grid-area: logo; }
.top .theme-toggle { grid-area: toggle; }
.nav { grid-area: nav; overflow-x: auto; margin-inline: -4px; }
.nav ul { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-wrap: wrap; gap: 0 16px; }
.nav a { display: inline-block; padding: 10px 2px; font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 4px; text-underline-offset: 8px; text-decoration-skip-ink: none; }
@media (min-width: 760px) {
  .top { grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav toggle"; padding-top: 20px; }
  .nav { justify-self: end; margin: 0; }
  .nav ul { gap: 4px 28px; }
}
.logo { font-size: 1.6rem; line-height: 1; text-decoration: none; display: inline-flex; align-items: flex-start; }
.logo-dot { display: inline-block; width: 0.22em; height: 0.22em; background: var(--gold); margin: 0.68em 0.08em 0 0.08em; }
.theme-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }

/* Hero */
.hero { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 64px; }
@media (min-width: 960px) { .hero { grid-template-columns: 1fr; } .hero:has(.hero-photo) { grid-template-columns: 1.7fr 1fr; }
  .hero { align-items: stretch; padding-top: 56px; padding-bottom: 96px; } }
.countdown { margin-top: 34px; }
.cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 88px)); gap: 8px; }
.cd-box { background: var(--cd-bg); color: var(--cd-ink); border: 1.5px solid var(--cd-border); border-radius: 4px; padding: 12px 0; text-align: center; }
.cd-num { display: block; font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-unit { display: block; font-size: 0.75rem; margin-top: 6px; opacity: .85; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 959px) { .hero-photo { display: none; } }

/* Secciones */
.section { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding-top: 104px; padding-bottom: 104px; } }

/* Principios */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.card { background: var(--surface); border: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.card p { margin: 0; }
.card strong { font-weight: 700; }
.card-num { font-size: 2.6rem; line-height: 1; }

/* Línea de tiempo */
.timeline { margin-top: 40px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.tl-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(88px, 1fr)); min-width: 1056px; position: relative; }
.tl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 47px; height: 2px; background: var(--line); }
.tl-item button { width: 100%; min-height: 120px; background: none; border: 0; color: var(--ink); font: inherit; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; text-align: center; position: relative; }
.tl-month { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); height: 18px; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
.tl-name { font-size: .82rem; line-height: 1.2; color: var(--muted); }
.tl-major .tl-dot { width: 26px; height: 26px; margin-block: -6px; background: var(--gold); border-color: var(--btn-border); border-radius: 4px; }
.tl-major .tl-name { font-weight: 800; color: var(--ink); font-size: .9rem; }
.tl-item button[aria-pressed="true"] .tl-name { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 4px; text-underline-offset: 4px; }
.tl-detail { margin: 20px 0 0; font-size: 1.1rem; font-weight: 600; min-height: 3.2em; max-width: 46rem; }

/* Formulario */
.form-section { background: var(--surface); }
.form-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .form-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; } }
.form-box { background: var(--bg); border: 1px solid var(--line); padding: 24px 20px; }
@media (min-width: 720px) { .form-box { padding: 36px; } }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field input:not([type]), .field input[type="email"], .field input[type="tel"], .field input[type="search"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--muted); border-radius: 4px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #A3261B; border-width: 2px; }
.row-2 { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 10px; border: 1.5px solid var(--muted); border-radius: 4px; font-weight: 700; cursor: pointer; background: var(--surface); line-height: 1.2; }
.seg input:checked + span { border: 2px solid var(--ink); box-shadow: inset 0 -5px 0 var(--hl); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); }
.check label { font-weight: 500; font-size: .95rem; margin: 0; }
.hp { position: absolute; left: -9999px; }
.form-error { color: var(--ink); background: var(--surface); border-left: 4px solid #A3261B; padding: 10px 12px; font-weight: 600; margin: 0 0 16px; }
.success { display: flex; flex-direction: column; gap: 20px; }
.success .h3 { font-size: 1.6rem; }
.success-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* Reglas */
.rules > * { max-width: 760px; }
.rules-list { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rules-list li { counter-increment: r; display: grid; grid-template-columns: 3.2rem 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
.rules-list li::before { content: counter(r, decimal-leading-zero); font-stretch: 125%; font-weight: 900; }

/* Pie */
.foot { border-top: 2px solid var(--ink); padding: 40px 0 120px; }
@media (min-width: 960px) { .foot { padding-bottom: 48px; } }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; }
.foot-brand .logo { font-size: 1.3rem; }
.foot-links { list-style: none; display: flex; gap: 8px 24px; margin: 0; padding: 0; flex-wrap: wrap; }
.foot-links a { display: inline-block; padding: 10px 0; font-weight: 700; }

/* CTA fijo */
.sticky-cta { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px; min-height: 56px; box-shadow: 0 6px 20px rgba(43, 26, 18, .25); transition: opacity .2s ease, transform .2s ease; }
@media (min-width: 720px) { .sticky-cta { left: auto; right: 24px; bottom: 24px; } }
.sticky-cta.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; }

/* Página de gracias */
.thanks { padding-top: 64px; padding-bottom: 96px; max-width: 760px; }
.thanks-title { font-size: clamp(2rem, 8vw, 3.6rem); }
.thanks-lead { margin: 20px 0 32px; }
.thanks-back { margin-top: 48px; }

/* Páginas interiores */
.page-hero { padding-top: 40px; padding-bottom: 56px; }
@media (min-width: 960px) { .page-hero { padding-top: 72px; padding-bottom: 80px; } }
.page-hero .display { max-width: 16ch; }
.page-hero .lead { max-width: 40rem; }
.kicker { font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; }

/* Academia */
.courses { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.course { display: grid; grid-template-columns: 3.4rem 1fr; gap: 6px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.course-num { font-size: 1.9rem; line-height: 1; }
.course-body { display: flex; flex-direction: column; gap: 8px; }
.course-name { margin: 0; font-size: clamp(1.35rem, 3.6vw, 1.9rem); line-height: 1.1; font-weight: 900; font-stretch: 112%; letter-spacing: -.02em; }
.course-out { margin: 0; font-size: 1.1rem; }
.course-out .lbl { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.course .btn { grid-column: 2; justify-self: start; margin-top: 6px; }
@media (min-width: 860px) {
  .course { grid-template-columns: 4.5rem 1.1fr 1.3fr auto; align-items: center; gap: 16px 32px; padding: 30px 0; }
  .course-body { display: contents; }
  .course .btn { grid-column: auto; margin: 0; }
}
.info-box { background: var(--surface); border: 1px solid var(--line); padding: 24px 20px; }
@media (min-width: 720px) { .info-box { padding: 36px; } }
.info-row { display: grid; gap: 12px; }
@media (min-width: 560px) { .info-row { grid-template-columns: 1fr auto; align-items: end; } .info-row .field { margin: 0; } }
.chosen { margin: 0 0 14px; font-weight: 700; }
.chosen button { background: none; border: 0; padding: 4px; margin-left: 6px; color: var(--muted); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Comunidad / foro */
.forum-grid { display: grid; gap: 40px; }
@media (max-width: 999px) { .ask-box { order: -1; } }
@media (min-width: 1000px) { .forum-grid { grid-template-columns: 1fr 380px; align-items: start; } .ask-box { position: sticky; top: 24px; } }
.ask-box { background: var(--surface); border: 1px solid var(--line); padding: 24px 20px; }
.ask-box .h3 { margin-bottom: 16px; }
.note { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.forum-tools { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; margin-bottom: 8px; }
.forum-tools .field { margin: 0; flex: 1 1 260px; max-width: 420px; }
.forum-count { margin: 0; font-weight: 700; }
.threads { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.thread { padding: 24px 0; border-bottom: 1px solid var(--line); }
.thread-q { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.meta { margin: 0; font-size: .88rem; color: var(--muted); }
.meta strong { color: var(--ink); }
.answers { list-style: none; margin: 16px 0 0; padding: 0 0 0 16px; border-left: 3px solid var(--hl); display: flex; flex-direction: column; gap: 14px; }
.answers p { margin: 0 0 4px; white-space: pre-line; overflow-wrap: anywhere; }
.thread-actions { margin-top: 14px; }
.link-btn { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--ink); font: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 5px; cursor: pointer; }
.reply-box { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.thread.is-new { background: linear-gradient(90deg, var(--surface), transparent); }
.forum-empty { font-size: 1.15rem; font-weight: 600; padding: 28px 0; margin: 0; }
.ok-msg { font-weight: 700; margin: 0; }

/* Acerca de */
.about-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.fact { background: var(--surface); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.fact-big { font-size: clamp(2.4rem, 7vw, 3.4rem); line-height: 1; font-weight: 900; font-stretch: 125%; letter-spacing: -.03em; }
.fact p { margin: 0; }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.is-isnt { list-style: none; margin: 0; padding: 0; }
.is-isnt li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.is-isnt svg { margin-top: 3px; }
.cta-band { background: var(--surface); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.cta-band .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta-band .h2 { margin: 0; }
.foot-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; }
.foot-nav a { display: inline-block; padding: 10px 0; }
.foot-inner { row-gap: 8px; }
.foot-col { display: flex; flex-direction: column; gap: 4px; }

/* Noticias */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.news-wrap { padding-bottom: 96px; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; max-width: 860px; }
.news-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-weight: 700; color: var(--muted); font-size: .95rem; }
.news-tag { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: linear-gradient(transparent 50%, var(--hl) 50%, var(--hl) 92%, transparent 92%); padding: 0 4px; }
.news-title { margin: 0; font-size: clamp(1.5rem, 4.4vw, 2.3rem); line-height: 1.08; font-weight: 900; font-stretch: 115%; letter-spacing: -.02em; }
.news-text { margin: 0; font-size: 1.12rem; max-width: 44rem; }
.news-link { justify-self: start; gap: 8px; margin-top: 4px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .news-tag { background: none; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 4px; }
}
:root[data-theme="dark"] .news-tag { background: none; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 4px; }
