
/* =========================================
   CIRCUITOS - F1 FANS
========================================= */

.circuitos-page {
    width: 92%;
    max-width: 1400px;
    margin: 40px auto;
    color: #fff;
}

/* INTRODUCCIÓN */

.circuitos-intro {
    text-align: center;
    margin-bottom: 40px;
}

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

.circuitos-intro p {
    color: #ccc;
    font-size: 16px;
}

/* CUADRÍCULA */

.circuitos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* TARJETAS */

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

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

/* ZONA DE IMAGEN */

.circuito-imagen {
    width: 100%;
    height: 140px;
    background: #1b1b1b;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #292929;
}

/* ABREVIATURA */

.circuito-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b1b1b;
    z-index: 1;
}

.circuito-placeholder span {
    color: #e10600;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 3px;
    text-align: center;
}

/* FOTOGRAFÍA */

.circuito-imagen img {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CONTENIDO */

.circuito-contenido {
    padding: 20px;
}

.circuito-pais {
    color: #e10600;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 12px;
}

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

.circuito-gp {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 8px;
}

.circuito-ubicacion {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 18px;
}

/* INFORMACIÓN DESPLEGABLE */

.circuito-detalles {
    border-top: 1px solid #303030;
    padding-top: 14px;
    margin-top: 25px;
}

.circuito-detalles summary {
    color: #e10600;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

.circuito-detalles summary::-webkit-details-marker {
    display: none;
}

.circuito-detalles summary::after {
    content: "+";
    float: right;
    font-size: 20px;
}

.circuito-detalles[open] summary::after {
    content: "−";
}

.circuito-detalles p {
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
    margin-top: 14px;
}

/* TABLETS */

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

/* MÓVILES */

@media (max-width: 600px) {
    .circuitos-grid {
        grid-template-columns: 1fr;
    }

    .circuitos-page {
        width: 94%;
    }

    .circuitos-intro h1 {
        font-size: 26px;
    }
}
