/* Sztos (archivos de prueba entregados por la diseñadora; solo para títulos y frases cortas).
   La versión de prueba no incluye acentos ni Ñ: esos caracteres caen en Oswald hasta cargar la versión licenciada. */
@font-face { font-family: "Sztos"; src: url("fonts/Sztos-BoldItalic.otf") format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Sztos"; src: url("fonts/Sztos-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sztos"; src: url("fonts/Sztos-SemiBold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sztos"; src: url("fonts/Sztos-LightItalic.otf") format("opentype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Sztos"; src: url("fonts/Sztos-Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
/* Juan Pablo Allan — hoja de estilos
   Layout: una columna editorial de hasta 1120px, bandas de color a sangre con
   contenido centrado, mucho aire, tipografía grande. Amarillo solo como acento. */
:root {
  --bg: #F8F8FA;
  --surface: #FFFFFF;
  --surface-2: #EFEFF5;
  --ink: #20202A;
  --ink-2: #5B5A70;
  --heading: #090341;
  --brand: #090341;
  --brand-2: #412764;
  --link: #412764;
  --hero-bg: #412764;
  --hero-fg: #FFFFFF;
  --accent: #F2C138;
  --accent-ink: #090341;
  --line: rgba(9, 3, 65, 0.14);
  --band-bg: #090341;
  --band-fg: #F8F8FA;
  --band-muted: #BDB9E3;
  --btn-bg: #090341;
  --btn-fg: #FFFFFF;
  --btn-band-bg: #F2C138;
  --btn-band-fg: #090341;
  --focus: #F2C138;
  --error: #B03A2E;
  --font-display: "Sztos", "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090341; --surface: #130C52; --surface-2: #1A1360;
    --ink: #EDECF7; --ink-2: #B3B0D0; --heading: #F8F8FA; --brand: #F8F8FA; --brand-2: #C4B1EA;
    --link: #D6C8F2; --line: rgba(248, 248, 250, 0.16);
    --band-bg: #130C52; --band-fg: #F8F8FA; --band-muted: #B3B0D0;
    --btn-bg: #F2C138; --btn-fg: #090341; --btn-band-bg: #F2C138; --btn-band-fg: #090341;
    --error: #F5A79B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090341; --surface: #130C52; --surface-2: #1A1360;
  --ink: #EDECF7; --ink-2: #B3B0D0; --heading: #F8F8FA; --brand: #F8F8FA; --brand-2: #C4B1EA;
  --link: #D6C8F2; --line: rgba(248, 248, 250, 0.16);
  --band-bg: #130C52; --band-fg: #F8F8FA; --band-muted: #B3B0D0;
  --btn-bg: #F2C138; --btn-fg: #090341; --btn-band-bg: #F2C138; --btn-band-fg: #090341;
  --error: #F5A79B;
  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; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); margin: 0; line-height: 0.95; letter-spacing: 0; text-transform: uppercase; text-wrap: balance; }
h1, h2 { font-style: italic; }
h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 600; }
p { margin: 0; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 36em; }
.muted { color: var(--ink-2); }
.measure { max-width: 64ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter-l); top: -3rem; background: var(--accent); color: var(--accent-ink); padding: .5rem .9rem; z-index: 100; font-weight: 600; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + .5rem); }

