/* =========================
   GENERAL
========================= */
html, body{
    min-height: 100%;
    margin: 0;
}

body {
    padding-top: 80px;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.main-container {
    max-width: 1200px;
    width: 100%; 
    margin: 0 auto; 
    padding: 0 1rem;
    box-sizing: border-box; 
}

.main-container-2 {
    width: 100%; 
    margin: 0 auto; 
    padding: 0 1rem;
    box-sizing: border-box; 
}


/* =========================================
   FRANJA DE BENEFICIOS
========================================= */

.benefits-bar {
    width: 100%;
    background-color:  #004A91;
    padding: 5px;
}


.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}


/* =========================================
   BENEFICIO
========================================= */

.benefit-item-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: .68rem;
    font-weight: 500;
    white-space: nowrap;
}


.benefit-item-nav i {
    color: #048ABF;
    font-size: 1rem;
}


/* =========================================
   SEPARADORES
========================================= */

.benefit-divider {
    width: 1px;
    height: 18px;
    background-color: #d8dde0;
}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 767px) {

    .benefits-container {

        justify-content: flex-start;

        overflow-x: auto;

        scrollbar-width: none;

        gap: 18px;

        padding: 0 15px;
    }


    .benefits-container::-webkit-scrollbar {
        display: none;
    }


    .benefit-item {
        font-size: .72rem;
    }


    .benefit-item i {
        font-size: .95rem;
    }


    .benefit-divider {
        height: 16px;
    }

}


/* =========================================
   ALERTS
========================================= */

.alert-custom {
    position: fixed;
    top: 90px;
    left: 50%;
    z-index: 9999;

    width: fit-content;
    max-width: 90%;
    min-width: 280px;

    padding: 12px 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 10px;

    font-size: .9rem;
    font-weight: 500;

    transform: translateX(-50%);

    animation: alertAppear .3s ease;
}


/* =========================================
   ÉXITO
========================================= */

.alert-success-custom {
    background-color: #eaf7f0;
    color: #207a4b;
    border: 1px solid #bce5cf;
}

.alert-success-custom i {
    font-size: 1.1rem;
}


/* =========================================
   ERROR
========================================= */

.alert-error-custom {
    background-color: #fdeeee;
    color: #b42323;
    border: 1px solid #f1bcbc;
}

.alert-error-custom i {
    font-size: 1.1rem;
}


/* =========================================
   ANIMACIÓN
========================================= */

@keyframes alertAppear {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

    .alert-custom {
        width: 90%;
        min-width: 0;

        padding: 11px 14px;

        font-size: .85rem;
    }

}


/* ================================
   NAVBAR
================================ */

.navbar {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    padding-top: 0px;
}

/* LOGO */

.logo-navbar {
    height: 55px;
    width: auto;
    object-fit: contain;
}


/* LINKS */

.navbar-nav {
    gap: 15px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 8px;
}

.navbar-nav .nav-link:hover {
    font-size: 18px;
}


/* =========================================
   BUSCADOR
========================================= */

.navbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}


.search-box {
    width: 300px;
    height: 40px;
    background-color: #f3f3f3;
    border-radius: 35px;
    display: flex;
    align-items: center;
    padding: 0 20px 0 30px;
    margin: 0;
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 17px;
    color: #555;
}

.search-box input::placeholder {
    color: #777;
    opacity: 1;
}

.search-box button {
    border: none;
    background: transparent;
    font-size: 23px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-box button:hover{
    color: #378bdc;
}

/* =========================================
   ICONOS
========================================= */

.navbar-icon {
    color: #222;
    font-size: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: .2s;
}

.navbar-icon:hover {
    color: #378bdc;
}


/* BADGE DEL CARRITO */

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    font-size: 10px;
}

/* ================================
   TABLETS Y CELULARES
================================ */

@media (max-width: 767.98px) {

    .navbar {
        min-height: 70px;
    }

    .logo-navbar {
        height: 50px;
    }

    .navbar-collapse {
        padding: 20px 0;
    }

    .navbar-nav {
        gap: 0;
    }

    .navbar-nav .nav-link {
        padding: 12px 5px;
        border-bottom: 1px solid #eee;
    }

     .search-box {
        width: 260px;
        height: 52px;
    }

    .navbar-right {
        gap: 15px;
    }

    .navbar-icon {
        font-size: 25px;
    }

}

.navbar-logo {
    width: 150px;
    height: 60px;
    object-fit: contain;
}
/* ================================
   DROPDOWN PRODUCTOS
================================ */

@media (min-width: 992px) {

    .productos-dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .productos-dropdown:hover .dropdown-toggle {
        color: #333;
    }

}

/*---------------------------------------------------------------------------------------------------------*/

/* ================================
   SUBMENU COLCHONES
================================ */

@media (min-width: 992px) {

    .submenu-parent {
        position: relative;
    }

    .submenu {
        display: none;
        position: absolute;
        top: 0;
        left: 100%;
        min-width: 180px;
        padding: 0.5rem 0;
        margin: 0;
        background-color: #fff;
        border: 1px solid rgba(0, 0, 0, .15);
        border-radius: 0.375rem;
        list-style: none;
        z-index: 1000;
    }

    .submenu-parent:hover > .submenu {
        display: block;
    }

    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .submenu-arrow {
        margin-left: 15px;
        font-size: 20px;
    }

}


