/* static/css/historia.css */

/* =========================================
   1. CABECERA (HERO) DE HISTORIA
   ========================================= */
.historia-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 40vh;
    min-height: 300px;
    margin-top: -2rem;
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(192, 8, 18, 0.3);
}

.historia-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    color: var(--blanco);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    text-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.historia-hero p {
    color: var(--rojo-rvm);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 600;
    margin-top: 10px;
}

/* =========================================
   2. GRILLAS DE CONTENIDO (TEXTO VS FOTO)
   ========================================= */
.historia-layout, .presente-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 5rem 0;
    align-items: center;
}

.historia-layout {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

@media (min-width: 992px) {
    .historia-layout {
        grid-template-columns: 1.2fr 1fr;
    }
    .presente-layout {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* =========================================
   3. ESTILOS DEL TEXTO
   ========================================= */
.historia-texto h2, .presente-texto h2 {
    color: var(--blanco);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.historia-texto h2 span, .presente-texto h2 span {
    font-weight: 900;
    color: var(--rojo-rvm);
}

.historia-texto p, .presente-texto p {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.historia-texto p strong, .presente-texto p strong {
    color: var(--blanco);
}

/* =========================================
   4. ESTILOS DE LOS CONTENEDORES DE FOTO
   ========================================= */
.historia-foto-container, .presente-foto-container {
    position: relative;
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.historia-foto-container img, .presente-foto-container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    border: 2px solid rgba(192, 8, 18, 0.5);
}

.epigrafe {
    background: #0a0a0a;
    padding: 1.5rem;
    text-align: center;
    border-top: 2px solid var(--rojo-rvm);
    margin-top: -2px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.epigrafe h4 {
    color: var(--rojo-rvm);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.epigrafe p {
    color: #aaa;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* CENTRADO PERFECTO EN MÓVILES PARA HISTORIA */
@media (max-width: 992px) {
    .historia-texto, .presente-texto {
        text-align: center;
    }
    /* Centramos también el botón si llegaras a poner uno */
    .historia-texto p, .presente-texto p {
        margin-left: auto;
        margin-right: auto;
    }
}