
/* =========================================
   ESCUDERÍAS HISTÓRICAS - F1 FANS
========================================= */

.historicos-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 45px 0 70px;
    color: #ffffff;
}

/* INTRODUCCIÓN */

.historicos-intro {
    text-align: center;
    margin-bottom: 45px;
}

.historicos-intro h1 {
    color: #e10600;
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 15px;
}

.historicos-intro p {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* CUADRÍCULA */

.historicos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* TARJETAS */

.historico-card {
    background: #171717;
    border: 1px solid #303030;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.historico-card:hover {
    transform: translateY(-5px);
    border-color: #e10600;
}

/* IMÁGENES */

.historico-imagen {
    width: 100%;
    height: 210px;
    background: #101010;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 2px solid #e10600;
}

.historico-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.historico-imagen span {
    color: #e10600;
    font-size: 58px;
    font-weight: bold;
    letter-spacing: 3px;
}

/* CONTENIDO */

.historico-contenido {
    padding: 22px;
}

.historico-pais {
    color: #e10600;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
}

.historico-contenido h2 {
    color: #ffffff;
    font-size: 21px;
    margin: 0 0 12px;
    font-weight: bold;
}

.historico-periodo {
    color: #aaaaaa;
    font-size: 14px;
    margin-bottom: 20px;
}

/* DESPLEGABLE */

.historico-contenido details {
    border-top: 1px solid #383838;
    padding-top: 15px;
}

.historico-contenido summary {
    color: #e10600;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.historico-contenido summary::-webkit-details-marker {
    display: none;
}

.historico-contenido summary::after {
    content: "+";
    font-size: 22px;
    font-weight: bold;
}

.historico-contenido details[open] summary::after {
    content: "−";
}

.historico-contenido summary:hover {
    color: #ff3333;
}

.historico-detalles {
    padding-top: 15px;
    color: #cccccc;
    font-size: 14px;
    line-height: 1.7;
}

.historico-detalles p {
    margin-bottom: 12px;
}

.historico-detalles strong {
    color: #ffffff;
}

/* TABLETS */

@media (max-width: 1000px) {
    .historicos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

/* MÓVILES */

@media (max-width: 650px) {
    .historicos-container {
        width: 92%;
        padding-top: 30px;
    }

    .historicos-intro h1 {
        font-size: 27px;
    }

    .historicos-intro p {
        font-size: 14px;
    }

    .historicos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .historico-imagen {
        height: 190px;
    }

    .historico-contenido {
        padding: 18px;
    }
}