/* Contenedores */
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.band { background: var(--band-bg); color: var(--band-fg); }
.band h1, .band h2, .band h3 { color: var(--band-fg); }
.band .muted { color: var(--band-muted); }
.band a { color: var(--band-fg); }
.eyebrow { display: inline-block; font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 300; font-style: italic; color: var(--brand-2); margin-bottom: .75rem; line-height: 1; }
.band .eyebrow { color: var(--accent); }
.hero-id { font-family: var(--font-display); font-weight: 300; font-style: italic; }
.stack { display: grid; gap: 1.25rem; }
.stack-lg { display: grid; gap: 2rem; }
.grid-2 { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2 > * { min-width: 0; } }
.grid-2.asym { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2.asym { grid-template-columns: 5fr 7fr; } }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: 4px; font-weight: 600; text-decoration: none; border: 2px solid transparent; font-size: 1rem; line-height: 1.2; min-height: 44px; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; color: var(--heading); border-color: currentColor; }
.btn-ghost:hover { background: var(--surface-2); }
.band .btn-primary { background: var(--btn-band-bg); color: var(--btn-band-fg); border-color: var(--btn-band-bg); }
.band .btn-ghost { color: var(--band-fg); border-color: rgba(248,248,250,.55); }
.band .btn-ghost:hover { background: rgba(248,248,250,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-more { font-weight: 600; }

/* Cabecera */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; color: var(--heading); text-decoration: none; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: .5rem; }
.brand small { font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--ink-2); }
.nav-toggle { display: none; background: none; border: 2px solid var(--heading); color: var(--heading); border-radius: var(--radius); padding: .5rem .8rem; font: inherit; font-weight: 600; min-height: 44px; cursor: pointer; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .4rem 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: .3em; }
.nav details { position: relative; }
.nav summary { list-style: none; cursor: pointer; font-weight: 500; padding: .4rem 0; color: var(--ink); display: inline-flex; align-items: center; gap: .35rem; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav details[open] summary::after { transform: translateY(1px) rotate(225deg); }
.nav details ul { position: absolute; top: 100%; left: 0; margin-top: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; display: grid; gap: .1rem; min-width: 12rem; box-shadow: 0 10px 30px rgba(9,3,65,.12); }
.nav details ul a { display: block; padding: .5rem .7rem; }
.nav a.btn { padding: .6rem 1rem; min-height: 40px; color: var(--btn-fg); }
.nav a.btn:hover { text-decoration: none; }
@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; }
  .nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter-r) 1.5rem var(--gutter-l); }
  .nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav ul li > a, .nav summary { display: block; padding: .7rem 0; font-size: 1.1rem; }
  .nav details ul { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 .5rem 1rem; }
  .nav .btn { margin-top: 1rem; width: 100%; justify-content: center; }
}
.no-js .nav { display: block; }
.no-js .nav-toggle { display: none; }

/* Portada */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem); position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-fg); }
.hero h1 { color: var(--hero-fg); }
.hero .btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hero .btn-ghost { color: var(--hero-fg); border-color: rgba(255,255,255,.6); }
.hero::after { content: ""; position: absolute; right: -10%; top: -20%; width: 42%; height: 150%; background: rgba(255,255,255,.06); transform: skewX(-14deg); pointer-events: none; }
.hero h1::after { content: ""; display: block; width: 100%; max-width: 22rem; height: .55rem; background: var(--accent); margin-top: 1.25rem; }
.hero .wrap { position: relative; z-index: 1; }
.hero-id { font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.hero-claim { display: flex; align-items: center; justify-content: center; max-width: 100%; }
.hero-claim img { width: min(100%, 460px); height: auto; }
.cierre { background: var(--hero-bg); color: var(--hero-fg); }
.cierre h2, .cierre .lead { color: var(--hero-fg); }
.cierre .btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hero h1 { margin-top: 1rem; }
.hero h1 .l2 { color: var(--accent); display: block; }
.hero .lead { margin-top: 1.5rem; color: var(--hero-fg); }
.hero .btn-row { margin-top: 2rem; }
.hero-photo { aspect-ratio: 4 / 5; max-width: 420px; width: 100%; justify-self: end; border-radius: var(--radius); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Marcadores de posición (solo vista previa) */
.ph { display: grid; place-items: center; text-align: center; padding: 1rem; border: 2px dashed rgba(242,193,56,.6); border-radius: var(--radius); color: var(--band-muted); font-size: .9rem; background: rgba(242,193,56,.06); }
.ph strong { display: block; color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; margin-bottom: .4rem; }
.photo-light .ph { color: var(--ink-2); border-color: var(--brand-2); background: var(--surface-2); }
.photo-light .ph strong { color: var(--brand-2); }
.preview-bar { background: var(--accent); color: var(--accent-ink); font-size: .85rem; padding: .45rem var(--gutter-r) .45rem var(--gutter-l); text-align: center; font-weight: 600; }

/* Prioridades */
.priorities { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .priorities { grid-template-columns: 1fr 1fr; } }
.priority { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1rem; align-content: start; min-width: 0; }
.priority h2 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); }
.priority .btn { justify-self: start; margin-top: .5rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: .85rem; font-weight: 500; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }

