/* ============================
   NUESTRAS MARCAS PAGE
   ============================ */
.marcas-hero {
    background-image: url('../assets/img/hero4.jpg');
}

/* ============================
   MURO DE MARCAS
   ============================ */
.marcas-wall {
    padding: 1rem 5% 6rem;
    max-width: 1300px;
    margin: 0 auto;
}

.marcas-wall__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.marca-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    padding: 2rem 1.5rem;
    background: var(--black-soft);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s var(--ease-smooth);
}

.marca-card:hover,
.marca-card:focus-visible {
    border-color: rgba(197, 160, 89, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.marca-card__logo-plate {
    width: 100%;
    height: 76px;
    background: #EDE7DB;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem;
    transition: background 0.4s var(--ease-smooth);
}

.marca-card:hover .marca-card__logo-plate,
.marca-card:focus-visible .marca-card__logo-plate {
    background: #F7F4EC;
}

.marca-card__logo-plate img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Los logos vienen en distintos tonos/calidad; opacity de reposo unifica
       el muro y el hover revela el color real del logo. */
    opacity: 0.88;
    transition: opacity 0.4s var(--ease-smooth);
}

.marca-card:hover .marca-card__logo-plate img,
.marca-card:focus-visible .marca-card__logo-plate img {
    opacity: 1;
}

.marca-card__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--white);
}

.marca-card__tag {
    font-size: 0.7rem;
    letter-spacing: 0.04rem;
    color: var(--white-muted);
    line-height: 1.4;
}

/* ============================
   MARCAS DESTACADAS (deep-dive)
   ============================ */
.marcas-destacadas {
    padding: 5rem 5% 6rem;
    background: var(--black-soft);
}

.marca-feature {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto 6rem;
}

.marca-feature:last-child {
    margin-bottom: 0;
}

.marca-feature--reverse {
    grid-template-columns: 1.2fr 0.8fr;
}

.marca-feature--reverse .marca-feature__visual {
    order: 2;
}

.marca-feature__visual {
    display: flex;
}

.marca-feature__logo-plate {
    width: 100%;
    aspect-ratio: 4/3;
    background: #EDE7DB;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.marca-feature__logo-plate img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.marca-feature__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.2rem;
}

.marca-feature .btn {
    margin-top: 0.5rem;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .marca-feature,
    .marca-feature--reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .marca-feature--reverse .marca-feature__visual {
        order: 0;
    }

    .marca-feature__logo-plate {
        max-width: 380px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .marcas-wall {
        padding: 1rem 4% 4rem;
    }

    .marcas-wall__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .marca-card {
        padding: 1.5rem 1rem;
    }

    .marca-card__logo-plate {
        height: 60px;
    }

    .marcas-destacadas {
        padding: 4rem 4%;
    }

    .marca-feature {
        margin-bottom: 4rem;
    }
}
