/* ============================================================
   MARACENERO — hoja de estilos
   Identidad 2026: azul noche, amarillo y rojo (a juego con las
   portadas de los artículos), Montserrat para titulares e Inter
   para el texto. Las piezas propias de la portada llevan el
   prefijo "h-" (al final del archivo) para no chocar con las
   del resto de páginas.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f4ee;
  --bg-alt: #efe9dc;
  --card: #ffffff;
  --ink: #0a1128;
  --ink-soft: #4a5370;
  --ink-faint: #6f7790;
  --line: #e3ddd0;
  --accent: #c8232c;
  --accent-ink: #ffffff;
  --accent-empresa: #1d4ed8;
  --accent-sociedad: #7c3aed;
  --accent-general: #475569;
  --night: #0a1128;
  --night-2: #121c3d;
  --night-3: #1b2752;
  --on-dark: #f4f1ea;
  --on-dark-soft: #aab2cc;
  --line-dark: rgba(255, 255, 255, 0.1);
  --sun: #ffc933;
  --sun-deep: #f5a700;
  --red: #e4343b;
  --shadow: 0 1px 2px rgba(10, 17, 40, 0.05), 0 12px 32px -18px rgba(10, 17, 40, 0.3);
  --radius: 18px;
  --max-width: 1240px;
  --serif: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Diseño siempre en claro a propósito (marca personal consistente,
   sin depender de si el visitante tiene el modo oscuro activado). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { letter-spacing: -0.02em; }

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 17, 40, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 72px;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.brand__photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 2px solid var(--sun);
  flex: none;
}

.brand__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }

.brand__name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}
.brand__name em { font-style: normal; color: var(--sun); }

.brand__sub {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-top: 5px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
}

.main-nav a {
  padding: 8px 13px;
  border-radius: 100px;
  color: var(--on-dark-soft);
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: #fff; background: var(--line-dark); }
.main-nav a[aria-current="page"] { color: var(--night); background: var(--sun); }
.main-nav a.nav-book { color: var(--sun); }
.main-nav a.nav-book:hover { background: var(--sun); color: var(--night); }

.header-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.header-icon:hover,
.header-icon[aria-current="page"] { background: var(--sun); color: var(--night); border-color: var(--sun); }

.nav-toggle { display: none; }

@media (max-width: 1060px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--night);
    border-bottom: 1px solid var(--line-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 18px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .nav-toggle { display: grid; margin-left: auto; }
}
@media (max-width: 420px) {
  .brand__photo { display: none; }
  .brand__name { font-size: 1.25rem; }
}

/* ---------- Ticker de titulares (portada) ---------- */

.ticker { background: var(--sun); color: var(--night); font-weight: 700; font-size: 0.86rem; overflow: hidden; white-space: nowrap; display: flex; }
.ticker__label { flex: none; background: var(--red); color: #fff; padding: 9px 16px; font-family: var(--serif); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.ticker__label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: h-pulse 1.6s infinite; }
.ticker__track { display: flex; gap: 48px; padding: 9px 0 9px 48px; animation: h-marquee 50s linear infinite; }
.ticker__track a:hover { text-decoration: underline; }
.ticker__track span { opacity: 0.45; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes h-marquee { to { transform: translateX(-50%); } }
@keyframes h-pulse { 50% { opacity: 0.25; } }


/* ---------- Category badges ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--cat-color, var(--accent-general)) 14%, transparent);
  color: var(--cat-color, var(--accent-general));
}

.tag--empresa { --cat-color: var(--accent-empresa); }
.tag--sociedad { --cat-color: var(--accent-sociedad); }
.tag--general { --cat-color: var(--accent-general); }

/* ---------- Hero (portada) ---------- */

.hero {
  padding: 56px 0 44px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 18px;
}

.hero__excerpt {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 54ch;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.hero__cover {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

/* ---------- Identidad y libro (usado en Sobre mí) ---------- */

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}
@media (max-width: 480px) { .role-tags { justify-content: center; } }

.role-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 5px 12px;
  border-radius: 100px;
}

.affiliations {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: 4px 0 0;
}
.affiliations a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.affiliations a:hover { color: var(--accent); }

.book-banner {
  display: flex;
  gap: 18px;
  align-items: center;
  background: linear-gradient(155deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, #201c16) 100%);
  color: #fff6ee;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
@media (max-width: 480px) { .book-banner { flex-direction: column; text-align: center; } }

.book-banner__cover {
  width: 96px;
  height: 128px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 6px;
  flex: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
@media (max-width: 480px) { .book-banner__cover { margin: 0 auto; } }

.book-banner__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}

.book-banner__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 4px;
  line-height: 1.2;
}

.book-banner__tagline {
  font-size: 0.88rem;
  opacity: 0.9;
  margin: 0 0 12px;
}

.book-banner .btn {
  background: #fff6ee;
  color: var(--accent);
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ---------- Compartir artículo ---------- */

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 22px 0;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.share-bar__label {
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-right: 2px;
}
.share-btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.share-btn:hover { transform: translateY(-1px); }
.share-btn--native { background: var(--accent); color: #fff6ee; border-color: var(--accent); }
.share-btn--native:hover { opacity: 0.9; }
.share-btn--whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-btn--telegram:hover { background: #229ed9; color: #fff; border-color: #229ed9; }
.share-btn--x:hover { background: #15181c; color: #fff; border-color: #15181c; }
.share-btn--facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn--linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-btn--email:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.share-btn--copy:hover { background: var(--accent); color: #fff6ee; border-color: var(--accent); }

/* ---------- Buttons / links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 24px;
  border-radius: 100px;
  border: 2px solid transparent;
  background: var(--ink);
  color: #fff;
  transition: transform 0.2s var(--ease), opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); opacity: 0.92; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); opacity: 1; }

.link-more {
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-more::after { content: '→'; transition: transform 0.15s ease; }
.link-more:hover::after { transform: translateX(3px); }

/* ---------- Section headers ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 64px 0 28px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--sun);
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 900;
  margin: 0;
}

/* ---------- Article grid / cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

/* Fila secundaria de la portada (2 tarjetas "también recientes" debajo de
   los destacados) — siempre a 2 columnas, para que nunca quede una fila
   a medias, sea cual sea el ancho de pantalla. */
.grid--2 { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
@media (max-width: 640px) { .grid--2 { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover { transform: translateY(-3px); }

.card__cover { aspect-ratio: 16 / 10; position: relative; }

.related-year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(32, 28, 22, 0.72);
  color: #fff6ee;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.card__title {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.28;
  font-weight: 700;
  margin: 0;
}

.card__excerpt {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.card__meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Category chips row ---------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 64px 0 0; }

.chip {
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip small { font-weight: 500; color: var(--ink-faint); }

/* ---------- Home hero (identidad) ---------- */

.home-hero {
  padding: 52px 0 20px;
  display: flex;
  align-items: center;
  gap: 36px;
}
@media (max-width: 700px) {
  .home-hero { flex-direction: column; text-align: center; padding-top: 36px; }
}

.home-hero__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  box-shadow: var(--shadow);
  border: 4px solid var(--card);
  flex: none;
}
@media (max-width: 700px) { .home-hero__photo { width: 128px; height: 128px; } }

.home-hero__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3rem);
  margin: 0 0 8px;
  line-height: 1.08;
}

.home-hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
  margin: 0 0 10px;
}

.home-hero__desc {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 58ch;
  margin: 0 0 20px;
}

.home-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) { .home-hero__actions { justify-content: center; } }

/* ---------- Bloques editoriales de portada ---------- */

.home-block { padding: 44px 0; border-top: 1px solid var(--line); }
.home-block h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 4px 0 12px;
}
.home-block--tint {
  background: var(--bg-alt);
  border-top: none;
  border-radius: var(--radius);
}

.year-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.year-chip {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.year-chip:hover { border-color: var(--accent); color: var(--accent); }

.related--historic { background: var(--bg-alt); border-radius: var(--radius); padding: 10px 0; }

.hint-inline { color: var(--ink-faint); font-size: 0.88rem; margin: 10px 0 24px; }

/* ---------- Article page ---------- */

.article-head { padding: 48px 0 30px; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--accent); }

.article-head h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  margin: 16px 0 20px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

.article-meta .author {
  font-weight: 700;
  color: var(--ink);
}

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 30px 0 10px;
  aspect-ratio: 21 / 9;
}

.article-body {
  max-width: 72ch;
  margin: 30px auto 0;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--ink);
}

.article-body p { margin: 0 0 1.3em; }
.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  padding: 0.05em 0.09em 0 0;
  color: var(--accent);
}

.article-body h2, .article-body h3 {
  font-family: var(--serif);
  margin: 1.6em 0 0.6em;
  line-height: 1.25;
}

.article-body ul, .article-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.5em; }

.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 26px;
  border-left: 4px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2em;
  color: var(--ink-soft);
}

