@charset "utf-8";

/* =====================================================
   MARCAS.CSS
   CSS EXCLUSIVO DE marcas.html
   ===================================================== */


/* =====================================================
   SECCIÓN MARCAS
   ===================================================== */

.marcas-seccion {
    padding: 4rem 0;
}


/* =====================================================
   GRID DE MARCAS
   ===================================================== */

.marcas-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 28px;

    align-items: stretch;
}


/* =====================================================
   TARJETAS
   TODAS LAS MARCAS UTILIZAN .marcas-card
   ===================================================== */

.marcas-card {
    display: flex;

    flex-direction: column;

    align-items: center;

    width: 100%;

    min-height: 330px;

    height: 100%;

    padding: 30px 25px;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 16px;

    text-decoration: none;

    color: #333333;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .08);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


/* =====================================================
   LOGO - CONTENEDOR
   ===================================================== */

.marcas-logo {
    width: 115px;

    height: 75px;

    flex: 0 0 75px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 20px auto;

    box-sizing: border-box;
}


/* =====================================================
   LOGO - IMAGEN DENTRO DEL CONTENEDOR
   ===================================================== */

.marcas-logo img {
    display: block;

    width: 115px;

    height: 75px;

    object-fit: contain;

    margin: 0;
}


/* =====================================================
   LOGOS QUE NO UTILIZAN .marcas-logo
   ===================================================== */

.marcas-card > img {
    display: block;

    width: 115px;

    height: 75px;

    object-fit: contain;

    flex: 0 0 75px;

    margin: 0 auto 20px auto;
}


/* =====================================================
   TÍTULOS
   ===================================================== */

.marcas-card h2,
.marcas-card h3 {
    width: 100%;

    margin: 0 0 15px 0;

    padding: 0;

    color: #003b80;

    font-size: 1.25rem;

    font-weight: 700;

    letter-spacing: 1px;

    line-height: 1.3;

    text-align: center;

    flex-shrink: 0;
}


/* =====================================================
   DESCRIPCIÓN
   ===================================================== */

.marcas-card p {
    width: 100%;

    max-width: 430px;

    margin: 0 0 25px 0;

    padding: 0;

    color: #666666;

    font-size: .95rem;

    font-weight: 400;

    line-height: 1.6;

    text-align: center;

    /*
     * Ocupa todo el espacio disponible.
     * Esto permite que todos los botones
     * queden exactamente a la misma altura.
     */
    flex: 1 1 auto;
}


/* =====================================================
   BOTÓN
   ===================================================== */

.marcas-boton {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 40px;

    margin-top: auto;

    padding: 10px 22px;

    box-sizing: border-box;

    border-radius: 6px;

    background: #005cb9;

    color: #ffffff;

    font-size: .85rem;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: .5px;

    text-align: center;

    white-space: nowrap;

    text-decoration: none;

    flex-shrink: 0;

    transition:
        background .2s ease,
        transform .2s ease;
}


/* =====================================================
   HOVER TARJETA
   ===================================================== */

.marcas-card:hover {
    transform: translateY(-6px);

    background: #ffffff;

    color: #333333;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .12);
}


/* =====================================================
   HOVER BOTÓN
   ===================================================== */

.marcas-card:hover .marcas-boton {
    background: #003b80;

    transform: translateY(-1px);
}


/* =====================================================
   MÓVIL
   ===================================================== */

@media screen and (max-width: 736px) {

    .marcas-seccion {
        padding: 3rem 0;
    }


    .marcas-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .marcas-card {
        width: 100%;

        min-height: 300px;

        height: auto;

        padding: 25px 20px;
    }


    .marcas-logo {
        width: 105px;

        height: 65px;

        flex-basis: 65px;

        margin-bottom: 20px;
    }


    .marcas-logo img {
        width: 105px;

        height: 65px;
    }


    .marcas-card > img {
        width: 105px;

        height: 65px;

        flex-basis: 65px;

        margin-bottom: 20px;
    }


    .marcas-card h2,
    .marcas-card h3 {
        font-size: 1.15rem;
    }


    .marcas-card p {
        font-size: .9rem;

        line-height: 1.55;
    }


    .marcas-boton {
        min-height: 40px;

        padding: 10px 20px;
    }

}