/* ====================================================== */
/* SECCIÓN MARCAS – PREMIUM / GLASS LIGHT                 */
/* ====================================================== */

.marcas {
    position: relative;
    padding: 140px 6%;
    text-align: center;
    overflow: hidden;
    color: var(--blanco-hielo);
}

.marcas::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/background-sponsors.png') center/cover no-repeat;
    filter: brightness(0.45) blur(3px);
    z-index: 0;
}

.marcas-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: auto;
}

.marcas-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.marcas-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.65;
}

/* ========================= */
/* GLASS BOX DE MARCAS       */
/* ========================= */

.marcas-glass {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 35px 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    margin-bottom: 45px;
}

/* Si hay 3 sponsors → 3 columnas, si hay 2 → centrados */
.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.marca-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.marca-item img {
    width: 160px;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0px 4px 12px rgba(0,0,0,0.28));
    transition: transform 0.3s ease, opacity 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
}

.marca-item img:hover {
    opacity: 1;
    transform: scale(1.08);
}

/* CTA */
.marcas-cta {
    padding: 14px 36px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 10px;
}

/* Mobile */
@media (max-width: 768px) {

    .marcas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .marca-item img {
        width: 120px;
    }

    .marcas-title {
        font-size: 2rem;
    }

    .marcas-desc {
        font-size: 0.85rem;
    }
}
