/* ============================================================
   MARACENERO — hoja de estilos
   Diseño editorial moderno: tipografía con carácter, mucho aire,
   acentos de color por categoría, tarjetas con portadas
   generadas (SVG abstracto), modo oscuro automático.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg: #faf7f1;
  --bg-alt: #f1ebdf;
  --card: #ffffff;
  --ink: #201c16;
  --ink-soft: #57503f;
  --ink-faint: #8a8171;
  --line: #e4dbc9;
  --accent: #b8481f;
  --accent-ink: #ffffff;
  --accent-empresa: #b8481f;
  --accent-sociedad: #2c6e63;
  --accent-general: #6b5b3a;
  --shadow: 0 1px 2px rgba(32, 28, 22, 0.06), 0 8px 24px -12px rgba(32, 28, 22, 0.18);
  --radius: 14px;
  --max-width: 1180px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 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;
}

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: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
  flex-wrap: wrap;
}

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

.brand__photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  box-shadow: var(--shadow);
  border: 3px solid var(--card);
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand__eyebrow {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}

.brand__tagline {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.35;
  max-width: 42ch;
}

@media (max-width: 780px) {
  .brand__photo { width: 60px; height: 60px; }
  .brand__name { font-size: 1.05rem; }
  .brand__tagline { font-size: 0.8rem; max-width: 30ch; }
}
@media (max-width: 480px) {
  .brand__tagline { display: none; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-search-link { display: none; }

.nav-external-link {
  font-size: 0.82rem !important;
  color: var(--ink-faint) !important;
  font-weight: 600 !important;
}
.nav-external-link:hover { color: var(--accent) !important; }

.header-search {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 4px 4px 16px;
  flex: none;
}
.header-search input {
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.86rem;
  width: 150px;
  color: var(--ink);
  outline: none;
}
.header-search input::placeholder { color: var(--ink-faint); }
.header-search button {
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 0.92rem;
  flex: none;
}
.header-search button:hover { background: var(--accent); }

@media (max-width: 900px) {
  .header-search { display: none; }
  .nav-search-link { display: inline; }
}

.main-nav a {
  color: var(--ink-soft);
  transition: color 0.15s ease;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
  color: var(--ink);
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 24px 18px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { display: block; width: 100%; padding: 10px 0; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- 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: 12px 22px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); opacity: 0.88; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); 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: 2px solid var(--ink);
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  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 .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;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 54px 0 34px;
}

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

.footer__grid h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  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(--accent); }

.footer__brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

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

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

.footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-faint);
  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;
}
