/* rafaelnarvaez.com — editorial, sobrio, sin animaciones */
:root {
  --tinta: #1d2130;
  --papel: #faf8f3;
  --papel-alterno: #f1ede4;
  --vinotinto: #7a1f2b;
  --gris: #5d6068;
  --borde: #ddd8cc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tinta: #e8e6df;
    --papel: #16181f;
    --papel-alterno: #1d2029;
    --vinotinto: #d98a94;
    --gris: #a3a6ad;
    --borde: #32363f;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--papel);
  color: var(--tinta);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3, .marca, .cita {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}
.contenedor { max-width: 880px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.cinta { border-bottom: 3px solid var(--vinotinto); background: var(--papel); }
.nav { display: flex; align-items: baseline; justify-content: space-between; padding: 1rem 1.25rem; flex-wrap: wrap; gap: .5rem; }
.marca { font-size: 1.35rem; font-weight: 700; color: var(--tinta); text-decoration: none; }
.enlaces a { color: var(--gris); text-decoration: none; margin-left: 1.1rem; font-size: .95rem; }
.enlaces a:hover { color: var(--vinotinto); text-decoration: underline; }

/* Portada */
.portada { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--borde); }
.portada-rejilla { display: grid; grid-template-columns: 3fr 2fr; gap: 2.2rem; align-items: center; }
@media (max-width: 720px) { .portada-rejilla { grid-template-columns: 1fr; } .portada { padding: 3rem 0 2.5rem; } }

/* Fotos */
figure { margin: 0; }
figure img { width: 100%; height: auto; display: block; border: 1px solid var(--borde); }
.retrato img { border-top: 4px solid var(--vinotinto); }
figcaption { font-size: .75rem; color: var(--gris); margin-top: .35rem; text-align: right; }
.foto-ancha { margin-bottom: 1.6rem; }

/* Redes */
.redes-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
@media (max-width: 720px) { .redes-rejilla { grid-template-columns: 1fr; } }
.widget-x { border: 1px solid var(--borde); min-height: 200px; padding: .6rem; }
.widget-x a { color: var(--vinotinto); }
.tarjeta-ig { border: 1px solid var(--borde); border-top: 4px solid var(--vinotinto); padding: 1.4rem; background: var(--papel-alterno); }
.tarjeta-ig .ig-titulo { font-weight: 700; font-size: 1.1rem; }
.tarjeta-ig .ig-usuario { font-family: Georgia, serif; font-size: 1.4rem; color: var(--vinotinto); margin: .2rem 0 .6rem; }
.tarjeta-ig p + p { margin-top: .6rem; }
.antetitulo { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--vinotinto); font-weight: 600; }
.portada h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); margin: .3rem 0 1.4rem; }
.cita { font-size: 1.25rem; font-style: italic; border-left: 4px solid var(--vinotinto); padding-left: 1.1rem; max-width: 40rem; color: var(--tinta); }
.cita cite { display: block; font-size: .85rem; font-style: normal; color: var(--gris); margin-top: .5rem; }

/* Bloques */
.bloque { padding: 3.2rem 0; }
.bloque.alterno { background: var(--papel-alterno); }
.bloque h2 { font-size: 1.9rem; margin-bottom: 1.2rem; }
.bloque h1 { font-size: 2.4rem; margin-bottom: 1rem; }
.bloque p + p { margin-top: 1rem; }
.nota { color: var(--gris); font-size: .95rem; margin-bottom: 1.5rem; }

/* Trayectoria */
.linea { list-style: none; }
.linea li { padding: .8rem 0 .8rem 1.4rem; border-left: 3px solid var(--vinotinto); margin-left: .25rem; }
.linea li + li { border-top: 1px solid var(--borde); }

/* Áreas */
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin-top: 1rem; }
.celda { background: var(--papel-alterno); border: 1px solid var(--borde); border-top: 3px solid var(--vinotinto); padding: 1.2rem; }
.bloque.alterno .celda { background: var(--papel); }
.celda h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.celda p { font-size: .95rem; color: var(--gris); }

/* Artículos de prensa */
.articulo { padding: 1rem 0; border-bottom: 1px solid var(--borde); }
.articulo h3 { font-size: 1.15rem; margin: .2rem 0; font-weight: 600; }
.articulo a { color: var(--tinta); text-decoration: none; }
.articulo a:hover { color: var(--vinotinto); text-decoration: underline; }
.fecha { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--vinotinto); font-weight: 600; }
.medio { font-size: .9rem; color: var(--gris); }
.ano { font-size: 1.5rem; margin: 2.2rem 0 .4rem; padding-bottom: .3rem; border-bottom: 3px solid var(--vinotinto); }
.mas { margin-top: 1.5rem; }

/* Botones */
.boton {
  display: inline-block; padding: .55rem 1.1rem; margin: .25rem .35rem .25rem 0;
  border: 1.5px solid var(--vinotinto); color: var(--vinotinto);
  text-decoration: none; font-size: .95rem; font-weight: 600;
}
.boton:hover { background: var(--vinotinto); color: var(--papel); }
.botones { margin-top: 1rem; }

/* Pie */
.pie { border-top: 3px solid var(--vinotinto); padding: 1.6rem 0 2.2rem; margin-top: 1rem; }
.pie p { font-size: .85rem; color: var(--gris); }