/* Casos y fichas */
.cases { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cases { grid-template-columns: 1fr 1fr; } }
.case { border-top: 3px solid var(--accent); padding-top: 1.25rem; display: grid; gap: .75rem; align-content: start; min-width: 0; }
.case .scope { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink-2); }
.band .case .scope { color: var(--band-muted); }
.case h3 { font-size: 1.25rem; }
.case dl { display: grid; gap: .35rem; margin: 0; font-size: .95rem; }
.case dt { font-weight: 600; color: var(--ink-2); }
.band .case dt { color: var(--band-muted); }
.case dd { margin: 0; }
.status { display: inline-block; font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--heading); border: 1px solid var(--line); }
.band .status { background: rgba(248,248,250,.1); color: var(--band-fg); border-color: rgba(248,248,250,.25); }
.note { font-size: .9rem; color: var(--ink-2); border-left: 3px solid var(--line); padding-left: .9rem; }
.band .note { color: var(--band-muted); border-color: rgba(248,248,250,.3); }

/* Líneas de propuesta */
.lines { display: grid; gap: 0; counter-reset: linea; list-style: none; padding: 0; margin: 0; }
.line { padding-block: 2rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .line { grid-template-columns: 2fr 3fr; column-gap: 3rem; } .line > * { min-width: 0; } }
.line h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.line dl { display: grid; gap: .9rem; margin: 0; }
.line dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink-2); margin-bottom: .2rem; }
.line dd { margin: 0; }
.line .coord { font-size: .92rem; color: var(--ink-2); }
.subcases { display: grid; gap: 1rem; margin-top: .5rem; }
.subcase { background: var(--surface-2); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; gap: .4rem; }
.subcase h4 { font-size: 1.05rem; display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; align-items: baseline; }

/* Destacado / cita editorial */
.pull { border-left: 8px solid var(--brand-2); padding: .5rem 0 .5rem 1.5rem; display: grid; gap: .75rem; max-width: 44em; }
.pull h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }

/* FAQ */
.faq { display: grid; gap: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; color: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand-2); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.4rem; max-width: 64ch; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: .92rem; color: var(--ink-2); }
.site-footer .wrap { display: grid; gap: 1rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer strong { color: var(--heading); font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: inherit; }

/* Páginas internas */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-head .lead { margin-top: 1.5rem; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.callout { background: var(--surface-2); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .95rem; max-width: 64ch; }
.bio { display: grid; gap: 1.25rem; max-width: 64ch; font-size: 1.1rem; }
.career { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .career { grid-template-columns: 1fr 1fr; } }
.career ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.career li { padding-left: 1rem; border-left: 3px solid var(--accent); display: grid; gap: .25rem; }
.career .verified { font-size: .85rem; color: var(--ink-2); }
.scopes { display: grid; gap: 3rem; }
.scope-head { display: grid; gap: .5rem; margin-bottom: 1.5rem; max-width: 64ch; }
.empty { color: var(--ink-2); font-style: italic; }
.ficha dl { display: grid; gap: 1.1rem; margin: 0; }
@media (min-width: 760px) { .ficha dl { grid-template-columns: 1fr 1fr; } .ficha dl > div { min-width: 0; } .ficha dl > div.wide { grid-column: 1 / -1; } }
.ficha dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink-2); margin-bottom: .25rem; }
.ficha dd { margin: 0; }
.compare { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { background: var(--surface-2); border-radius: var(--radius); padding: 1rem 1.1rem; min-width: 0; }
.compare h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; color: var(--ink-2); }
.meta-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: var(--ink-2); align-items: center; }
.breadcrumb { font-size: .9rem; color: var(--ink-2); margin-bottom: 1rem; }

/* Formulario */
.form { display: grid; gap: 1.25rem; max-width: 40rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; }
.field .help { font-size: .9rem; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); width: 100%; min-height: 44px; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-color: var(--brand-2); border-color: var(--brand-2); }
.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--brand-2); }
.form-status { padding: .9rem 1rem; border-radius: var(--radius); background: var(--surface-2); font-size: .95rem; }
.form-status[data-kind="error"] { border-left: 4px solid var(--error); }
.form-status[data-kind="info"] { border-left: 4px solid var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset[disabled] { opacity: .6; }
.err { color: var(--error); font-size: .9rem; }

/* 404 */
.notfound { padding-block: 6rem; text-align: left; }

/* Foto de cabecera en páginas internas */
.page-photo { margin: 2.5rem 0 0; }
.page-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 7; object-fit: cover; }
.page-photo figcaption { font-size: .9rem; color: var(--ink-2); margin-top: .6rem; }