.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.article-footer {
  max-width: 72ch;
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Author box ---------- */

.author-box {
  max-width: 72ch;
  margin: 46px auto 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
}

.author-box__avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; }

.author-box h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.1rem; }
.author-box p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Related ---------- */

.related { max-width: var(--max-width); margin: 70px auto 0; padding: 0 24px; }

/* ---------- Archive ---------- */

.archive-year {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.archive-year:first-of-type { margin-top: 40px; }

.archive-year summary {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.archive-year summary::-webkit-details-marker { display: none; }
.archive-year summary::before {
  content: '+';
  font-size: 1.1rem;
  width: 22px;
  color: var(--ink-faint);
}
.archive-year[open] summary::before { content: '–'; }

.archive-year__count {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-faint);
}

.archive-year .archive-list { margin-top: 14px; }

.archive-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.archive-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.archive-list time {
  flex: none;
  width: 68px;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.archive-list a {
  font-weight: 600;
  font-size: 1.02rem;
}
.archive-list a:hover { color: var(--accent); }

/* ---------- Buscar ---------- */

.search-page-box {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 4px;
}
.search-page-box input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 16px 20px;
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--ink);
  outline: none;
}
.search-page-box input::placeholder { color: var(--ink-faint); }

.search-status {
  color: var(--ink-faint);
  font-size: 0.92rem;
  margin: 18px 2px 0;
  min-height: 1.4em;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.search-result {
  display: block;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.search-result h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 8px 0 4px;
  color: var(--ink);
}
.search-result:hover h3 { color: var(--accent); }
.search-result p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 6px;
  max-width: 70ch;
}
.search-result__date {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ---------- Temas ---------- */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.topic-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.topic-card h3 { font-family: var(--serif); font-size: 1.15rem; margin: 0; color: var(--ink); }
.topic-card span { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Mi trayectoria ---------- */

/* ---------- Pensando en voz alta ---------- */
.video-archive-note {
  max-width: 68ch;
  margin: 0 0 36px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  color: var(--ink-soft);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card__body { padding: 22px; }
.video-card__meta {
  display: flex;
  gap: 6px;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.video-card__date {
  margin: 15px 0 8px;
  color: var(--ink-faint);
  font-size: .82rem;
}
.video-card .card__title a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* Miniatura + botón de reproducir (el <iframe> real de youtube-nocookie.com
   solo se crea al pulsar, ver assets/js/video-facade.js): así la página no
   carga varios reproductores pesados de golpe y no hay tráfico a YouTube
   hasta que la persona decide reproducir. */
.video-frame__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-frame__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: rgba(10, 8, 6, 0.18);
  cursor: pointer;
  transition: background 0.15s ease;
}
.video-frame__play:hover,
.video-frame__play:focus-visible { background: rgba(10, 8, 6, 0.34); }
.video-frame__play svg { width: 62px; height: 44px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); transition: transform 0.15s ease; }
.video-frame__play:hover svg,
.video-frame__play:focus-visible svg { transform: scale(1.08); }
.video-frame__play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* ---------- Ficha individual de vídeo ---------- */
.video-single { padding-top: 40px; padding-bottom: 20px; max-width: 760px; }
.video-single__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-single__frame .video-frame { border-radius: var(--radius); }
.video-reflection { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

.video-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.video-more-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
}
.video-more-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.video-more-card span { font-size: 0.92rem; font-weight: 600; }
.video-more-card:hover span { color: var(--accent); }

.timeline {
  border-left: 2px solid var(--line);
  margin-left: 6px;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.timeline-item__period {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.timeline-item h3 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 6px; }
.timeline-item p { color: var(--ink-soft); margin: 0; max-width: 65ch; }

.timeline-item--photo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  max-width: 100%;
}
.timeline-item__photo {
  margin: 0;
}
.timeline-item__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.timeline-item__photo figcaption {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 8px;
  max-width: 42ch;
}
@media (min-width: 760px) {
  .timeline-item--photo {
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
  }
  .timeline-item--left .timeline-item__photo { order: -1; }
}

.trayectoria-activity {
  margin-top: 48px;
  padding: 26px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.trayectoria-activity .btn { margin-top: 14px; }

.hint-block {
  color: var(--ink-faint);
  font-style: italic;
  font-size: 0.95rem;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 1.3em;
}

.about-section-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 1.6em 0 0.6em;
  padding-top: 0.3em;
  border-top: 1px solid var(--line);
}

/* ---------- About page ---------- */

.about-hero {
  padding: 56px 0 20px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 640px) { .about-hero { grid-template-columns: 1fr; } }

.about-body {
  max-width: 68ch;
  font-size: 1.12rem;
  line-height: 1.8;
  margin: 20px 0 60px;
}
.about-body p { margin: 0 0 1.3em; }
.about-body h2 { font-family: var(--serif); font-size: 1.25rem; font-weight: 800; margin: 1.8em 0 0.6em; }
.about-body ul { margin: 0 0 1.3em; padding-left: 1.3em; }
.about-body li { margin-bottom: 0.5em; }
.about-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.about-body .about-closing { font-family: var(--serif); font-size: 1.3em; font-style: italic; color: var(--ink); }

.about-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  border: 3px solid var(--card);
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 0 0 60px;
}
.about-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 90px;
  background: var(--night);
  color: var(--on-dark-soft);
  padding: 64px 0 32px;
  font-size: 0.92rem;
}
.page-home .site-footer { margin-top: 0; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

.footer__grid h4 {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
}

.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: 9px; }
.footer__grid a:hover { color: var(--sun); }

