html,
body {
    height: 100vh;
    font-family: 'Century Gothic', sans-serif;
}

body {
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    /*background-color: black;*/
}

/* CONTENEDOR GLOBAL DE LAS TARJETAS */
.card-container {
    display: grid;
    gap: 50px;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    padding: 100px 150px;
}

/* CONTENDOR DE LA IMÁGEN DE CABECERA DE LA TARJETA*/
.cont-card-image {
    background-color: #000000;
    border-radius: 10px;
    height: auto;
    min-height: 145px;
    display: flex;
    justify-content: center;
    padding: 0 60px;
}

/* LOGO DEL DISTRIBUIDOR */
.logo-image-card {
    width: 100%;
}

/* IMAGEN DE PREMIUM */
.premium {
    height: 80px;
    width: 50%;
    margin-right: -30px;
    margin-top: 5px;
}

/* TIEMPO QUE TARDA LA ANIMACIÓN DE PREMIUM */
.pulsate-fwd {
    -webkit-animation: pulsate-fwd 2.5s ease-in-out infinite alternate-reverse forwards;
    animation: pulsate-fwd 2.5s ease-in-out infinite alternate-reverse forwards;
}

/* CONTENEDOR DONDE SE ENCUENTRA EL TEXTO Y EL BOTÓN */
.card {
    background-color: #E8E8E8;
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 25px #ffff;
    position: relative;
    box-sizing: border-box;
    /*border: 1px solid #2c3035;*/
    /* Ajustado para que haya tres tarjetas por fila */
}

/* CUERPO DE LA TARJETA */
.card-body {
    background-color: #E8E8E8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* empuja el botón abajo */
}

/* PÁRRAFOS ACCIONANDNO A LA ORDEN QUE LE DA EL CUERPO DE LA TARJETA */
.card-body p {
    margin: 0.1em 0 0.1em 0;
    padding: 0;
}

/*BOTÓN ACCIONANDNO A LA ORDEN QUE LE DA EL CUERPO DE LA TARJETA */
.card-body a.btn-mapa {
    margin-top: auto;
}

/* TÍTULO DE DISTRIBUIDORES */
.card h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
}

/* INFORMACIÓN DE LA TARJETA */
.card-text {
    font-size: 14px;
    color: #000000ff;
    margin-bottom: 5px;
}

.enlace {
    color: #000000;
    font-size: 14px;
}

/* BOTÓN QUE MOSTRARA EL MAPA DE CADA DISTRIBUIDOR */
.btn-mapa {
    display: inline-block;
    width: 45%;
    margin: 0 auto;
    padding: 0px 1px;
    font-size: 1em;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    cursor: pointer;
    background-color: #000000;
    display: flex;
    justify-content: center;
    /* eje X */
    align-items: center;
    /* eje Y */
}

::-webkit-scrollbar {
    display: none;
}

/* ES LA ESCALA (ZOOM) QUE HACE LA IMAGEN DE "PREMIUM" */
@-webkit-keyframes pulsate-fwd {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    50% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes pulsate-fwd {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    50% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

/*======================================================= PANTALLA DE CELULARES PEQUEÑOS =======================================================*/
@media (max-width: 320px) {

    /* BARRA DE BUSQUEDA */
    .fixed-top {
        position: static;
        top: 0;
        right: 0;
        left: 0;
        z-index: 10;
    }

    /* CONTENEDOR PRINCIPA DE LAS TARJETAS */
    .card-container {
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        padding: 50px 20px;
    }

    /* CONTENEDOR DONDE SE ENCUENTRA EL TEXTO Y EL BOTÓN */
    .card {
        width: 80%;
    }

    /* TÍTULO DE DISTRIBUIDORES */
    .card h5 {
        font-size: 16px;
        font-weight: 600;
    }

    /* INFORMACIÓN */
    .card-text {
        font-size: 12px;
        color: #000000ff;
        margin-bottom: 5px;
    }

    .enlace {
        color: #000000;
        font-size: 12px;
    }

    /* CONTENEDOR PRINCIPA DE LAS TARJETAS */
    .card-container {
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        padding: 0 20px;
    }
}

/*======================================================= PANTALLA DE CELUALRES REGULARES =======================================================*/
@media (max-width: 480px) {

    .fixed-top {
        position: static;
        top: 0;
        right: 0;
        left: 0;
        z-index: 10;
    }

    .card-container {
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        padding: 50px 20px;
    }

    .card {
        width: 100%;
    }

    .card h5 {
        font-size: 16px;
        font-weight: 600;
    }

    .card-text {
        font-size: 12px;
        color: #000000ff;
        margin-bottom: 5px;
    }

    .enlace {
        color: #000000;
        font-size: 12px;
    }
}

/*======================================================= PANTALLA DE TABLET Y LAPTOPS =======================================================*/
@media (min-width: 768px) and (max-width: 1024px) {

    .fixed-top {
        position: static;
        top: 0;
        right: 0;
        left: 0;
        z-index: 10;
    }

    .card-container {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        padding: 50px 50px;
    }

    .card {
        width: 100%;
        height: 500px;
    }
}

/*======================================================= PANTALLA DE LAPTOPS Y COMPUTADORAS GRANDES =======================================================*/
@media (min-width: 1200px) and (max-width: 1439px) {

    .fixed-top {
        position: static;
        top: 0;
        right: 0;
        left: 0;
        z-index: 10;
    }

    .card-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        gap: 25px;
        padding: 50px 40px;
    }

    .card {
        width: 100%;
        height: 415px;
    }

    .cont-card-image {
        width: 100%;
        display: flex;
        justify-content: center;
        justify-items: center;
        padding: 20px 40px;
    }

    .logo-image-card {
        width: 100%;
    }

    .premium {
        height: 80px;
        width: 40%;
        margin-right: -10px;
        margin-top: -15px;
    }

    .card-body p {
        margin: 0.1em 0 0.1em 0;
        padding: 0;
    }

    .card h5 {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #000000;
    }

    .card-text {
        font-size: 12px;
        color: #000000ff;
        margin-bottom: 5px;
    }

    .enlace {
        color: #000000;
        font-size: 12px;
    }

    .btn-mapa {
        width: 60%;
        font-size: 16px;
        margin: 0 auto;
    }
}