/* ==========================================================
   RESPONSIVE.CSS
   TIENDA DE JUEGOS
========================================================== */


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

    .contenedor {
        width: 94%;
    }

    header .contenedor {
        gap: 20px;
    }

    .logo img {
        width: 150px;
    }

    .buscador {
        margin: 0 20px;
    }

    nav ul {
        gap: 18px;
    }

    .slider {
        padding: 18px 0 25px;
    }

    .slider-contenedor {
        width: 94%;
    }

    .slide img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
    }
}


/* ==========================================================
   CELULAR
========================================================== */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }


    /* ======================================================
       CONTENEDOR
    ====================================================== */

    .contenedor {
        width: 92%;
        max-width: none;
    }


    /* ======================================================
       HEADER
    ====================================================== */

    header {
        position: relative;
    }

    header .contenedor {

        display: flex;
        flex-direction: column;

        align-items: center;

        gap: 12px;

        padding: 10px 0 12px;
    }


    /* ======================================================
       LOGO
    ====================================================== */

    .logo {
        width: 100%;

        display: flex;

        justify-content: center;
    }

    .logo img {
        width: 135px !important;
        height: auto !important;
    }


    /* ======================================================
       BUSCADOR
    ====================================================== */

    .buscador {

        width: 100%;

        margin: 0 !important;
    }

    .buscador input {

        width: 100%;

        height: 44px;

        padding: 0 16px;

        font-size: 14px;

        border-radius: 24px;
    }


    /* ======================================================
       MENU
    ====================================================== */

    nav {
        width: 100%;
    }

    nav ul {

        width: 100%;

        display: flex;

        justify-content: center;

        align-items: center;

        flex-wrap: wrap;

        gap: 8px 16px;
    }

    nav a {
        font-size: 13px;
    }


    /* ======================================================
       CARRUSEL
    ====================================================== */

    .slider {

        width: 100%;

        padding: 10px 0 15px;

        background: #f5f5f5;
    }


    .slider-contenedor {

        width: 92% !important;

        max-width: none !important;

        margin: 0 auto !important;

        padding: 0 !important;

        overflow: hidden !important;

        border-radius: 14px;

        box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
    }


    /* ======================================================
       SLIDE
    ====================================================== */

    .slide {

        width: 100% !important;

        height: auto !important;

        min-height: 0 !important;

        max-height: none !important;

        overflow: hidden !important;

        display: none;
    }

    .slide.activo {

        display: block !important;
    }


    /* ======================================================
       IMAGEN DEL BANNER
    ====================================================== */

    .slide img {

        display: block !important;

        width: 100% !important;

        height: auto !important;

        max-width: 100% !important;

        max-height: none !important;

        aspect-ratio: auto !important;

        object-fit: contain !important;

        object-position: center !important;

        padding: 0 !important;

        margin: 0 !important;
    }


    /* ======================================================
       FLECHAS
    ====================================================== */

    .anterior,
    .siguiente {

        width: 36px !important;

        height: 36px !important;

        font-size: 18px !important;

        top: 50%;

        z-index: 10;

        box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
    }

    .anterior {
        left: 7px !important;
    }

    .siguiente {
        right: 7px !important;
    }


    /* ======================================================
       PRODUCTOS
    ====================================================== */

    .productos {

        padding: 16px 0 40px;
    }

    .productos .contenedor {

        width: 92%;
    }

    .productos h2 {

        font-size: 27px;

        margin-bottom: 20px;
    }
}


/* ==========================================================
   CELULARES PEQUEÑOS
========================================================== */

@media (max-width: 480px) {


    /* ======================================================
       HEADER
    ====================================================== */

    header .contenedor {

        padding: 9px 0 11px;

        gap: 10px;
    }


    .logo img {

        width: 130px !important;
    }


    /* ======================================================
       BUSCADOR
    ====================================================== */

    .buscador input {

        height: 43px;

        font-size: 13px;
    }


    /* ======================================================
       MENU
    ====================================================== */

    nav ul {

        gap: 7px 14px;
    }

    nav a {

        font-size: 12px;
    }


    /* ======================================================
       CARRUSEL
    ====================================================== */

    .slider {

        padding: 9px 0 13px;
    }

    .slider-contenedor {

        width: 92% !important;

        border-radius: 12px;
    }


    .slide {

        height: auto !important;

        max-height: none !important;
    }


    .slide img {

        width: 100% !important;

        height: auto !important;

        aspect-ratio: auto !important;

        object-fit: contain !important;
    }


    /* ======================================================
       FLECHAS
    ====================================================== */

    .anterior,
    .siguiente {

        width: 34px !important;

        height: 34px !important;

        font-size: 17px !important;
    }

    .anterior {
        left: 6px !important;
    }

    .siguiente {
        right: 6px !important;
    }


    /* ======================================================
       PRODUCTOS
    ====================================================== */

    .productos {

        padding-top: 14px;
    }

    .productos h2 {

        font-size: 25px;
    }
}