.footer__brand { margin-bottom: 14px; }
.footer__brand .brand__name { font-size: 1.6rem; }
.footer__about { max-width: 40ch; }

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line-dark);
  color: var(--on-dark-soft);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.social-icon:hover {
  color: var(--night);
  background: var(--sun);
  border-color: var(--sun);
  transform: translateY(-2px);
}

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}


/* ---------- Utility ---------- */

.visually-hidden {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.visually-hidden:focus { left: 16px; top: 16px; }

.empty-state {
  padding: 80px 0;
  text-align: center;
  color: var(--ink-faint);
}

/* ============================================================
   Banner de consentimiento de cookies (Google Analytics)
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1 1 260px;
}
.cookie-banner p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner__actions .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* ============================================================
   PORTADA (prefijo h-)
   ============================================================ */

.h-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.h-sec { padding: 88px 0; }
.h-sec--flush { padding-top: 0; }
.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.h-head h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900; line-height: 1.08; margin: 0; }
.h-eyebrow { font-family: var(--serif); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.h-eyebrow::before { content: ''; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.h-sub { color: var(--ink-soft); max-width: 58ch; margin: 10px 0 0; }
.h-dark { background: var(--night); color: var(--on-dark); }
.h-dark .h-sub { color: var(--on-dark-soft); }
.h-dark .h-eyebrow { color: var(--sun); }

.btn--sun { background: var(--sun); color: var(--night); box-shadow: 0 10px 30px -10px rgba(255, 201, 51, 0.7); }
.btn--sun:hover { opacity: 1; box-shadow: 0 16px 36px -12px rgba(255, 201, 51, 0.9); }
.btn--line { background: transparent; border: 2px solid rgba(255, 255, 255, 0.25); color: #fff; }
.btn--line:hover { opacity: 1; border-color: #fff; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.h-blob { position: absolute; border-radius: 50%; z-index: -1; animation: h-float 18s ease-in-out infinite; will-change: transform; pointer-events: none; }
.h-blob--1 { width: 760px; height: 760px; background: radial-gradient(closest-side, rgba(30, 75, 255, 0.38), transparent); top: -300px; left: -260px; }
.h-blob--2 { width: 640px; height: 640px; background: radial-gradient(closest-side, rgba(228, 52, 59, 0.32), transparent); bottom: -320px; right: 5%; animation-delay: -6s; }
.h-blob--3 { width: 480px; height: 480px; background: radial-gradient(closest-side, rgba(255, 201, 51, 0.22), transparent); top: 10%; right: -180px; animation-delay: -12s; }
@keyframes h-float { 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(0.95); } }
@keyframes h-bob { 50% { transform: translateY(-10px); } }
@keyframes h-ring { 70% { box-shadow: 0 0 0 22px rgba(228, 52, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(228, 52, 59, 0); } }
@keyframes h-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }

.h-play { width: 84px; height: 84px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(228, 52, 59, 0.6); animation: h-ring 2.2s infinite; }

/* ---------- Presentación personal ---------- */
.h-me { position: relative; background: var(--night); color: var(--on-dark); overflow: hidden; padding: 64px 0 0; isolation: isolate; }
.h-me__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; }
.h-me__text { padding-bottom: 72px; }
.h-me__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun); margin-bottom: 20px; }
.h-me__eyebrow::before { content: ''; width: 34px; height: 3px; background: var(--sun); border-radius: 2px; }
.h-me h1 { font-family: var(--serif); font-size: clamp(2.8rem, 6.4vw, 5.6rem); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; margin: 0 0 26px; }
.h-me h1 span { display: block; color: var(--sun); }
.h-me__motto { font-family: var(--serif); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.35; margin: 0 0 18px; max-width: 30ch; }
.h-me__motto b { color: var(--sun); font-weight: 800; }
.h-me__intro { color: var(--on-dark-soft); font-size: 1.08rem; max-width: 52ch; margin: 0 0 30px; }
.h-me__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.h-playlink { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 0.95rem; }
.h-playlink i { width: 46px; height: 46px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-style: normal; animation: h-ring 2.2s infinite; flex: none; }
.h-playlink small { display: block; font-weight: 500; color: var(--on-dark-soft); font-size: 0.78rem; }
.h-creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.h-creds span { font-size: 0.8rem; font-weight: 600; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.04); color: var(--on-dark-soft); }
.h-creds b { color: #fff; font-weight: 700; }
.h-me__photo { position: relative; justify-self: center; width: min(100%, 470px); }
.h-me__ring { position: absolute; width: 112%; aspect-ratio: 1; border-radius: 50%; left: -6%; top: 2%; background: radial-gradient(circle at 35% 30%, #ffe08a, var(--sun) 45%, var(--sun-deep)); z-index: -1; }
.h-me__ring::after { content: ''; position: absolute; inset: -22px; border-radius: 50%; border: 2px dashed rgba(255, 201, 51, 0.35); animation: h-spin 60s linear infinite; }
@keyframes h-spin { to { transform: rotate(360deg); } }
.h-me__frame { border-radius: 240px 240px 0 0; overflow: hidden; background: #dcdde1; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.6); }
.h-me__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.h-me__tag { position: absolute; background: #fff; color: var(--night); border-radius: 16px; padding: 12px 16px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6); font-size: 0.82rem; line-height: 1.3; animation: h-bob 6s ease-in-out infinite; }
.h-me__tag b { display: block; font-family: var(--serif); font-weight: 900; font-size: 1rem; }
.h-me__tag--1 { left: -38px; top: 30%; }
.h-me__tag--1 b { color: var(--red); }
.h-me__tag--2 { right: -24px; bottom: 16%; background: var(--red); color: #fff; max-width: 210px; animation-delay: -3s; }
@media (max-width: 960px) {
  .h-me { padding-top: 40px; }
  .h-me__grid { grid-template-columns: 1fr; gap: 28px; }
  .h-me__photo { order: -1; width: min(78%, 360px); }
  .h-me__text { padding-bottom: 56px; }
  .h-me__tag--1 { left: -20px; }
  .h-me__tag--2 { right: -20px; }
}

/* ---------- Último artículo ---------- */
.h-feat { position: relative; background: var(--night-2); color: var(--on-dark); overflow: hidden; padding: 72px 0 40px; isolation: isolate; border-top: 1px solid var(--line-dark); }
.h-feat__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.h-kicker { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 22px; flex-wrap: wrap; }
.h-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px; font-family: var(--serif); font-weight: 800; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.h-pill--new { background: var(--red); }
.h-pill--new::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: h-pulse 1.6s infinite; }
.h-feat__title { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 900; line-height: 1.08; margin: 0 0 22px; }
.h-feat__title a:hover { color: var(--sun); }
.h-feat__excerpt { font-size: 1.1rem; color: var(--on-dark-soft); max-width: 56ch; margin: 0 0 30px; }
.h-feat__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.h-feat__visual { position: relative; perspective: 1200px; }
.h-feat__card { position: relative; display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 0.15s ease-out; }
.h-feat__card > img, .h-feat__card > svg, .h-feat__card .h-poster { width: 100%; height: 100%; object-fit: cover; }
.h-feat__badge { position: absolute; top: -14px; right: 24px; background: var(--sun); color: var(--night); font-family: var(--serif); font-weight: 900; font-size: 0.8rem; padding: 10px 16px; border-radius: 12px; transform: rotate(4deg); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.5); z-index: 2; }
.h-also { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.h-also__item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); transition: 0.25s var(--ease); }
.h-also__item:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-3px); }
.h-also__thumb { width: 92px; flex: none; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.h-also__thumb > img, .h-also__thumb > svg, .h-also__thumb .h-poster { width: 100%; height: 100%; object-fit: cover; }
.h-also__label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sun); }
.h-also__title { font-family: var(--serif); font-weight: 700; font-size: 0.92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 960px) { .h-feat__grid { grid-template-columns: 1fr; gap: 36px; } .h-feat__visual { order: -1; } .h-also { grid-template-columns: 1fr; } }

