/* ==========================================================================
   ESTILOS EXCLUSIVOS DE LA PÁGINA DE HISTORIA
   ========================================================================== */

/* HERO BANNER DE HISTORIA */
.history-hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)), url('../assets/img/hero-history-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1.hero-title {
    font-size: 55px;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.hero-subtitle {
    font-size: 18px;
    color: #E30613;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
}

/* CONTENEDOR DE LA PÁGINA */
.history-page {
    background-color: #FFFFFF;
    color: #111111;
}

.container-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* BLOQUES ASIMÉTRICOS DE TEXTO E IMAGEN */
.history-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    border-bottom: 1px solid #EEEEEE;
}

.history-block.inverse .block-text {
    order: 1;
}
.history-block.inverse .block-image {
    order: 2;
}

.block-text {
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.block-badge {
    background-color: #E30613;
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    letter-spacing: 1.5px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 15px;
}

.section-title-history {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'Oswald', sans-serif;
    color: #111;
}

.block-text p {
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
    text-transform: none;
}

.history-quote {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #E30613;
    border-left: 4px solid #111;
    padding-left: 15px;
    margin: 20px 0;
    text-transform: uppercase;
}

.block-image {
    height: 100%;
    min-height: 450px;
    overflow: hidden;
}

.block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.history-block:hover .block-image img {
    transform: scale(1.03);
}

/* SECCIÓN SIGNIFICADO JMC */
.jmc-meaning-section {
    background-color: #F9F9F9;
    padding: 90px 0;
    border-bottom: 1px solid #EAEAEA;
}

.section-title-center {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.section-subtitle-center {
    text-align: center;
    color: #666;
    font-family: Arial, sans-serif;
    font-size: 15px;
    margin-bottom: 50px;
    text-transform: none;
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.letter-card {
    background-color: #FFF;
    border: 1px solid #EAEAEA;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: border-color 0.3s ease;
}

.letter-card:hover {
    border-color: #E30613;
}

.giant-letter {
    font-size: 80px;
    font-weight: 900;
    color: rgba(227, 6, 19, 0.1);
    font-family: 'Oswald', sans-serif;
    display: block;
    line-height: 1;
    margin-bottom: -10px;
    transition: color 0.3s ease;
}

.letter-card:hover .giant-letter {
    color: rgba(227, 6, 19, 0.2);
}

.letter-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.letter-card p {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    text-transform: none;
}

.meaning-footer-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.meaning-footer-text p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    text-transform: none;
}

/* LÍNEA DE TIEMPO (TIMELINE) */
.history-timeline-section {
    padding: 90px 5%;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid #EAEAEA;
    margin-top: 50px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -41.5px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #111;
    border: 4px solid #FFF;
    box-shadow: 0 0 0 2px #111;
}

.timeline-dot.red-dot {
    background-color: #E30613;
    box-shadow: 0 0 0 2px #E30613;
}

.timeline-date {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #E30613;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 10px;
}

.timeline-content p {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    text-transform: none;
}

.timeline-achievement {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: #FDFDFD;
    border: 1px dashed #E30613;
    padding: 15px 20px;
    margin-top: 15px;
}

.timeline-achievement i {
    color: #FFD700;
    font-size: 24px;
    margin-top: 3px;
}

.timeline-achievement strong {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: #111;
    display: block;
    margin-bottom: 2px;
}

/* SECCIÓN DE ROSTER (PILOTOS LISTADO) */
.history-roster-section {
    background-color: #111111;
    color: #FFFFFF;
    padding: 90px 0;
}

.history-roster-section .section-subtitle-center {
    color: #AAA;
}

.roster-tables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.roster-card-box {
    background-color: #1A1A1A;
    border-top: 3px solid #E30613;
    padding: 40px;
}

.roster-card-box h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFF;
}

.roster-card-box h3 i {
    color: #E30613;
}

.roster-list {
    list-style: none;
    padding: 0;
}

.roster-list li {
    font-family: Arial, sans-serif;
    font-size: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #2A2A2A;
    display: flex;
    align-items: center;
    text-transform: none;
}

.roster-list li:last-child {
    border-bottom: none;
}

.roster-list .flag {
    font-size: 18px;
    margin-right: 12px;
    display: inline-block;
}

.roster-list .country-name {
    margin-left: auto;
    font-size: 12px;
    color: #777;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roster-list .roster-more {
    color: #999;
    font-style: italic;
    font-size: 13px;
    line-height: 1.5;
    padding-top: 15px;
}

/* SECCIÓN DE CIERRE */
.history-closure-section {
    position: relative;
    padding: 120px 5%;
    text-align: center;
    background: url('../assets/img/closure-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: #FFFFFF;
}

.closure-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.closure-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.closure-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.closure-content p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #DDD;
    margin-bottom: 20px;
    text-transform: none;
}

.closure-final {
    font-family: 'Oswald', sans-serif !important;
    font-size: 22px !important;
    color: #E30613 !important;
    font-weight: 700;
    margin-top: 35px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ==========================================================================
   DISEÑO ADAPTABLE (RESPONSIVE)
   ========================================================================== */

@media (max-width: 991px) {
    .history-block {
        grid-template-columns: 1fr;
    }
    .history-block.inverse .block-text {
        order: 2;
    }
    .history-block.inverse .block-image {
        order: 1;
    }
    .block-text {
        padding: 50px 5%;
    }
    .block-image {
        min-height: 350px;
    }
    .letters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .roster-tables-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .hero-content h1.hero-title {
        font-size: 40px;
    }
    .section-title-history {
        font-size: 26px;
    }
    .section-title-center {
        font-size: 28px;
    }
    .closure-content h2 {
        font-size: 28px;
    }
    .timeline-date {
        position: relative;
        margin-bottom: 5px;
    }
}