/* =========================================
   FOOTER
========================================= */

.footer-principal {
    width: 100%;
    background-color:#004A91;
    color: #fff;
}


/* =========================================
   CONTENEDOR
========================================= */

.footer-container {
    max-width: 1200px;

    margin: 0 auto;

    padding: 55px 30px 45px;

    display: grid;

    grid-template-columns: 1.5fr 1fr 1fr 1fr;

    gap: 50px;
}


/* =========================================
   COLUMNAS
========================================= */

.footer-col {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
}


.footer-col h3 {
    margin: 0 0 18px;

    font-size: 1.05rem;

    font-weight: 600;

    color: #fff;
}


/* =========================================
   MARCA
========================================= */

.footer-brand h3 {
    font-size: 1.5rem;

    margin-bottom: 12px;
}


.footer-brand p {
    max-width: 330px;

    margin: 0;

    color: rgba(255, 255, 255, .75);

    font-size: .9rem;

    line-height: 1.6;
}


/* =========================================
   ENLACES
========================================= */

.footer-col > a {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 11px;

    color: rgba(255, 255, 255, .78);

    text-decoration: none;

    font-size: .88rem;

    transition:
        color .2s ease,
        transform .2s ease;
}


.footer-col > a:hover {
    color: #fff;

    transform: translateX(3px);
}


/* Iconos de contacto */

.footer-col > a i {
    color: #61C7E8;

    font-size: .95rem;
}


/* =========================================
   REDES SOCIALES
========================================= */

.footer-social {
    display: flex;

    gap: 10px;

    margin-top: 22px;
}


.footer-social a {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: rgba(255, 255, 255, .10);

    color: #fff;

    text-decoration: none;

    transition:
        background-color .2s ease,
        transform .2s ease;
}


.footer-social a:hover {
    background-color: #048ABF;

    transform: translateY(-3px);
}


/* =========================================
   PARTE INFERIOR
========================================= */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);

    padding: 18px 20px;

    text-align: center;
}


.footer-bottom p {
    margin: 0;

    color: rgba(255, 255, 255, .6);

    font-size: .75rem;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {

    .footer-container {
        grid-template-columns: repeat(2, 1fr);

        gap: 40px;

        padding: 45px 30px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767.98px) {

    .footer-principal {
        margin-top: 50px;
    }


    .footer-container {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 40px 25px;
    }


    .footer-col {
        align-items: center;

        text-align: center;
    }


    .footer-brand p {
        max-width: 320px;
    }


    .footer-col > a {
        justify-content: center;
    }


    .footer-social {
        justify-content: center;
    }


    .footer-bottom {
        padding: 16px 15px;
    }

}

/* =========================
   PAGINACIÓN E-COMMERCE
========================= */

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 45px 0 25px;
}

/* Contenedor de los botones */
.pagination-container nav {
    width: 100%;
}

.pagination-container .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

/* Botones */
.pagination-container .page-link {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 12px;

    border-radius: 10px !important;

    border: 1px solid #e2e2e2;

    background-color: #ffffff;
    color: #333;

    font-weight: 500;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

    transition: all 0.25s ease;
}

/* Hover */
.pagination-container .page-link:hover {
    background-color: #004A91;
    color: #ffffff;

    border-color: #004A91;

    transform: translateY(-2px);

    box-shadow: 0 5px 14px rgba(0, 74, 145, 0.22);
}

/* Página activa */
.pagination-container .page-item.active .page-link {
    background-color: #004A91;
    border-color: #004A91;

    color: #ffffff;

    font-weight: 600;

    box-shadow: 0 5px 14px rgba(0, 74, 145, 0.25);
}

/* Botones deshabilitados */
.pagination-container .page-item.disabled .page-link {
    background-color: #f5f5f5;
    color: #b0b0b0;

    border-color: #eeeeee;

    box-shadow: none;

    cursor: not-allowed;
}

/* Quitar focus azul de Bootstrap */
.pagination-container .page-link:focus {
    box-shadow: none;
}

/* Responsive */
@media (max-width: 576px) {

    .pagination-container {
        margin-top: 30px;
    }

    .pagination-container .pagination {
        gap: 4px;
    }

    .pagination-container .page-link {
        min-width: 36px;
        height: 36px;

        padding: 0 8px;

        font-size: 0.9rem;

        border-radius: 8px !important;
    }
}
/*SCROLL DE BENEFICIOS EN MOBILE*/
@media (max-width: 778px) {

    .benefits-slider {
        position: relative;
        overflow: hidden;
    }

    .benefits-slider .benefit-item-nav {
        display: none;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .benefits-slider .benefit-item-nav.active {
        display: flex;
        animation: benefitEnter 1.3s ease forwards;
    }

    .benefits-slider .benefit-divider {
        display: none;
    }

}

/* Entra desde la derecha */
@keyframes benefitEnter {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {

    .benefits-slider .benefit-item-nav.leaving {
        display: flex;
        animation: benefitLeave 1.3s ease forwards;
    }

}

@keyframes benefitLeave {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}