/* Glocbal loader */
#global-loader {
    position: fixed; /* Posición fija en la pantalla */
    z-index: 50000; /* Z-index para asegurar que esté por encima de otros elementos */
    background: #fff; /* Fondo blanco */
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%; /* Altura completa */
    width: 100%; /* Anchura completa */
    margin: 0 auto; /* Centrado horizontal */
    text-align: center; /* Alineación del texto */
}

.loader-img {
    position: absolute; /* Posición absoluta */
    right: 0;
    bottom: 0;
    top: 43%; /* Centrado vertical aproximado */
    left: 0;
    margin: 0 auto; /* Centrado horizontal */
    text-align: center; /* Alineación del texto */
}

/* 404 */
.misc-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.misc-bg-wrapper {
    position: relative;
}
.misc-bg-wrapper img {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: -1;
}

@media (max-width: 1499.98px) {
    .misc-bg-wrapper img {
        height: 250px;
    }
    .misc-under-maintenance-bg-wrapper img {
        height: 270px !important;
    }
}

body {
    background: #ccc;
}

.container {
    max-width: 90vw;
    margin: 0 auto;
    padding: 0;
}

.position-relative {
    position: relative;
}

#magazine {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.img-container {
    position: relative;
    width: 100%;
}

.img-container img {
    width: 100%;
    height: auto;
    display: block;
    z-index: 1; /* Colocar la imagen en un nivel más bajo */
}

/* Estilos de los botones de navegación */
.nav-button {
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #ccc;
    z-index: 9999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px; /* Bordes redondeados */
    transition: all 0.3s ease;
}

.nav-button:hover,
.nav-button:focus {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#prev-button {
    left: -50px; /* Ajustar para que esté fuera del contenedor */
    top: 50%;
    transform: translateY(-50%);
}

#next-button {
    right: -50px; /* Ajustar para que esté fuera del contenedor */
    top: 50%;
    transform: translateY(-50%);
}

/* Estilos Responsivos */
@media (max-width: 768px) {
    .container {
        max-width: 95vw;
    }

    .product-btn {
        left: 60%;
        top: 20%;
    }

    .video-btn {
        left: 30%;
        top: 75%;
    }

    /* Asegurar que los botones estén siempre en el frente en móviles */
    .nav-button {
        z-index: 10000; /* Más alto aún para móviles */
    }

    /* Ajustar el z-index del contenedor de imágenes también en móviles */
    .img-container img {
        z-index: 1;
    }

    #prev-button {
        left: -30px; /* Ajuste para móviles */
    }

    #next-button {
        right: -30px; /* Ajuste para móviles */
    }

    .nav-button:hover,
    .nav-button:focus {
        transform: none; /* Eliminar transformaciones en móviles */
        box-shadow: none; /* Eliminar sombras en móviles */
    }

    .d-md-inline {
        display: none !important; /* Ocultar el texto en móviles */
    }
}

.footer-container {
    text-align: center;
}
.footer-container a {
    display: inline-block;
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .footer-container {
        text-align: left;
    }
    .footer-container a {
        margin-bottom: 0;
    }
}

/* Para track order */
.text-strikethrough {
    text-decoration: line-through;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.select2-container.select2-container--default.select2-container--open {
    z-index: 5000;
}

.template-customizer-open-btn {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
