:root {
    --tinta: #141414;
    --papel: #faf8f5;
    --papel-2: #f0ece6;
    --rojo: #a4161a;
    --gris: #5d5a56;
    --linea: #ddd7ce;
    --ancho-texto: 70ch;
    --sans: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --serif: "Merriweather", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
    margin: 0;
    background: var(--papel);
    color: var(--tinta);
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.8;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rojo); }
a:hover { color: #6e0d10; }

h1, h2, h3, h4, nav, .tarjeta, .etiqueta, footer {
    font-family: var(--sans);
}

h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 1.9rem; margin: 3rem 0 1rem; }
h3 { font-size: 1.3rem; margin: 2rem 0 .5rem; }

.contenedor {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.texto { max-width: var(--ancho-texto); }

/* ---------- Navegación ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--tinta);
    border-bottom: 3px solid var(--rojo);
}

.nav .contenedor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
}

.nav .marca {
    color: #fff;
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav .marca img { display: block; }

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.nav li a {
    display: block;
    padding: 16px 12px;
    color: #d8d4cd;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav li a:hover,
.nav li a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--rojo); }

.nav-boton {
    display: none;
    background: none;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font: 700 .85rem var(--sans);
    padding: 8px 12px;
    cursor: pointer;
}

@media (max-width: 1040px) {
    .nav-boton { display: block; }
    .nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--tinta);
        border-bottom: 3px solid var(--rojo);
    }
    .nav ul.abierto { display: flex; }
    .nav li a { padding: 14px 20px; border-top: 1px solid #2a2a2a; }
    .nav li a:hover,
    .nav li a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--rojo); }
}

/* ---------- Portada ---------- */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #f8f8f8;
    background:
        linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.65)),
        url(../img/background.jpeg) no-repeat center 30% / cover;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4.2rem);
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,.6);
}

/* Titular largo (una cita de varias líneas) */
.hero h1.cita-larga {
    font-size: clamp(1.6rem, 4.4vw, 3rem);
    line-height: 1.3;
    max-width: 22em;
    margin-left: auto;
    margin-right: auto;
}

.hero hr {
    width: 60%;
    margin: 28px auto;
    border: 0;
    border-top: 1px solid #f8f8f8;
}

.hero h2 {
    margin: 0;
    font-size: clamp(1.1rem, 2.5vw, 1.7rem);
    font-weight: 400;
    font-style: italic;
}

.hero .fechas {
    margin-top: 40px;
    font: 700 .9rem var(--sans);
    letter-spacing: .25em;
    text-transform: uppercase;
    opacity: .85;
}

/* ---------- Cabecera de páginas interiores ---------- */
.cabecera {
    padding: 70px 0 60px;
    color: #fff;
    background: var(--tinta) center / cover no-repeat;
}

.cabecera.con-foto {
    background-image: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.8)), var(--foto);
    background-position: center 25%;
}

.cabecera h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
}

.cabecera p {
    margin: 0;
    max-width: 60ch;
    color: #d8d4cd;
    font-size: 1.1rem;
}

.etiqueta {
    display: inline-block;
    margin-bottom: 10px;
    color: #ff8a8d;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* ---------- Contenido ---------- */
main { padding-bottom: 60px; }

section.bloque { padding: 10px 0; }

.fondo-2 { background: var(--papel-2); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }

blockquote {
    margin: 2rem 0;
    padding: .2rem 0 .2rem 1.4rem;
    border-left: 4px solid var(--rojo);
    font-size: 1.15rem;
    font-style: italic;
}

blockquote p { margin: 0 0 .6rem; }
blockquote cite, blockquote footer {
    display: block;
    color: var(--gris);
    font: 400 .85rem var(--sans);
    font-style: normal;
}

blockquote.grande {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.5;
    border: 0;
    border-top: 3px solid var(--rojo);
    padding: 1.5rem 0 0;
    max-width: 30em;
}

.nota {
    padding: 14px 18px;
    background: var(--papel-2);
    border-left: 4px solid var(--gris);
    font-size: .95rem;
    color: var(--gris);
}

/* Tarjetas */
.rejilla {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.tarjeta {
    display: block;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--linea);
    border-top: 4px solid var(--rojo);
    color: var(--tinta);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.tarjeta:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); color: var(--tinta); }
.tarjeta h3 { margin: 0 0 8px; font-size: 1.25rem; }
.tarjeta p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--gris); }
.tarjeta .mas { display: inline-block; margin-top: 14px; color: var(--rojo); font-size: .85rem; font-weight: 700; }

/* Línea de tiempo */
.linea-tiempo { list-style: none; margin: 2rem 0; padding: 0 0 0 28px; border-left: 3px solid var(--linea); }
.linea-tiempo li { position: relative; margin-bottom: 1.8rem; }
.linea-tiempo li::before {
    content: "";
    position: absolute;
    left: -37px;
    top: .55rem;
    width: 15px;
    height: 15px;
    background: var(--rojo);
    border: 3px solid var(--papel);
    border-radius: 50%;
}
.linea-tiempo .anio { display: block; font: 900 1.15rem var(--sans); color: var(--rojo); }

/* Datos clave */
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 2rem 0; }
.cifras div { padding: 18px; background: #fff; border: 1px solid var(--linea); text-align: center; font-family: var(--sans); }
.cifras strong { display: block; font-size: 2rem; font-weight: 900; color: var(--rojo); }
.cifras span { font-size: .85rem; color: var(--gris); }

/* Foto con pie */
figure { margin: 2rem 0; }
figure img { width: 100%; }
figcaption { margin-top: 8px; font: .85rem var(--sans); color: var(--gris); }

.con-retrato { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .con-retrato { grid-template-columns: 1fr; } }

/* Citas agrupadas */
.cita { padding: 1.2rem 0; border-bottom: 1px solid var(--linea); }
.cita:last-child { border-bottom: 0; }
.cita blockquote { margin: 0; }

/* Discursos y entrevistas */
.discurso p { margin: 0 0 1.2rem; }
.discurso .turno { margin-bottom: 1.2rem; }
.discurso .entrevistador { color: var(--gris); }
.discurso .entrevistador strong { color: var(--gris); }
.discurso .julio { padding-left: 16px; border-left: 3px solid var(--rojo); }
.discurso .corte { text-align: center; font: italic .9rem var(--sans); color: var(--gris); }

.indice-pagina {
    padding: 14px 20px;
    margin: 0 0 2rem;
    background: var(--papel-2);
    font: .9rem var(--sans);
}

.pasar { display: flex; justify-content: space-between; gap: 20px; margin-top: 3rem; font: 700 .9rem var(--sans); flex-wrap: wrap; }

/* Listas de obras */
.lista-obras { padding-left: 1.2rem; }
.lista-obras li { margin-bottom: .6rem; }

.episodios { list-style: none; padding: 0; counter-reset: ep; }
.episodios li { counter-increment: ep; position: relative; padding: 0 0 1.4rem 3.2rem; }
.episodios li::before {
    content: counter(ep);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    background: var(--rojo);
    color: #fff;
    font: 900 1rem var(--sans);
    border-radius: 50%;
}
.episodios strong { font-family: var(--sans); }

/* Pie */
footer { background: var(--tinta); color: #b8b3ab; padding: 40px 0; font-size: .9rem; }
footer a { color: #fff; }
footer p { margin: 0 0 .6rem; }
footer .lema { color: #fff; font-style: italic; font-family: var(--serif); }

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .cabecera { padding: 50px 0 40px; }
    h2 { font-size: 1.5rem; }
}

@media print {
    .nav, footer, .pasar { display: none; }
    body { background: #fff; font-size: 11pt; }
}
