/* DISEÑO EDITORIAL: HERITAGE DARK MODE */

:root {
    /* Paleta de Colores Profundos y Sofisticados */
    --bg-dark: #121212;          /* Fondo casi negro */
    --card-dark: #1E1E1E;        /* Gris carbón para tarjetas */
    --text-main: #E0E0E0;        /* Gris muy claro para lectura */
    --text-dim: #A0A0A0;         /* Gris para textos secundarios */
    --accent-gold: #C5A059;      /* Dorado envejecido para acentos */
    --accent-forest: #3E5C45;    /* Verde profundo */
    
    /* Tipografía Limpia */
    --serif: 'Playfair Display', serif;
    --sans: 'Montserrat', sans-serif;
    
    /* Otros */
    --shadow: 0 15px 35px rgba(0,0,0,0.5);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header: Más imponente y sin cursivas innecesarias */
header {
    max-width: 1100px;
    margin: 5rem auto 3rem auto;
    text-align: center;
    padding: 0 1.5rem;
}

.header-content {
    border-top: 1px solid var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
    padding: 3rem 0;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 800; /* Más peso, menos cursiva */
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.intro {
    font-family: var(--sans); /* Cambiado de Serif a Sans para modernidad */
    font-size: 1.1rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    font-weight: 300;
}

/* Layout de la Grid */
.grid-historias {
    display: grid;
    max-width: 1300px;
    margin: 0 auto 5rem auto;
    padding: 0 1.5rem;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Tarjetas (Componente Card) */
.card {
    background: var(--card-dark);
    padding: 2.5rem;
    border-radius: 8px; /* Un poco más de redondez para modernidad */
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 3px solid transparent; /* Efecto lateral al hover */
}

.card:hover {
    transform: translateY(-10px);
    border-left-color: var(--accent-gold);
    background: #252525;
}

.category {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.card h2 {
    font-family: var(--serif);
    font-size: 1.7rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

/* Botón Minimalista */
.btn-leer {
    display: inline-block;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border: 1px solid var(--accent-gold);
    transition: var(--transition);
}

.btn-leer:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* ==========================================================================
   ESTILOS PARA PÁGINAS DE HISTORIAS INDIVIDUALES
   ========================================================================== */

.story-container {
    max-width: 800px;
    margin: 3rem auto 5rem auto;
    padding: 4rem;
    background: var(--card-dark);
    box-shadow: var(--shadow);
    border-radius: 12px;
}

.quote {
    font-family: var(--serif);
    font-size: 1.7rem;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 3.5rem;
    line-height: 1.4;
    padding: 0 1.5rem;
}

.section-title {
    font-family: var(--serif);
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem 0;
    color: #FFFFFF;
    border-bottom: 2px solid var(--accent-forest);
    display: inline-block;
}

.story-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
}

.header-image {
    max-width: 450px;
    margin: 2.5rem auto 0 auto;
    border: 5px solid #252525;
    border-radius: 8px;
}

.header-image img {
    filter: grayscale(30%) contrast(1.1); /* Estilo más serio */
}

/* Footer */
footer {
    padding: 4rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Elimina espacio extra debajo de la imagen */
}