
/* ========================================
   HISTORIA - F1 FANS
======================================== */

.historia-page {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0 70px;
    color: #ffffff;
}

/* INTRODUCCIÓN */

.historia-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 45px;
}

.historia-intro h1 {
    color: #e10600;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 18px;
}

.historia-intro p {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.7;
}

/* CUADRÍCULA */

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

/* TARJETAS */

.historia-card {
    background: #141414;
    border: 1px solid #292929;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

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

/* ZONA DE IMAGEN */

.historia-card-imagen {
    height: 180px;
    background: #1b1b1b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #292929;
}

.historia-card-imagen span {
    color: #e10600;
    font-size: 27px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
}

/* CONTENIDO */

.historia-card-contenido {
    padding: 22px;
}

.historia-card-contenido h2 {
    color: #e10600;
    font-size: 21px;
    margin: 0 0 14px;
    font-weight: bold;
}

.historia-card-contenido p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    min-height: 68px;
    margin-bottom: 20px;
}

/* ENLACES */

.historia-card-contenido a {
    display: inline-block;
    color: #ffffff;
    background: #e10600;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.historia-card-contenido a:hover {
    background: #b80000;
    color: #ffffff;
}

/* TABLETS */

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

/* MÓVILES */

@media (max-width: 600px) {
    .historia-page {
        width: 92%;
        padding-top: 25px;
    }

    .historia-intro h1 {
        font-size: 25px;
    }

    .historia-apartados {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .historia-card-imagen {
        height: 150px;
    }
}