/* ---------- Cifras ---------- */
.h-stats { background: var(--night-2); color: var(--on-dark); padding: 8px 0 72px; }
.h-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.h-stat { padding: 32px 24px 0; border-right: 1px solid var(--line-dark); }
.h-stat:last-child { border-right: 0; }
.h-stat__num { font-family: var(--serif); font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--sun); line-height: 1; }
.h-stat__txt { color: var(--on-dark-soft); font-size: 0.92rem; margin-top: 8px; }
@media (max-width: 760px) { .h-stats__grid { grid-template-columns: 1fr 1fr; } .h-stat:nth-child(2) { border-right: 0; } }

/* ---------- Lo que defiendo ---------- */
.h-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.h-value { background: var(--card); border-radius: var(--radius); padding: 28px 24px; position: relative; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.35s var(--ease); }
.h-value:hover { transform: translateY(-6px); }
.h-value__n { font-family: var(--serif); font-weight: 900; font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--sun-deep); margin-bottom: 18px; }
.h-value h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 900; margin: 0 0 10px; }
.h-value p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.h-value::after { content: ''; position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: linear-gradient(90deg, var(--sun), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.h-value:hover::after { transform: scaleX(1); }
@media (max-width: 960px) { .h-values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .h-values { grid-template-columns: 1fr; } }

/* ---------- Mosaico filtrable ---------- */
.h-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.h-filter { padding: 9px 16px; border-radius: 100px; border: 1.5px solid var(--line); background: var(--card); font: inherit; font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); cursor: pointer; transition: 0.2s; }
.h-filter:hover { border-color: var(--ink); color: var(--ink); }
.h-filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.h-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 20px; }
.h-tile { position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s; animation: h-in 0.5s var(--ease) both; }
.h-tile:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(10, 17, 40, 0.06), 0 28px 48px -20px rgba(10, 17, 40, 0.4); }
.h-tile__media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.h-tile__media > img, .h-tile__media > svg, .h-tile__media .h-poster { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.h-tile:hover .h-tile__media > img, .h-tile:hover .h-tile__media .h-poster { transform: scale(1.06); }
.h-tile__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.h-tile__title { font-family: var(--serif); font-weight: 800; font-size: 1.1rem; line-height: 1.22; margin: 0; }
.h-tile__excerpt { color: var(--ink-soft); font-size: 0.93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h-tile__meta { margin-top: auto; font-size: 0.8rem; color: var(--ink-faint); }
.h-tile__topic { position: absolute; top: 14px; left: 14px; z-index: 2; }
.h-tile--big { grid-column: span 2; grid-row: span 2; }
.h-tile--big .h-tile__media { aspect-ratio: auto; flex: 1; min-height: 280px; }
.h-tile--big .h-tile__title { font-size: 1.6rem; }
.h-tile--wide { grid-column: span 2; flex-direction: row; }
.h-tile--wide .h-tile__media { aspect-ratio: auto; width: 45%; flex: none; }
.h-more { text-align: center; margin-top: 40px; }
@media (max-width: 1020px) { .h-bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .h-bento { grid-template-columns: 1fr; }
  .h-tile--big, .h-tile--wide { grid-column: auto; grid-row: auto; }
  .h-tile--wide { flex-direction: column; }
  .h-tile--wide .h-tile__media { width: auto; aspect-ratio: 16 / 10; }
  .h-tile--big .h-tile__media { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
}

/* Cartel de color para artículos sin imagen propia */
.h-poster { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; overflow: hidden; height: 100%; }
.h-poster::before { content: '\201C'; position: absolute; top: -0.18em; right: 0.06em; font-family: Georgia, serif; font-size: 11rem; line-height: 1; opacity: 0.18; }
.h-poster::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 110%, rgba(0, 0, 0, 0.35), transparent 60%); }
.h-poster__year { position: absolute; left: 14px; bottom: -0.16em; font-family: var(--serif); font-weight: 900; font-size: 6.5rem; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.4); z-index: 1; }
.h-poster__topic { position: relative; z-index: 1; align-self: flex-end; font-family: var(--serif); font-weight: 900; font-size: 1.4rem; text-align: right; line-height: 1.05; margin-bottom: 4px; }
.h-poster__brand { position: relative; z-index: 1; align-self: flex-end; font-family: var(--serif); font-weight: 800; font-size: 0.62rem; letter-spacing: 0.14em; opacity: 0.85; }
.h-tile--big .h-poster__year, .h-random__media .h-poster__year, .h-feat__card .h-poster__year { font-size: 11rem; }
.h-tile--big .h-poster__topic, .h-random__media .h-poster__topic, .h-feat__card .h-poster__topic { font-size: 2.4rem; }
.h-also__thumb .h-poster { padding: 6px; }
.h-also__thumb .h-poster__topic, .h-also__thumb .h-poster__brand { display: none; }
.h-also__thumb .h-poster__year { font-size: 2.4rem; left: 6px; -webkit-text-stroke-width: 1px; }
.h-also__thumb .h-poster::before { font-size: 4rem; }

