/* =============================================
   WEB MOSCA — STYLESHEET
   Fanzine digital / archivo cultural atemporal
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300;1,9..144,400;1,9..144,600&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,500;1,400;1,500&display=swap');

/* =============================================
   VARIABLES
   ============================================= */
:root {
  --bg:             #f4f0e6;
  --surface:        #faf8f3;
  --text:           #1a1917;
  --muted:          #7a7872;
  --border:         #d3cdbf;
  --border-light:   #e5e0d6;

  --font-display:   'Fraunces', Georgia, serif;
  --font-mono:      'Space Mono', 'Courier New', monospace;
  --font-body:      'Lora', Georgia, serif;

  /* Tags por categoría */
  --c-musica:       #1e3828;
  --c-musica-bg:    #e4ede8;
  --c-arte:         #3a1c1c;
  --c-arte-bg:      #ede4e4;
  --c-lugares:      #1c243a;
  --c-lugares-bg:   #e4e8ed;
  --c-personas:     #2c1c3a;
  --c-personas-bg:  #eae4ed;
  --c-notas:      #3a2c1c;
  --c-notas-bg:   #ede9e4;

  --padding:        clamp(1.2rem, 5vw, 3rem);
  --max-width:      1200px;
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }

/* =============================================
   UTILIDADES
   ============================================= */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* =============================================
   MOSCA SVG — ícono reutilizable
   ============================================= */
.fly-icon {
  display: inline-block;
  color: currentColor;
}

/* =============================================
   NAVEGACIÓN
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-logo svg { width: 22px; height: 16px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.18s;
  padding-bottom: 2px;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--text);
  border-bottom: 1px solid var(--text);
}

.nav-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.3em 0.6em;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: var(--text);
}

/* =============================================
   HERO — PORTADA
   ============================================= */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem var(--padding) 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  border-bottom: 1px solid var(--border);
}

.hero-wordmark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.025em;
}

.hero-wordmark em {
  font-style: italic;
  font-weight: 300;
}

.hero-aside {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.9;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-fly {
  width: 72px;
  height: 52px;
  color: var(--text);
  opacity: 0.1;
}

/* =============================================
   SECCIÓN HEADER (reutilizable)
   ============================================= */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2rem 0 1.2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-more {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: all 0.18s;
}
.section-more:hover { color: var(--text); border-bottom-color: var(--text); }

/* =============================================
   GRID PORTADA — DESTACADOS
   ============================================= */
.home-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.featured-main {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
}

.featured-sidebar {
  display: flex;
  flex-direction: column;
}

.featured-side-item {
  padding: 1.8rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.featured-side-item:last-child { border-bottom: none; }

/* Tarjeta grande */
.card-large { display: flex; flex-direction: column; gap: 1rem; }

.card-large .card-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 400;
}

.card-large .card-summary {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* Tarjeta pequeña */
.card-small .card-title {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 400;
}

.card-small .card-summary {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   LISTA DE ARTÍCULOS (portada, recientes)
   ============================================= */
.articles-list {
  border: 1px solid var(--border);
  margin-bottom: 4.5rem;
}

.article-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1.2rem;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
  cursor: pointer;
  transition: background 0.18s;
}
.article-row:last-child { border-bottom: none; }
.article-row:hover { background: var(--surface); }

.article-num {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--border);
  padding-top: 0.3rem;
}

.article-row-body {}

.article-row-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.article-row-summary {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 0.3rem;
}

.article-row-meta {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  padding-top: 0.3rem;
}

/* =============================================
   ETIQUETA DE CATEGORÍA
   ============================================= */
.cat-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.22em 0.55em;
  border-radius: 1px;
  cursor: pointer;
  transition: opacity 0.18s;
}
.cat-tag:hover { opacity: 0.75; }

.cat-tag.musica   { background: var(--c-musica-bg);   color: var(--c-musica);   }
.cat-tag.arte     { background: var(--c-arte-bg);     color: var(--c-arte);     }
.cat-tag.lugares  { background: var(--c-lugares-bg);  color: var(--c-lugares);  }
.cat-tag.personas { background: var(--c-personas-bg); color: var(--c-personas); }
.cat-tag.notas  { background: var(--c-notas-bg);  color: var(--c-notas);  }

/* =============================================
   ENLACE DE LECTURA
   ============================================= */
.read-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
  transition: opacity 0.18s;
  margin-top: 0.5rem;
}
.read-link:hover { opacity: 0.55; }

