:root {
    --color-mavens-rojo: #5C000C;
    --color-mavens-gris: #A0A0A0;
}

body {

    background-image: url(../home-assets/assets/fondo_cruces_1.png) !important;
    background-repeat: no-repeat !important;
    ;
    background-position: top center !important;
    ;



}

h1 {
    display: block;
    color: #1A1A1A;
    font-family: Lora;
    font-size: 5rem;
    font-style: normal;
    font-weight: 500;
    line-height: 5.5rem;
    letter-spacing: -0.4rem;
    text-transform: uppercase;
}


h2 {
    display: block;
    color: #1A1A1A;
    text-align: right;
    font-family: Lora;
    font-size: 2.2rem;
    font-style: normal;
    font-weight: 400;
    /* line-height: 3.2rem; */
    letter-spacing: -0.125rem;
    padding-left: 40%;
}

h2 span.destacada {
    color: #5C000C;
    font-family: Lora;
    font-size: 3rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.25rem;
}

h3 {
    display: block;
    color: rgba(0, 0, 0, 0.47);
    text-align: right;
    font-family: Lora;
    font-size: 1.2rem;
    font-style: normal;

    line-height: normal;
    padding-left: 20%;
    margin-top: 40px;
}

.seccion-equipo {
    display: flex;
    align-items: stretch;
    max-width: 1200px;
    margin: 40px auto 80px auto;
    font-family: 'Lora', serif;
    gap: 20px;
    overflow: hidden;
}

.equipo-label {
    display: flex;
    align-items: flex-start;
    padding-right: 20px;
}

.equipo-label h2 {
    font-size: 3rem;
    color: var(--color-mavens-gris);
    margin: 0;
    line-height: 1;
    font-weight: 400;
    text-transform: lowercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.equipo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    /* Mantienes tu gap */
    width: 100%;
}

.equipo-grid>div {
    width: calc(33.333% - 2px);
    /* 2px por el cálculo del gap */
}

.equipo-card {
    width: calc(33.333% - 2px);
}

/* Añadido display: block para que el enlace <a> se comporte como el <div> original */
.card-imagen-wrapper {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f4f4;
    text-decoration: none;
    /* Quitamos subrayado si lo hubiera */
}

/* Efecto hover opcional en la foto para indicar que es clickeable */
.card-imagen-wrapper:hover img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.card-imagen-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.marca-icono {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    color: white;
}

.equipo-card:nth-child(even) .marca-icono {
    color: var(--color-mavens-rojo);
}

.card-info {
    text-align: right;
    padding-top: 15px;
    padding-bottom: 15px;
}

.card-nombre {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
}

/* Estilos para el enlace del nombre */
.card-nombre a {
    color: inherit;
    /* Hereda el color negro o rojo según le toque */
    text-decoration: none;
    transition: opacity 0.2s;
}

.card-nombre a:hover {
    opacity: 0.8;
}

.equipo-card:nth-child(even) .card-nombre {
    color: var(--color-mavens-rojo);
}

.card-cargo {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .seccion-equipo {
        flex-direction: column;
        padding: 0 20px;
    }

    .equipo-label {
        align-items: flex-start;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .equipo-label h2 {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 2.5rem;
    }

    .equipo-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 15px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .equipo-grid::-webkit-scrollbar {
        display: none;
    }

    .equipo-card {
        flex: 0 0 90%;
        scroll-snap-align: center;
    }
}