/* ---------- Vídeo + libro ---------- */
.h-duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
@media (max-width: 960px) { .h-duo { grid-template-columns: 1fr; } }
.h-yt { position: relative; border-radius: 28px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -30px rgba(10, 17, 40, 0.6); }
.h-yt img, .h-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.h-yt__btn { position: absolute; inset: 0; border: 0; background: linear-gradient(0deg, rgba(10, 17, 40, 0.85), transparent 60%); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 28px; text-align: left; cursor: pointer; font: inherit; }
.h-yt__btn .h-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.h-yt__btn strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 900; line-height: 1.15; }
.h-yt__btn span { font-size: 0.85rem; color: var(--on-dark-soft); margin-top: 4px; }
.h-book { border-radius: 28px; background: linear-gradient(160deg, var(--night-3), var(--night)); color: var(--on-dark); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.h-book img { width: 100%; height: 220px; object-fit: cover; object-position: 50% 32%; border-radius: 16px; }
.h-book h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 900; margin: 0; }
.h-book p { margin: 0; color: var(--on-dark-soft); }

/* ---------- Pide el libro ---------- */
.h-shop { background: linear-gradient(180deg, var(--bg), #fff3cf); }
.h-shop__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.h-shop__visual { position: sticky; top: 100px; }
.h-shop__photo { border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(10, 17, 40, 0.6); }
.h-shop__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; }
.h-price { position: absolute; top: -26px; right: -18px; width: 132px; height: 132px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-content: center; text-align: center; transform: rotate(10deg); box-shadow: 0 18px 40px -14px rgba(228, 52, 59, 0.8); }
.h-price b { font-family: var(--serif); font-weight: 900; font-size: 1.9rem; line-height: 1; }
.h-price small { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.h-ribbon { position: absolute; left: 20px; bottom: 20px; background: var(--sun); color: var(--night); font-family: var(--serif); font-weight: 900; font-size: 0.9rem; padding: 10px 16px; border-radius: 12px; }
.h-shop h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.08; margin: 0; }
.h-shop__lead { color: var(--ink-soft); font-size: 1.08rem; margin: 14px 0 22px; max-width: 54ch; }
.h-perks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.h-perks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 0.95rem; }
.h-perks li::before { content: '\2713'; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--night); color: var(--sun); display: grid; place-items: center; font-size: 0.8rem; font-weight: 900; }
.h-order { background: var(--card); border-radius: 24px; padding: 30px; box-shadow: 0 30px 60px -36px rgba(10, 17, 40, 0.45); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.h-order h3 { grid-column: 1 / -1; font-family: var(--serif); font-size: 1.3rem; font-weight: 900; margin: 0; }
.h-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.h-f--full { grid-column: 1 / -1; }
.h-f label, .h-f legend { font-size: 0.82rem; font-weight: 700; color: var(--ink); padding: 0; }
.h-f label small { font-weight: 500; color: var(--ink-faint); }
.h-f input, .h-f textarea { font: inherit; font-size: 0.95rem; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; width: 100%; }
.h-f input:focus, .h-f textarea:focus { outline: 0; border-color: var(--night); box-shadow: 0 0 0 4px rgba(255, 201, 51, 0.45); background: #fff; }
.h-f fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.h-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h-opt { position: relative; }
.h-opt input { position: absolute; opacity: 0; }
.h-opt span { display: block; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: 0.2s; height: 100%; }
.h-opt span small { display: block; font-weight: 500; color: var(--ink-faint); font-size: 0.78rem; }
.h-opt input:checked + span { border-color: var(--night); background: var(--night); color: #fff; }
.h-opt input:checked + span small { color: var(--sun); }
.h-opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255, 201, 51, 0.45); }
.h-qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
.h-qty button { width: 46px; height: 46px; flex: none; border: 0; background: transparent; font-size: 1.3rem; font-weight: 800; color: var(--ink); cursor: pointer; }
.h-qty button:hover { background: var(--sun); }
.h-qty input { border: 0 !important; background: transparent !important; text-align: center; font-weight: 800; box-shadow: none !important; padding: 0; }
.h-ship { grid-column: 1 / -1; display: none; grid-template-columns: 2fr 1fr; gap: 16px; }
.h-ship.is-on { display: grid; animation: h-in 0.35s var(--ease); }
.h-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--bg); border: 1.5px dashed var(--line); }
.h-total span { color: var(--ink-soft); font-size: 0.9rem; }
.h-total b { font-family: var(--serif); font-weight: 900; font-size: 1.6rem; text-align: right; }
.h-check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); }
.h-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--night); flex: none; }
.h-check a { text-decoration: underline; }
.h-order .btn { grid-column: 1 / -1; justify-content: center; font-size: 1.05rem; padding: 18px; border: 0; cursor: pointer; font-family: inherit; }
.h-order .btn[disabled] { opacity: 0.6; cursor: wait; }
.h-order__note { grid-column: 1 / -1; font-size: 0.82rem; color: var(--ink-faint); margin: -4px 0 0; text-align: center; }
.h-order__err { grid-column: 1 / -1; display: none; background: #fdecec; color: #9b1c1c; border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; font-weight: 600; }
.h-order__err.is-on { display: block; }
.h-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.h-order__ok { display: none; grid-column: 1 / -1; text-align: center; padding: 30px 10px; }
.h-order__ok b { display: block; font-family: var(--serif); font-weight: 900; font-size: 1.6rem; margin: 10px 0 8px; }
.h-order__ok .big { font-size: 3rem; }
.h-order.is-sent > *:not(.h-order__ok) { display: none; }
.h-order.is-sent .h-order__ok { display: block; animation: h-in 0.5s var(--ease); }
@media (max-width: 960px) { .h-shop__grid { grid-template-columns: 1fr; gap: 40px; } .h-shop__visual { position: relative; top: 0; max-width: 420px; margin: 0 auto; width: 100%; } }
@media (max-width: 560px) { .h-order { grid-template-columns: 1fr; padding: 22px; } .h-perks, .h-opts, .h-ship { grid-template-columns: 1fr; } .h-price { width: 104px; height: 104px; right: -6px; } .h-price b { font-size: 1.5rem; } }

/* ---------- Temas ---------- */
.h-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.h-topic { position: relative; border-radius: var(--radius); padding: 24px; min-height: 170px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.h-topic:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 24px 40px -20px rgba(10, 17, 40, 0.55); }
.h-topic::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); right: -60px; bottom: -70px; transition: transform 0.5s var(--ease); }
.h-topic:hover::after { transform: scale(1.4); }
.h-topic__count { font-family: var(--serif); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.h-topic__count small { font-size: 0.8rem; font-weight: 700; opacity: 0.85; margin-left: 6px; }
.h-topic__name { font-family: var(--serif); font-weight: 800; font-size: 1.1rem; line-height: 1.2; position: relative; z-index: 1; }
.h-topic__go { font-size: 0.8rem; font-weight: 700; opacity: 0.9; margin-top: 6px; position: relative; z-index: 1; }
@media (max-width: 960px) { .h-topics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .h-topic { min-height: 140px; padding: 18px; } .h-topic__count { font-size: 2rem; } }

/* ---------- 16 años en una línea ---------- */
.h-years { display: grid; grid-template-columns: repeat(var(--n, 17), 1fr); gap: 8px; align-items: end; height: 230px; padding-bottom: 6px; border-bottom: 1px solid var(--line-dark); }
.h-year { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; background: none; border: 0; color: var(--on-dark-soft); padding: 0; font: inherit; cursor: pointer; }
.h-year__bar { width: 100%; max-width: 44px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--sun), var(--sun-deep)); transform-origin: bottom; transform: scaleY(0); transition: transform 0.9s var(--ease), filter 0.2s, opacity 0.2s; position: relative; opacity: 0.55; }
.h-year__bar span { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-weight: 800; font-size: 0.8rem; color: #fff; }
.h-years.is-in .h-year__bar { transform: scaleY(1); }
.h-year[disabled] { cursor: default; }
.h-year[disabled] .h-year__bar { background: rgba(255, 255, 255, 0.12); }
.h-year[disabled] .h-year__bar span { display: none; }
.h-year:not([disabled]):hover .h-year__bar, .h-year.is-active .h-year__bar { opacity: 1; filter: drop-shadow(0 0 14px rgba(255, 201, 51, 0.6)); }
.h-year__lbl { font-size: 0.74rem; font-weight: 700; }
.h-year.is-active .h-year__lbl { color: var(--sun); }
.h-yearpanel { margin-top: 32px; display: grid; grid-template-columns: 260px 1fr; gap: 40px; min-height: 180px; }
.h-yearpanel__big { font-family: var(--serif); font-weight: 900; font-size: 5rem; line-height: 0.9; color: var(--sun); }
.h-yearpanel__note { color: var(--on-dark-soft); margin-top: 10px; font-size: 0.95rem; }
.h-yearlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; align-content: start; }
.h-yearlist li { animation: h-in 0.4s var(--ease) both; }
.h-yearlist a { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-weight: 600; transition: color 0.2s; }
.h-yearlist a:hover { color: var(--sun); }
.h-yearlist time { color: var(--on-dark-soft); font-size: 0.8rem; font-weight: 500; flex: none; width: 54px; padding-top: 2px; }
@media (max-width: 860px) { .h-years { overflow-x: auto; grid-template-columns: repeat(var(--n, 17), 40px); } .h-yearpanel { grid-template-columns: 1fr; gap: 16px; } .h-yearlist { grid-template-columns: 1fr; } .h-yearpanel__big { font-size: 3.4rem; } }