/* =============================================
   SEPARADOR CON MOSCA
   ============================================= */
.fly-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 2rem 0;
  color: var(--border);
}
.fly-divider::before,
.fly-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.fly-divider svg { width: 20px; height: 14px; opacity: 0.4; }

/* =============================================
   PÁGINA ARCHIVO
   ============================================= */
.archive-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem var(--padding) 2rem;
  border-bottom: 1px solid var(--border);
}

.archive-hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 300;
  margin-bottom: 0.4rem;
}

.archive-hero-desc {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.filter-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.4rem var(--padding);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.5rem;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--border);
  padding: 0.3em 0.75em;
  cursor: pointer;
  color: var(--muted);
  border-radius: 1px;
  transition: all 0.18s;
}
.filter-btn:hover { border-color: var(--text); color: var(--text); }
.filter-btn.active { background: var(--text); border-color: var(--text); color: var(--bg); }

.archive-count {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--border);
  margin-left: auto;
}

.archive-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--padding) 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.archive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.archive-card:hover {
  box-shadow: 4px 4px 0 var(--border);
  transform: translate(-2px, -2px);
}

.archive-card-title {
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 400;
}

.archive-card-summary {
  font-size: 0.855rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.archive-card-year {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--muted);
}

.archive-card.hidden { display: none; }

/* =============================================
   PÁGINA ARTÍCULO
   ============================================= */
.article-page {
  max-width: 780px;
  margin: 0 auto;
}

.article-header {
  padding: 3.5rem var(--padding) 2.5rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); text-transform: uppercase; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--border); }

.article-title-main {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

.article-summary-lead {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.article-byline {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-body {
  padding: 2.5rem var(--padding) 2rem;
}

.article-body p { font-size: 1.05rem; line-height: 1.88; margin-bottom: 1.5em; }
.article-body h3 { font-size: 1.25rem; margin: 2.5em 0 0.8em; font-weight: 400; }
.article-body em { font-style: italic; }
.article-body strong { font-weight: 600; }
.article-body blockquote {
  border-left: 2px solid var(--text);
  padding-left: 1.5rem;
  margin: 2em 0;
  font-style: italic;
  color: var(--muted);
}

.article-tags-row {
  padding: 0 var(--padding) 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-tag-item {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.25em 0.6em;
  border-radius: 1px;
}

/* =============================================
   ARTÍCULOS RELACIONADOS
   ============================================= */
.related-section {
  border-top: 1px solid var(--border);
  padding: 2.5rem var(--padding) 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* =============================================
   MANIFIESTO
   ============================================= */
.manifesto-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 4rem var(--padding) 6rem;
}

.manifesto-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.manifesto-pre {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.manifesto-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 300;
  line-height: 1.08;
  max-width: 680px;
}

/* En móvil la mosca de cabecera no tiene tamaño asignado (la regla de
   tamaño vive en el breakpoint >=700px), así que se limita aquí y se
   separa un poco del título */
@media (max-width: 699px) {
  .manifesto-fly-lg {
    display: block;
    width: 44px;
    height: 32px;
    color: var(--text);
    opacity: 0.1;
    margin-top: 1.5rem;
  }
}

/* Cabecera asimétrica: título + mosca a la misma altura,
   igual que el hero de portada, para reducir el peaje
   vertical antes del primer párrafo */
@media (min-width: 700px) {
  .manifesto-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
  }
  .manifesto-header-aside {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 0.4rem;
  }
  .manifesto-fly-lg {
    width: 64px;
    height: 46px;
    color: var(--text);
    opacity: 0.1;
  }
}

/* Columna de lectura: se mantiene en 680px por legibilidad
   (medida óptima ~65-75 caracteres), tanto en el layout
   simple como dentro del grid con rail */
.manifesto-body {
  max-width: 680px;
}

.manifesto-body p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.5em;
}

.manifesto-body h3 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3em 0 1.2em;
  padding-top: 2em;
  border-top: 1px solid var(--border-light);
}

.manifesto-body .pull {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  margin: 2.5em 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--text);
  color: var(--text);
}

/* =============================================
   MANIFIESTO — LAYOUT CON RAIL LATERAL
   El margen lateral deja de ser espacio vacío y
   pasa a alojar el índice del texto y las citas
   destacadas, en vez de ensanchar la columna de
   lectura (que se mantiene en 680px).
   ============================================= */
