/* ─────────────────────────────────────────────
   dralbertozambudio.es · estilos compartidos
   Tipografía: Fraunces (titulares) + Manrope (texto)
   ───────────────────────────────────────────── */
:root {
  --ink: #15212E;
  --ink-2: #3A4654;
  --muted: #6B7480;
  --subtle: #9AA1A9;
  --paper: #F7F6F2;
  --paper-2: #EFEDE6;
  --card: #FFFFFF;
  --line: #E3E0D7;
  --teal: #2E6B66;
  --teal-2: #3F8580;
  --teal-soft: #E4EEEC;
  --brass: #A88551;
  --brass-soft: #EFE6D6;
  --night: #121C27;
  --warn: #A04A26;
  --warn-soft: #F6E9E2;
  --radius: 16px;
  --pill: 100px;
  --shadow: 0 20px 55px rgba(21, 33, 46, 0.08);
  --shadow-hi: 0 26px 64px rgba(21, 33, 46, 0.14);
  --max: 1160px;
  --pad-x: clamp(20px, 5vw, 56px);
  --pad-y: clamp(84px, 10vw, 140px);
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--teal); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 350; line-height: 1.1; letter-spacing: -0.02em; font-optical-sizing: auto; }
h3 { letter-spacing: -0.005em; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brass-soft); }