/* ---------- Uno al azar ---------- */
.h-random { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--card); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(10, 17, 40, 0.45); }
.h-random__media { min-height: 320px; }
.h-random__media > img, .h-random__media > svg, .h-random__media .h-poster { width: 100%; height: 100%; object-fit: cover; }
.h-random__body { padding: 44px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.h-random__year { font-family: var(--serif); font-weight: 900; font-size: 0.85rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.h-random__title { font-family: var(--serif); font-weight: 900; font-size: 1.9rem; line-height: 1.12; margin: 0; }
.h-random__excerpt { color: var(--ink-soft); margin: 0; }
.h-random__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.h-random__body > *, .h-random__media { transition: opacity 0.25s, transform 0.25s; }
.h-random.is-swapping .h-random__body > *, .h-random.is-swapping .h-random__media { opacity: 0; transform: translateY(8px); }
.h-dice { display: inline-block; transition: transform 0.5s var(--ease); }
.btn:hover .h-dice { transform: rotate(180deg); }
@media (max-width: 860px) { .h-random { grid-template-columns: 1fr; } .h-random__media { min-height: 220px; } .h-random__body { padding: 28px; } .h-random__title { font-size: 1.5rem; } }

/* ---------- Cierre ---------- */
.h-closing { background: var(--sun); color: var(--night); padding: 100px 0; position: relative; overflow: hidden; }
.h-closing__deco { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-weight: 900; font-size: 32vw; line-height: 0.8; color: rgba(10, 17, 40, 0.06); pointer-events: none; user-select: none; }
.h-closing__small { font-family: var(--serif); font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.6rem); margin: 0 0 8px; max-width: 30ch; }
.h-closing__big { font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 7.5vw, 6.4rem); line-height: 0.95; letter-spacing: -0.04em; margin: 0; }
.h-closing__big span { color: var(--red); }
.h-closing__row { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.h-closing__sig { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.h-closing__sig img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--night); }
.h-closing__sig small { display: block; font-weight: 500; }
.h-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.h-social { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; transition: transform 0.25s var(--ease); }
.h-social:hover { transform: translateY(-4px) rotate(-6deg); }
.h-social svg { width: 20px; height: 20px; }

/* ---------- Animaciones al hacer scroll ---------- */
.js .h-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .h-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .h-blob, .h-me__ring::after, .h-me__tag, .h-play, .h-playlink i, .ticker__track, .h-pill--new::before, .ticker__label::before { animation: none !important; }
  .js .h-reveal { opacity: 1; transform: none; transition: none; }
  .h-year__bar { transform: none; transition: none; }
  .h-tile, .h-yearlist li { animation: none; }
}

/* ============================================================
   PÁGINAS INTERIORES (prefijo p-): cabecera oscura y piezas a
   juego con la portada. Reutilizan .h-tile, .h-topic, .h-pill…
   ============================================================ */