.manifesto-layout {
  display: grid;
  grid-template-columns: 1fr;
}

.manifesto-rail {
  display: none;
}

/* Las citas quedan en el flujo de lectura por defecto
   (tablet/móvil); en pantallas anchas se trasladan al rail */
.rail-pull {
  display: none;
}

@media (min-width: 1100px) {
  .manifesto-layout {
    grid-template-columns: 680px 1fr;
    gap: 3.5rem;
    align-items: start;
  }

  .manifesto-rail {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 0.4rem;
    position: sticky;
    top: 90px;
  }

  .manifesto-body .pull {
    display: none;
  }

  .rail-pull {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
    border-left: 2px solid var(--text);
    padding-left: 1.2rem;
  }
}

.manifesto-rail-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
  display: block;
}

.rail-index {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border-light);
}

.rail-index a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.18s;
}

.rail-index a:hover {
  color: var(--text);
}

.rail-fly {
  width: 40px;
  height: 28px;
  color: var(--text);
  opacity: 0.15;
  align-self: flex-start;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem var(--padding);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-brand svg { width: 18px; height: 13px; }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-align: center;
  flex: 1;
}

.footer-mail {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color 0.18s;
}
.footer-mail:hover { color: var(--text); }

/* =============================================
   NOT FOUND (estado vacío en archivo)
   ============================================= */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  grid-column: 1 / -1;
}
.empty-state svg { width: 40px; height: 28px; margin: 0 auto 1rem; opacity: 0.2; }

/* =============================================
   MODO NOCHE
   Paleta alternativa, activada por el usuario
   (toggle), persistida en localStorage.
   No es un invertido genérico: sigue la misma
   lógica cálida/analógica que la paleta de día.
   ============================================= */
[data-theme="noche"] {
  --bg:             #1b1815;
  --surface:        #242019;
  --text:           #ede7da;
  --muted:          #9a9488;
  --border:         #3a352c;
  --border-light:   #2c2820;

  --c-musica:       #a9d3b8;
  --c-musica-bg:    #1c2a20;
  --c-arte:         #d9b0b0;
  --c-arte-bg:      #2a1c1c;
  --c-lugares:      #b0bdd9;
  --c-lugares-bg:   #1c212e;
  --c-personas:     #cdb0d9;
  --c-personas-bg:  #241c2a;
  --c-notas:      #d9c4a0;
  --c-notas-bg:   #2a2419;
}

/* Transición lenta (día↔noche), activada solo
   durante los ~5s del cambio de tema — el resto
   del tiempo las transiciones rápidas de hover
   (0.18s) siguen intactas */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 5s ease, color 5s ease,
              border-color 5s ease, fill 5s ease, stroke 5s ease !important;
}

/* =============================================
   BOTÓN DE MODO NOCHE
   ============================================= */
.theme-toggle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s, border-color 0.18s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text); }

.nav-links li:last-child {
  display: flex;
  align-items: center;
}


@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem var(--padding);
    gap: 1.2rem;
    z-index: 199;
  }
  .nav { position: relative; }
  .nav-menu-btn { display: block; }

  .hero { grid-template-columns: 1fr; }
  .hero-aside { text-align: left; align-items: flex-start; }

  .featured-grid { grid-template-columns: 1fr; }
  .featured-main { border-right: none; border-bottom: 1px solid var(--border); }

  .article-row { grid-template-columns: 1fr auto; }
  .article-num { display: none; }
}

@media (max-width: 540px) {
  .archive-grid { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr; }
  .article-row-meta { display: none; }
  .footer-inner { flex-wrap: wrap; gap: 0.6rem 1rem; }
  .footer-copy { text-align: right; flex: 1; }
  .footer-mail { flex-basis: 100%; }
}

/* =============================================
   ANIMACIONES
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.archive-card { animation: fadeUp 0.3s ease both; }
.archive-card:nth-child(2) { animation-delay: 0.04s; }
.archive-card:nth-child(3) { animation-delay: 0.08s; }
.archive-card:nth-child(4) { animation-delay: 0.12s; }
.archive-card:nth-child(5) { animation-delay: 0.16s; }
.archive-card:nth-child(6) { animation-delay: 0.2s; }

/* Hover en enlace de artículo dentro de tarjeta */
.featured-main:hover .card-large .card-title,
.featured-side-item:hover .card-title {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