/* ── Navegación ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 246, 242, 0.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-size: 0.92rem; font-weight: 400; letter-spacing: 0.04em; }
.brand-name { font-family: var(--display); font-size: 1.08rem; font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 0.88rem; font-weight: 500; padding: 8px 13px; border-radius: var(--pill); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links .nav-cta { margin-left: 10px; border: 1px solid var(--ink); color: var(--ink); padding: 9px 18px; }
.nav-links .nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--pill); padding: 8px 16px; font: inherit; font-size: 0.86rem; font-weight: 500; color: var(--ink); cursor: pointer; }

/* ── Botones ── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: var(--pill); font-weight: 600; font-size: 0.92rem; text-decoration: none; border: 1px solid var(--ink); transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--ink-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--card); }
.btn-light { background: var(--paper); color: var(--night); border-color: var(--paper); }
.btn-light:hover { box-shadow: 0 14px 30px rgba(0,0,0,.25); transform: translateY(-1px); }
.btn-outline-light { color: var(--paper); border-color: rgba(247,246,242,.45); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
button.btn { cursor: pointer; font-family: inherit; }

/* ── Portada: hero ── */
.hero { background: var(--night); color: var(--paper); padding: clamp(72px, 9vw, 120px) 0 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(1000px 520px at 85% 10%, rgba(63,133,128,.22), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(168,133,81,.12), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: end; }
.eyebrow { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--brass); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 300; margin-bottom: 26px; color: #fff; }
.hero h1 em { font-style: italic; color: #A9CFCB; font-weight: 300; }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #C3CCD5; max-width: 580px; margin-bottom: 36px; line-height: 1.7; }
.hero .btns { margin-bottom: clamp(56px, 7vw, 96px); }
.portrait { position: relative; max-width: 320px; width: 100%; justify-self: end; margin-bottom: clamp(56px, 7vw, 96px); }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; border-radius: 200px 200px 18px 18px; display: block; filter: saturate(.92); }
.portrait figcaption { margin-top: 14px; font-size: 0.78rem; color: #8E9AA7; letter-spacing: 0.02em; }
.figures { position: relative; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: repeat(4, 1fr); }
.figure { padding: 28px 24px 34px 0; }
.figure + .figure { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.figure b { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1; color: #fff; margin-bottom: 8px; letter-spacing: -0.03em; }
.figure span { font-size: 0.84rem; color: #9AA6B2; }

/* ── Secciones ── */
section.block { padding: var(--pad-y) 0; }
section.alt { background: var(--paper-2); }
section.dark { background: var(--night); color: var(--paper); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-num { display: flex; align-items: center; gap: 14px; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--brass); margin-bottom: 18px; }
.sec-num i { font-style: normal; font-family: var(--display); font-size: 0.95rem; letter-spacing: 0; color: var(--ink); }
.sec-num::after { content: ''; width: 40px; height: 1px; background: var(--brass); }
.sec-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.sec-head h2 em { font-style: italic; color: var(--teal); }
.sec-head p { color: var(--ink-2); font-size: 1.05rem; max-width: 520px; }
.dark .sec-num i { color: #fff; }
.dark .sec-head h2 { color: #fff; }
.dark .sec-head h2 em { color: #A9CFCB; }
.dark .sec-head p { color: #B7C1CB; }
.tag { display: inline-block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--teal); margin-bottom: 14px; }

/* ── Proyectos (filas) ── */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 64px 1.1fr 1.6fr auto; gap: 28px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s, padding .2s; }
a.row:hover { background: var(--card); padding-left: 18px; padding-right: 18px; border-radius: 14px; border-bottom-color: transparent; box-shadow: var(--shadow); }
.row-n { font-family: var(--display); font-size: 0.95rem; color: var(--brass); }
.row h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.row h3 small { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-top: 8px; }
.row p { color: var(--ink-2); font-size: 0.96rem; }
.row-go { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.05rem; transition: background .2s, color .2s, border-color .2s; }
a.row:hover .row-go { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.principles { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 36px; font-size: 0.9rem; color: var(--ink-2); }
.principles span { display: flex; align-items: center; gap: 10px; }
.principles span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

/* ── IA ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.lead-text p { font-size: 1.08rem; color: var(--ink-2); margin-bottom: 18px; }
.dark .lead-text p { color: #B7C1CB; }
.stat-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: clamp(28px, 4vw, 44px); }
.stat-card .big { font-family: var(--display); font-weight: 300; font-size: clamp(4rem, 9vw, 6.4rem); line-height: .9; letter-spacing: -0.04em; color: #fff; }
.stat-card .big sup { font-size: .4em; vertical-align: top; margin-left: 4px; color: #A9CFCB; }
.stat-card h3 { font-size: 1.35rem; color: #fff; margin: 18px 0 12px; }
.stat-card p { color: #B7C1CB; font-size: 0.95rem; margin-bottom: 20px; }
.stat-card a { color: #fff; font-weight: 600; font-size: 0.9rem; }
.link-list { list-style: none; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.2rem; transition: padding .2s, color .2s; }
.link-list a span { font-family: var(--sans); font-size: 0.82rem; color: #9AA6B2; }
.link-list a:hover { padding-left: 8px; color: #A9CFCB; }

/* ── Colaboración ── */
.offer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.offer > div { padding: 34px 28px 10px 0; }
.offer > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.offer i { font-style: normal; font-family: var(--display); color: var(--brass); font-size: 0.95rem; }
.offer h3 { font-size: 1.35rem; margin: 18px 0 12px; }
.offer p { font-size: 0.93rem; color: var(--ink-2); }
.offer-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 52px; padding: 30px 34px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.offer-foot p { max-width: 620px; color: var(--ink-2); font-size: 0.95rem; }

/* ── Divulgación ── */
.guides { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; border-top: 1px solid var(--line); }
.guides a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.guides b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: -0.01em; }
.guides span { grid-column: 1; font-size: 0.88rem; color: var(--muted); }
.guides em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; color: var(--ink); transition: transform .2s; }
.guides a:hover b { color: var(--teal); }
.guides a:hover em { transform: translateX(4px); }
.note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; font-size: 0.86rem; color: var(--muted); }
.note b { color: var(--ink); }

/* ── Tarjetas genéricas (subpáginas) ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: box-shadow .25s, transform .25s, border-color .25s; }
a.card:hover { border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.card-k { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--teal); }
.card h3 { font-size: 1.4rem; }
.card p { font-size: 0.93rem; color: var(--ink-2); flex: 1; }
.card .go { font-size: 0.88rem; font-weight: 600; color: var(--ink); }

/* ── FAQ (subpáginas) ── */
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 22px; font-weight: 600; font-size: 0.98rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 1.1rem; font-weight: 400; }
.faq[open] summary::after { content: '–'; background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-body { padding: 0 22px 20px; font-size: 0.95rem; color: var(--ink-2); }
.faq-body p { margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; padding: 7px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--ink); }

/* ── Publicaciones ── */
.pub-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pub-filter { padding: 9px 18px; font: inherit; font-size: 0.84rem; font-weight: 500; border-radius: var(--pill); border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.pub-filter:hover { border-color: var(--ink); color: var(--ink); }
.pub-filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pub-search { flex: 1 1 240px; min-width: 0; padding: 10px 18px; font: inherit; font-size: 0.9rem; border-radius: var(--pill); border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.pub-search:focus { outline: none; border-color: var(--ink); }
.pub-year { font-size: 1.7rem; font-weight: 300; margin: 44px 0 4px; color: var(--ink); }
.pub-year.hidden, .pub.hidden { display: none; }
.pub-list { list-style: none; border-top: 1px solid var(--line); }
.pub { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 6px 36px; }
.pub-meta { grid-column: 1; grid-row: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pub > :not(.pub-meta) { grid-column: 2; }
.pub-type, .pub-first { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.pub-type-original { color: var(--teal); }
.pub-type-revision { color: #6A5A8C; }
.pub-first { color: var(--brass); }
.pub-title { display: block; font-family: var(--display); font-weight: 400; font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.pub-title:hover { color: var(--teal); }
.pub-authors { font-size: 0.82rem; color: var(--muted); }
.pub-authors strong { color: var(--ink); font-weight: 600; }
.pub-summary { font-size: 0.93rem; color: var(--ink-2); margin: 6px 0 4px; max-width: 760px; }
.pub-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.82rem; }
.pub-journal { font-style: italic; color: var(--ink-2); }
.pub-links { display: flex; gap: 18px; }
.pub-links a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 0.8rem; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.pub-links a:hover { border-color: var(--ink); }
.pub-empty { display: none; color: var(--muted); padding: 20px 0; }
#pubContainer.collapsed { max-height: 1400px; overflow: hidden; position: relative; }
#pubContainer.collapsed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(rgba(239,237,230,0), var(--paper-2)); }
.pub-more { display: flex; margin: 28px auto 0; }
.pub-source { font-size: 0.84rem; color: var(--muted); margin-top: 28px; text-align: center; }

/* ── Sobre mí ── */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.about-bio p { font-size: 1.08rem; color: var(--ink-2); margin-bottom: 18px; }
.about-bio p:first-child { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.4; color: var(--ink); font-weight: 300; letter-spacing: -0.01em; }
.cv { list-style: none; border-top: 1px solid var(--line); }
.cv li { display: grid; grid-template-columns: 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cv b { font-weight: 600; font-size: 0.98rem; }
.cv span { color: var(--muted); font-size: 0.88rem; }
.side-h { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin: 34px 0 12px; }
.side-h:first-child { margin-top: 0; }
.plain { color: var(--ink-2); font-size: 0.95rem; }
.links { display: grid; border-top: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.links a small { color: var(--muted); font-weight: 400; }
.links a:hover { color: var(--teal); }

/* ── Contacto ── */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-intro h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 20px; }
.contact-intro p { color: var(--ink-2); margin-bottom: 20px; font-size: 1.05rem; }
form { background: var(--card); border-radius: 22px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; box-shadow: var(--shadow); }
.f-full { grid-column: 1 / -1; }
label { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
input, select, textarea { width: 100%; font: inherit; font-size: 0.95rem; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color .15s; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
.f-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#formMsg { font-size: 0.88rem; }
.f-warn { font-size: 0.84rem; color: var(--warn); background: var(--warn-soft); padding: 12px 14px; border-radius: 12px; display: none; }

/* ── Pie ── */
footer { background: var(--night); color: #9AA6B2; padding: 72px 0 40px; font-size: 0.88rem; }
footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
footer h4 { color: #fff; font-family: var(--display); font-weight: 300; font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 12px; }
footer h5 { color: var(--brass); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
footer a { color: #DDE3E9; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer ul { list-style: none; display: grid; gap: 8px; }
.foot-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; margin-top: 16px; font-size: 0.8rem; color: #7D8A97; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Aparición suave ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Páginas de artículo (guías e IA) ── */
.crumbs { font-size: 0.84rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero .tag { color: var(--brass); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 300; margin-bottom: 20px; }
.page-hero .hero-lead { color: var(--ink-2); margin-bottom: 22px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.84rem; color: var(--muted); }
.article { display: grid; grid-template-columns: 220px 1fr; gap: clamp(40px, 6vw, 80px); padding: clamp(48px, 6vw, 72px) var(--pad-x) 100px; align-items: start; }
.article > * { min-width: 0; }
.toc { position: sticky; top: 100px; font-size: 0.88rem; }
.toc b { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 14px; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.prose { max-width: 720px; font-size: 1.04rem; color: var(--ink-2); line-height: 1.75; }
.prose section { margin-bottom: 64px; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 350; color: var(--ink); margin-bottom: 20px; }
.prose h3 { font-size: 1.35rem; color: var(--ink); margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 18px; display: grid; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.key { background: var(--teal-soft); border-radius: var(--radius); padding: 22px 26px; margin: 22px 0; color: var(--ink); }
.key b:first-child { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.warnbox { background: var(--warn-soft); border-radius: var(--radius); padding: 20px 24px; margin: 22px 0; color: var(--ink); }
.warnbox b:first-child { color: var(--warn); }
.table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 480px; line-height: 1.55; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: var(--paper); font-weight: 600; }
tr:last-child td { border-bottom: none; }
.diet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 24px; }
.diet > div { border-radius: 16px; padding: 20px 22px; font-size: 0.92rem; background: var(--card); border: 1px solid var(--line); }
.diet h4 { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.diet ul { padding-left: 18px; gap: 6px; margin: 0; }
.diet .yes h4 { color: var(--teal); }
.diet .mod h4 { color: #8A6714; }
.diet .no h4 { color: var(--warn); }
.faq-mini { margin-top: 10px; }
.refs { font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }
.refs ol { gap: 6px; }
.prompt { background: var(--night); color: #E6EDF5; border-radius: 16px; padding: 22px 24px; font-size: 0.92rem; line-height: 1.65; margin: 16px 0 20px; }
.prompt b { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #A9CFCB; margin-bottom: 10px; }
.steps-num { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps-num li { counter-increment: s; position: relative; padding-left: 44px; }
.steps-num li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); color: var(--ink); font-family: var(--display); font-size: 0.85rem; display: grid; place-items: center; }

/* ── Adaptación ── */
@media (max-width: 980px) {
  .hero-grid, .sec-head, .split, .about, .contact { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 260px; margin-bottom: 48px; }
  .hero .btns { margin-bottom: 0; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(3) { padding-left: 0; border-left: none; }
  .figure:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .offer { grid-template-columns: 1fr 1fr; }
  .offer > div:nth-child(3) { padding-left: 0; border-left: none; }
  .row { grid-template-columns: 48px 1fr auto; }
  .row p { grid-column: 2 / 3; }
  .row-go { grid-row: 1; grid-column: 3; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .diet { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--pad-x) 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin: 14px 0 0; text-align: center; border-radius: var(--pill); }
}
@media (max-width: 640px) {
  :root { --pad-x: 16px; }
  .grid-3, .grid-2, .guides, .offer { grid-template-columns: 1fr; }
  .offer > div, .offer > div + div { padding: 26px 0 18px; border-left: none; }
  .offer > div + div { border-top: 1px solid var(--line); }
  .figure { padding: 22px 12px 26px 0; }
  .figure + .figure { padding-left: 16px; }
  .figure:nth-child(3) { padding-left: 0; }
  .row { grid-template-columns: 1fr auto; gap: 10px 16px; padding: 24px 0; }
  .row-n { display: none; }
  .row p { grid-column: 1 / -1; }
  .row-go { grid-column: 2; width: 40px; height: 40px; }
  a.row:hover { padding-left: 0; padding-right: 0; box-shadow: none; background: none; }
  .pub { grid-template-columns: 1fr; }
  .pub-meta { grid-row: auto; flex-direction: row; flex-wrap: wrap; }
  .pub > :not(.pub-meta) { grid-column: 1; }
  form { grid-template-columns: 1fr; }
  .offer-foot { padding: 24px; }
  footer .wrap { grid-template-columns: 1fr; }
  .brand-name small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── Charlas y docencia ── */
.talks { list-style: none; border-top: 1px solid var(--line); }
.talk { display: grid; grid-template-columns: 170px 1fr; gap: 8px 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.talk time { font-family: var(--display); font-size: 1.05rem; color: var(--brass); }
.talk h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 8px; }
.talk p { color: var(--ink-2); font-size: 0.96rem; max-width: 720px; }
.talk .who { margin-top: 10px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.teach { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.teach > div { background: var(--card); border-radius: 20px; padding: 28px 30px; box-shadow: var(--shadow); }
.teach b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.teach span { color: var(--ink-2); font-size: 0.93rem; }
.sub-h { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 72px 0 24px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; list-style: none; border-top: 1px solid var(--line); }
.facts li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-2); }
.facts li b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .talk, .teach, .facts { grid-template-columns: 1fr; }
}
.reg { margin-top: 18px; font-size: 0.86rem; color: var(--muted); }
.reg a { color: var(--ink-2); }
.contact-intro .mail { font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 24px; word-break: break-all; }
.contact-intro .mail a { color: var(--ink); text-decoration-color: var(--brass); }
.offer-foot a strong { color: var(--ink); }