.p-hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 76px; }
.p-hero--small { padding: 52px 0 56px; }
.p-hero--tall { padding: 110px 0 120px; }
.p-hero--grad::before { content: ''; position: absolute; inset: 0; background: var(--tgrad); opacity: 0.6; z-index: -2; }
.p-hero--grad::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--night) 25%, rgba(10, 17, 40, 0.35)); z-index: -1; }
.p-hero--grad .h-blob { display: none; }
.p-hero__deco { position: absolute; right: -0.04em; bottom: -0.2em; font-family: var(--serif); font-weight: 900; font-size: clamp(7rem, 22vw, 17rem); line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.12); z-index: -1; pointer-events: none; user-select: none; white-space: nowrap; }
.p-hero__crumbs { font-size: 0.85rem; color: var(--on-dark-soft); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.p-hero__crumbs a:hover { color: var(--sun); }
.p-hero__crumbs span { opacity: 0.5; }
.p-hero__title { font-family: var(--serif); font-weight: 900; font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 18px; max-width: 22ch; }
.p-hero__sub { color: var(--on-dark-soft); font-size: 1.12rem; max-width: 62ch; margin: 0; }
.p-hero__sub a { color: var(--sun); font-weight: 600; }
.p-hero__sub a:hover { text-decoration: underline; }
.p-hero__stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.p-stat { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); border-radius: 16px; padding: 14px 20px; min-width: 120px; backdrop-filter: blur(6px); }
.p-stat b { display: block; font-family: var(--serif); font-weight: 900; font-size: 1.9rem; line-height: 1; color: var(--sun); }
.p-stat span { display: block; font-size: 0.8rem; color: var(--on-dark-soft); margin-top: 6px; }
.p-yearnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.p-yearnav a { font-family: var(--serif); font-weight: 800; font-size: 0.82rem; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.04); color: var(--on-dark); transition: 0.2s var(--ease); }
.p-yearnav a:hover { background: var(--sun); border-color: var(--sun); color: var(--night); transform: translateY(-2px); }

.p-body { padding-top: 56px; padding-bottom: 96px; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.p-grid .h-tile__media { aspect-ratio: 16 / 10; }
.p-grid--1 { grid-template-columns: 1fr; }
@media (max-width: 980px) { .p-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .p-grid { grid-template-columns: 1fr; } }
.p-more { margin-top: 40px; color: var(--ink-soft); }
.p-othertopics { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.p-othertopics > span { font-weight: 700; color: var(--ink-soft); margin-right: 6px; }
.p-othertopics .h-pill { padding: 8px 14px; font-size: 0.72rem; transition: transform 0.2s var(--ease); }
.p-othertopics .h-pill:hover { transform: translateY(-2px); }
.p-topic__latest { font-size: 0.8rem; opacity: 0.9; margin-top: 8px; position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-topics .h-topic { min-height: 210px; }
.p-start { margin-top: 64px; }
.p-start:first-child { margin-top: 0; }
.p-start h2 { font-size: clamp(1.6rem, 3vw, 2.2rem) !important; }
.h-head h2 { font-family: var(--serif); font-weight: 900; }

/* Artículo */
.p-hero--article { padding-bottom: 150px; }
.p-hero--article .p-hero__title { max-width: 26ch; font-size: clamp(2rem, 4.6vw, 3.5rem); }
.p-article-pills { margin-bottom: 18px; }
.p-article-pills .h-pill { padding: 7px 14px; font-size: 0.72rem; }
.p-article-meta { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.p-article-meta img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--sun); }
.p-article-meta strong { display: block; font-family: var(--serif); font-weight: 800; }
.p-article-meta span { font-size: 0.88rem; color: var(--on-dark-soft); }
.p-article { position: relative; z-index: 2; }
.p-article__cover { max-width: 1040px; margin: -110px auto 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -36px rgba(10, 17, 40, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08); background: var(--night-2); }
.p-article__cover > img, .p-article__cover .h-poster { width: 100%; height: 100%; object-fit: cover; }
.p-article__cover .h-poster__year { font-size: clamp(6rem, 16vw, 13rem); }
.p-article__cover .h-poster__topic { font-size: clamp(1.4rem, 3.4vw, 2.6rem); }
.p-article .share-bar { max-width: 72ch; margin: 28px auto; }
.p-article .article-body { margin-top: 20px; }
/* Sin letra capital: muchos artículos empiezan con «¿» o con un subtítulo en negrita. */
.p-article .article-body p:first-of-type::first-letter { float: none; font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; padding: 0; color: inherit; }
.article-body blockquote { border-left-color: var(--sun); color: var(--ink); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 24px; box-shadow: var(--shadow); }
.article-body h2, .article-body h3 { font-weight: 800; }
.article-footer:empty { display: none; }
.author-box { background: var(--night); color: var(--on-dark); padding: 28px; gap: 22px; align-items: center; box-shadow: 0 30px 60px -36px rgba(10, 17, 40, 0.6); }
.author-box__avatar { width: 84px; height: 84px; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--sun); }
.author-box h3 { font-weight: 900; font-size: 1.25rem; }
.author-box p { color: var(--on-dark-soft); }
.author-box .link-more { color: var(--sun); }
@media (max-width: 520px) { .author-box { flex-direction: column; text-align: center; } }

.p-related { background: var(--bg-alt); padding: 80px 0 96px; margin-top: 80px; }
.p-related__historic { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; background: var(--night); color: var(--on-dark); border-radius: 28px; padding: 40px; margin-bottom: 72px; }
.p-related__historic h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; margin: 0; }
.p-related__historic .h-eyebrow { color: var(--sun); }
.p-related__historic .h-sub { color: var(--on-dark-soft); }
.p-related__historic .h-tile { flex-direction: row; color: var(--ink); }
.p-related__historic .h-tile__media { width: 45%; flex: none; aspect-ratio: auto; min-height: 200px; }
@media (max-width: 860px) {
  .p-related__historic { grid-template-columns: 1fr; padding: 26px; }
  .p-related__historic .h-tile { flex-direction: column; }
  .p-related__historic .h-tile__media { width: auto; aspect-ratio: 16 / 10; min-height: 0; }
}
.related-year-badge { top: auto; bottom: 12px; right: 12px; background: var(--sun); color: var(--night); font-family: var(--serif); font-weight: 900; backdrop-filter: none; z-index: 2; }

/* Desde 2010 */
.archive-year { background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 0; margin: 14px 0 0; overflow: hidden; scroll-margin-top: 100px; }
.archive-year:first-of-type { margin-top: 0; }
.archive-year summary { padding: 18px 26px; font-weight: 900; font-size: 1.9rem; color: var(--ink); align-items: center; transition: background 0.2s; }
.archive-year summary:hover { background: var(--bg-alt); }
.archive-year summary::before { content: '+'; display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--bg-alt); color: var(--ink); font-size: 1.2rem; font-weight: 800; }
.archive-year[open] summary { background: var(--night); color: var(--on-dark); }
.archive-year[open] summary::before { content: '–'; background: var(--sun); color: var(--night); }
.archive-year__count { margin-left: auto; font-family: var(--serif); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 100px; background: var(--sun); color: var(--night); }
.archive-year .archive-list { margin: 0; padding: 6px 26px 14px; border-top: 0; }
.archive-list li { align-items: center; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.archive-list li:last-child { border-bottom: 0; }
.archive-list a { flex: 1 1 280px; font-family: var(--serif); font-weight: 700; }
.archive-list time { font-weight: 600; }
.archive-list .h-pill { font-size: 0.62rem; }
.hint-inline { margin: 0 0 20px; }
@media (max-width: 520px) { .archive-year summary { font-size: 1.5rem; padding: 14px 16px; } .archive-year .archive-list { padding: 4px 16px 10px; } }

/* Trayectoria */
.timeline { border-left: 0; margin-left: 10px; padding-left: 38px; position: relative; gap: 22px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--sun), var(--red)); }
.timeline-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; transition: transform 0.3s var(--ease); }
.timeline-item:hover { transform: translateX(4px); }
.timeline-item::before { left: -47px; top: 26px; width: 22px; height: 22px; background: var(--sun); border: 5px solid var(--bg); box-shadow: 0 0 0 2px var(--sun-deep); }
.timeline-item__period { background: var(--night); color: var(--sun); padding: 5px 12px; border-radius: 100px; font-family: var(--serif); font-weight: 800; margin-bottom: 10px; }
.timeline-item h3 { font-weight: 800; font-size: 1.25rem; }
.trayectoria-activity { background: var(--night); color: var(--on-dark); border-radius: 24px; padding: 34px; margin-top: 56px; }
.timeline:has(> .hint-block) { padding-left: 0; margin-left: 0; }
.timeline:has(> .hint-block)::before { display: none; }
.trayectoria-activity .h-eyebrow { color: var(--sun); }
.trayectoria-activity h2 { font-family: var(--serif); font-weight: 900; font-size: 1.6rem; margin: 0 0 10px; }
.trayectoria-activity p { color: var(--on-dark-soft); margin: 0; }
.trayectoria-activity a { color: var(--sun); font-weight: 600; }
.hint-block { background: var(--card); box-shadow: var(--shadow); }

/* Pensando en voz alta */
.video-archive-note { background: var(--card); border-left: 4px solid var(--sun); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); margin: 0 0 40px; }
.video-card { border: 0; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(10, 17, 40, 0.06), 0 28px 48px -20px rgba(10, 17, 40, 0.4); }
.video-card .card__title { font-family: var(--serif); font-weight: 800; font-size: 1.2rem; line-height: 1.25; margin: 0 0 8px; }
.video-card .card__excerpt { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.video-frame__play svg path:first-child { fill: var(--red); fill-opacity: 1; }
.video-single { padding-top: 0; padding-bottom: 20px; max-width: 900px; position: relative; z-index: 2; }
.video-single__frame { margin-top: -110px; border-radius: 24px; box-shadow: 0 40px 80px -36px rgba(10, 17, 40, 0.65); }
.video-single .share-bar { margin-top: 28px; }
.video-more-card img { transition: transform 0.35s var(--ease); }
.video-more-card:hover img { transform: translateY(-4px); }
.video-more-card span { font-family: var(--serif); font-weight: 700; }

/* Sobre mí */
.p-hero--about { padding: 64px 0 72px; }
.about-hero { padding: 0; grid-template-columns: 260px 1fr; gap: 48px; }
.about-hero__photo { position: relative; }
.about-hero__photo::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: conic-gradient(var(--sun), var(--red), var(--sun)); z-index: 0; }
.about-hero__photo img { position: relative; z-index: 1; border: 6px solid var(--night); box-shadow: none; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: 50%; }
.p-hero .role-tag { color: var(--night); background: var(--sun); }
.p-hero .affiliations { color: var(--on-dark-soft); margin-top: 12px; }
.p-hero .affiliations a { color: var(--on-dark); }
.p-hero .affiliations a:hover { color: var(--sun); }
.about-hero__links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 640px) {
  .about-hero { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .about-hero__photo { width: 200px; margin: 0 auto; }
  .about-hero .h-eyebrow, .about-hero__links { justify-content: center; }
  .about-hero .p-hero__title { margin-left: auto; margin-right: auto; }
}
.about-section-title { font-weight: 900; border-top: 0; padding-top: 0; display: flex; align-items: center; gap: 12px; }
.about-section-title::before { content: ''; width: 28px; height: 4px; border-radius: 2px; background: var(--sun); flex: none; }
.book-banner { background: var(--night); color: var(--on-dark); border-radius: 24px; padding: 28px; gap: 26px; margin-bottom: 48px; position: relative; overflow: hidden; }
.book-banner::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 201, 51, 0.25), transparent); right: -60px; top: -80px; pointer-events: none; }
.book-banner__eyebrow { color: var(--sun); font-family: var(--serif); font-weight: 800; opacity: 1; }
.book-banner__title { font-weight: 900; font-size: 1.5rem; }
.book-banner__cover { width: 120px; height: 150px; border-radius: 12px; }
.book-banner .btn.btn--sun { background: var(--sun); color: var(--night); padding: 12px 22px; font-size: 0.9rem; }

/* Buscar y legales */
.p-hero .search-page-box { max-width: 720px; margin-top: 8px; border: 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.p-hero .search-page-box input { font-size: 1.2rem; padding: 20px 24px; }
.p-body--search { padding-top: 36px; }
.search-result { background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 12px; transition: transform 0.25s var(--ease); }
.search-result:hover { transform: translateY(-3px); }
.search-result h3 { font-weight: 800; }
.p-legal { max-width: 72ch; margin: 0; }
.p-legal h2 { display: flex; align-items: center; gap: 12px; }
.p-legal h2::before { content: ''; width: 22px; height: 4px; border-radius: 2px; background: var(--sun); flex: none; }

@media (max-width: 640px) {
  .p-hero { padding: 44px 0 52px; }
  .p-hero--article { padding-bottom: 96px; }
  .p-article__cover, .video-single__frame { margin-top: -70px; border-radius: 16px; }
  .p-stat { min-width: 0; flex: 1 1 100px; padding: 12px 14px; }
  .p-stat b { font-size: 1.5rem; }
  .p-body { padding-top: 40px; padding-bottom: 64px; }
  .p-related { padding: 56px 0 64px; }
  .timeline { padding-left: 28px; margin-left: 4px; }
  .timeline-item { padding: 18px; }
  .timeline-item::before { left: -37px; }
  .trayectoria-activity { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-item, .video-card, .search-result { transition: none; }
}
