/* styles-dark.css */

:root {
    transition: background-color 0.3s, color 0.3s;
}

body, header, footer, h1, h2, h3, h4, h5, h6, p, a, li, btn {
    transition: background-color 0.5s ease, color 2.2s ease;
}

.dark-theme #servicios {
    background-color: #090909;
    color: #ddd;
}

.dark-theme #beneficios,
.dark-theme #productos,
.dark-theme #marcas,
.dark-theme #lo-mas-vendido,
.dark-theme #mujeres,
.dark-theme #hombres,
.dark-theme #contacto-wa,
.dark-theme #cart-live-section,
.dark-theme #costo-envio {
    background-color: #090909;
    color: #ddd;
}

.dark-theme p {
    color: #ccc;
}

.dark-theme .old-price {
    color: #ff8888;
}

.dark-theme .new-price {
    color: #50C878;
}

.dark-theme footer {
    background-color: #090909;
    color: #ddd;
    border-top: 0px solid #666;
}

.dark-theme .footer-info h3 {
    color: #ccc;
}

.dark-theme .footer-social a {
    color: #ccc;
    transition: color 0.3s;
}

.dark-theme .footer-social a:hover {
    color: #f4b601;
}

.dark-theme footer .footer-info h3, .dark-theme footer .footer-info p {
    color: #ccc;
}


.dark-theme {
    background-color: #000;
    color: #ccc;
}

.dark-theme body {
    background-color: #000;
    color: #ccc;
}

.dark-theme header {
    background-color: #000;
}

.dark-theme nav ul {
    background-color: #000;
}

@media (min-width: 769px) {
    .dark-theme nav ul {
        background-color: transparent;
    }
}

.dark-theme nav ul li a {
    color: #ddd;
}

.dark-theme nav ul li a:hover {
    background-color: #f4b601;
    color: #fff;
}

.dark-theme .btn-primary {
    background-color: #ffeeba;
    border-color: #ffeeba;
    color: #fff;
}

.dark-theme .btn-primary:hover {
    background-color: #ffeeba;
    border-color: #ffeeba;
}

.dark-theme .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.dark-theme .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.dark-theme #hero {
    background-color: #090909;
    color: #ddd;
}

.dark-theme .servicio, .dark-theme .beneficio, .dark-theme .producto, .dark-theme .marca {
    background-color: #090909;
    color: #ddd;
}

.dark-theme .servicio i {
    color: #f4b601;
}

.dark-theme .beneficio i {
    color: #f4b601;
}

.dark-theme h2, .dark-theme h3 {
    color: #fff;
}

.dark-theme a {
    color: #ebc34b;
}

.dark-theme a:hover {
    color: #ffeeba;
}

.dark-theme .btn {
    background-color: #f4b601;
    color: #fff;
}

.dark-theme .btn:hover {
    background-color: #f4b701a8;
}


body.dark-theme .theme-image.muscletech {
    content: url('images/marcas/muscletech_dark.webp');
    transition: filter 0.5s ease-in-out, transform 0.5s ease-in-out;
}

body.dark-theme .theme-image.nutrex {
    content: url('images/marcas/nutrex_dark.webp');
}

body.dark-theme .dark-balloon.nutrex {
    content: url('images/marcas/nutrex_balloon_dark.webp');
}

body.dark-theme .theme-image.optimumnutrition {
    content: url('images/marcas/optimum-nutrition_dark.webp');
}

body.dark-theme .dark-balloon.optimumnutrition {
    content: url('images/marcas/optimum-nutrition_balloon_dark.webp');
}

body.dark-theme .dark-balloon.musclesport {
    content: url('images/marcas/musclesport_balloon_dark.webp');
}

body.dark-theme .theme-image.ghost {
    content: url('images/marcas/ghost_dark.webp');
}

body.dark-theme .dark-balloon.ghost {
    content: url('images/marcas/ghost_balloon_dark.webp');
}

body.dark-theme .theme-image.ryse {
    content: url('images/marcas/ryse_dark.webp');
}

body.dark-theme .dark-balloon.ryse {
    content: url('images/marcas/ryse_balloon_dark.webp');
}

body.dark-theme .theme-image.saschafitness {
    content: url('images/marcas/saschafitness_dark.webp');
}

body.dark-theme .dark-balloon.saschafitness {
    content: url('images/marcas/saschafitness_balloon_dark.webp');
}


.theme-image {
  transition: filter 1s ease-in-out, transform 1s ease-in-out;
}

body.dark-theme .theme-image {
  transition: filter 1s ease-in-out, transform 1s ease-in-out;
}

body.normal-theme .theme-image {
  filter: brightness(100%);
  transform: scale(1);
  transition: filter 1s ease-in-out, transform 1s ease-in-out;
}

body.dark-theme .theme-image {
  filter: brightness(100%);
  transform: scale(0.99);
  transition: filter 1s ease-in-out, transform 1s ease-in-out;
}


.theme-img {
  transition: filter 1s ease-in-out, transform 1s ease-in-out;
}

body.dark-theme .theme-img {
  transition: filter 1s ease-in-out, transform 1s ease-in-out;
}

body.normal-theme .theme-img {
  filter: brightness(100%);
  transform: scale(1);
  transition: filter 1s ease-in-out, transform 1s ease-in-out;
}

body.dark-theme .theme-img {
  filter: brightness(100%);
  transform: scale(0.99);
  transition: filter 1s ease-in-out, transform 1s ease-in-out;
}


#cart-container {
    position: fixed;
    top: 35px;
    left: 50%;
    width: 336px;
    height: auto;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateX(-200%);
    pointer-events: none; /* Desactivar interacción cuando está oculto */
}

/* Mostrar el carrito */
#cart-container.show {
    opacity: 1;
    transform: translateX(-50%); /* Centra el carrito horizontalmente */
    pointer-events: auto; /* Reactivar interacción cuando está visible */
}

/* Ocultar el carrito */
#cart-container.hidden {
    opacity: 0;
    transform: translateX(-200%); /* Asegura que esté muy a la izquierda, fuera de la pantalla */
    pointer-events: none; /* Desactivar interacción */
}

#cart {
    padding: 20px;
}

#cart h2 {
    margin-top: 0;
    font-size: 24px;
}

#cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

#cart-total {
    font-size: 18px;
    margin-bottom: 20px;
}

#checkout-button {
    width: 100%;
    padding: 10px;
    background-color: #f4b601;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

#checkout-button:hover {
    background-color: #ffeeba;
}

/* Estilos para el contenido del carrito */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cart-item img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

.cart-item-name {
    flex: 1;
    margin-left: 10px;
}

.cart-item-price {
    font-weight: bold;
}

.cart-item-remove {
    color: #f4b601;
    cursor: pointer;
    font-size: 20px;
}

.cart-item-remove:hover {
    text-decoration: underline;
}

/* Estilo para el ícono del carrito en el encabezado para el tema claro */
.cart-icon {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 42px; /* Tamaño del ícono */
    height: 42px; /* Tamaño del ícono */
    background-color: #ffffff; /* Fondo blanco para el tema claro */
    border-radius: 50%; /* Forma circular */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em; /* Tamaño de la fuente */
    color: #ffeeba; /* Color rosa claro para el ícono */
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Sombra más prominente */
    transition: background-color 0.3s, color 0.3s, transform 0.3s; /* Transiciones suaves */
}

.cart-icon:hover {
    background-color: #ffffff; /* Fondo blanco al pasar el mouse */
    color: #f4b601; /* Color rosa intenso al pasar el mouse */
    transform: scale(1.1); /* Aumento de tamaño al pasar el mouse */
}

/* Estilo para el contador del carrito para el tema claro */
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f4b601; /* Fondo rosa intenso */
    color: #ffffff; /* Color blanco para el texto */
    border-radius: 50%;
    padding: 2px 6px; /* Ajustado para el tamaño del contador */
    font-size: 0.75em; /* Tamaño de fuente ajustado */
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2); /* Sombra más prominente */
    border: 2px solid #ffffff; /* Borde blanco para resaltar */
}

/* Estilo para el contador del carrito al hacer clic en el tema claro */
.cart-count:active {
    background-color: #ffffff; /* Fondo blanco al hacer clic */
    color: #f4b601; /* Color rosa intenso para el texto al hacer clic */
    border: 2px solid #f4b601; /* Borde rosa intenso para resaltar al hacer clic */
}


/* Estilo del contenedor del carrito para el tema oscuro */
.dark-theme #cart-container {
    background-color: rgba(9, 9, 9, 0.69);  /* Color #090909 con opacidad 0.69 */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* Estilo del contenido del carrito */
.dark-theme #cart {
    color: #ddd;
}

/* Título del carrito */
.dark-theme #cart h2 {
    color: #fff;
}

/* Total del carrito */
.dark-theme #cart-total {
    color: #ddd;
}

/* Botón de checkout */
.dark-theme #checkout-button {
    background-color: #f4b601;
    color: #fff;
    transition: background-color 0.3s;
}

.dark-theme #checkout-button:hover {
    background-color: #ffeeba; /* Efecto hover con un tono más claro de dorado */
}

/* Nombre del producto */
.dark-theme .cart-item-name {
    flex: 1;
    color: #ddd; /* Color de texto */
}

/* Precio del producto */
.dark-theme .cart-item-price {
    font-weight: bold;
    color: #50C878; /* Color verde esmeralda */
}

/* Botón para eliminar el producto */
.dark-theme .cart-item-remove {
    color: #ffeeba; /* Color rojo suave */
}

.dark-theme .cart-item-remove:hover {
    text-decoration: underline;
}

/* Estilo para el ícono del carrito en el encabezado para el tema oscuro */
.dark-theme .cart-icon {
    background-color: #111; /* Fondo oscuro para el tema oscuro */
    color: #ffeeba; /* Color dorado claro para el ícono */
    z-index: 1001;
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.3); /* Sombra más prominente */
    transition: background-color 0.3s, color 0.3s, transform 0.3s; /* Transiciones suaves */
}

.dark-theme .cart-icon:hover {
    background-color: #121212; /* Fondo ligeramente más claro al pasar el mouse */
    color: #f4b601; /* Color dorado más brillante al pasar el mouse */
}

/* Estilo para el contador del carrito para el tema oscuro */
.dark-theme .cart-count {
    background-color: #f4b601; /* Fondo dorado */
    color: #111; /* Color oscuro para el texto */
    font-weight: bold;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3); /* Sombra más prominente */
    border: 2px solid #222; /* Borde oscuro para resaltar */
}

/* Estilo para el contador del carrito al hacer clic en el tema oscuro */
.dark-theme .cart-count:active {
    background-color: #e3a007; /* Fondo dorado más oscuro al hacer clic */
    color: #111; /* Color oscuro para el texto al hacer clic */
    border: 2px solid #e3a007; /* Borde dorado más oscuro para resaltar al hacer clic */
}


/* Sombras para el tema oscuro */
.dark-theme .servicio:hover, 
.dark-theme .beneficio:hover, 
.dark-theme .producto:hover, 
.dark-theme .marca:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.9); /* Sombra dorada más intensa al hacer hover */
}


.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
}


/* Animación del destello principal, tamaño reducido */
@keyframes destelloLuz {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 
            0 0 8px rgba(255, 255, 255, 0.8),  /* Ajustamos las sombras para que sean más pequeñas */
            0 0 20px rgba(255, 255, 255, 0.6),  
            0 0 40px rgba(255, 215, 0, 0.5),  
            0 0 60px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.9),  
            0 0 40px rgba(255, 255, 255, 0.7), 
            0 0 60px rgba(255, 215, 0, 0.6),
            0 0 80px rgba(255, 215, 0, 0.5);
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
        box-shadow: 
            0 0 40px rgba(255, 255, 255, 1),    
            0 0 60px rgba(255, 255, 255, 0.8), 
            0 0 80px rgba(255, 215, 0, 0.7),
            0 0 100px rgba(255, 215, 0, 0.6);
    }
}

.efecto-destello-luz {
    position: fixed;
    width: 70px;  /* Hacemos el destello más pequeño */
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    animation: destelloLuz 1.5s ease-out forwards;
    z-index: 10000;
}

/* Animación para las estrellitas, tamaño reducido */
@keyframes estrellita {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y)) scale(0.5); /* Las estrellitas se hacen más pequeñas al desvanecerse */
    }
}

.estrellita {
    position: fixed;
    width: 3px;  /* Estrellitas más pequeñas */
    height: 3px;
    background-color: rgba(255, 255, 255, 1); /* Color blanco para las estrellitas */
    border-radius: 50%;
    pointer-events: none;
    animation: estrellita 1.5s ease-out forwards;
    z-index: 10000;
}


/* Productos fuera de stock */
.producto[data-product-id].out-of-stock img {
    opacity: 0.7; /* Difumina solo las imágenes de los productos sin stock */
}

/* Botón deshabilitado */
.btn-comprar.disabled {
    opacity: 0.7;
    pointer-events: none;
    cursor: not-allowed;
}


.producto.out-of-stock {
    opacity: 0.7; /* Difuminar producto */
    pointer-events: none; /* Desactivar interacciones */
}

.producto .btn-comprar.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}


/* Deshabilitar la selección de imágenes */
img.disable-right-click {
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Non-prefixed version */
}

/* Deshabilitar la selección de imágenes */
img {
    -webkit-user-select: none; /* Para Safari */
    -moz-user-select: none; /* Para Firefox */
    -ms-user-select: none; /* Para IE/Edge */
    user-select: none; /* Para otros navegadores */
}

/* Opcional: Prevenir cualquier interacción directa con las imágenes si es necesario */
img.disable-right-click {
    pointer-events: none; /* Evita interacción directa con el ratón, si es necesario */
}


/* Overlay en imágenes */
img {
    position: relative;
    display: inline-block;
}

img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0); /* Transparente */
    z-index: 1;
    pointer-events: none; /* No bloquea la interacción */
}


img {
    will-change: transform;
}


body.screen-overlay::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9); /* Ajustar la opacidad */
    pointer-events: none;
    z-index: 9999;
}


.modalt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6); /* Fondo oscuro translúcido */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modalt.show {
    opacity: 1;
    visibility: visible;
}

.modalt-content {
    background: var(--modal-bg-color-light, #fff); /* Claro por defecto */
    color: var(--text-color-light, #000); /* Texto oscuro por defecto */
    padding: 15px; /* Reduce el padding para móviles */
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh; /* Limita la altura al 90% de la pantalla */
    overflow-y: auto; /* Habilita desplazamiento si el contenido es muy largo */
    box-sizing: border-box; /* Asegura que el padding no exceda el ancho total */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--close-button-color, #999);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--close-button-hover-color, #000);
}

.modalt-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #444; /* Ajusta al tema */
}

.modalt-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666; /* Ajusta al tema */
}

.modalt-content a {
    color: var(--link-color, #f4b601);
    text-decoration: none;
    transition: color 0.3s;
}

.modalt-content a:hover {
    color: var(--link-hover-color, #f4b601);
    text-decoration: underline;
}


.dark-theme .modalt-content {
    background: rgba(9, 9, 9, 0.95); /* Fondo más oscuro */
    color: #f4f4f4; /* Texto más claro */
}

.dark-theme .modalt-content h3 {
    color: #ffffff; /* Títulos claros */
}

.dark-theme .modalt-content p {
    color: #e0e0e0; /* Texto ligeramente gris claro */
}

.dark-theme .modalt-content a {
    color: #f4b601; /* Color dorado para enlaces */
}

.dark-theme .modalt-content a:hover {
    color: #ffd700; /* Enlaces más brillantes al pasar el mouse */
}

.small-text {
    font-size: 12px; /* Puedes ajustar el tamaño según lo necesites */
}


@media (max-width: 768px) {
    .modalt-content {
        width: 95%; /* Ocupa casi todo el ancho en móviles */
        max-width: none; /* Elimina el ancho máximo fijo */
        padding: 10px; /* Reduce el espacio interno */
    }

    .modalt-content h3 {
        font-size: 1em; /* Reduce el tamaño de los títulos */
        margin-top: 10px; /* Reduce el margen superior */
    }

    .modalt-content p {
        font-size: 0.9em; /* Reduce ligeramente el tamaño del texto */
        margin-bottom: 10px; /* Reduce el espacio entre párrafos */
    }

    .close-button {
        font-size: 20px; /* Reduce el tamaño del botón de cierre */
        top: 8px; /* Ajusta la posición del botón de cierre */
        right: 8px;
    }
}


@media (max-width: 768px) {
    #hero, #beneficios, #productos, #marcas, #lo-mas-vendido, #mujeres, #hombres, #contacto-wa, #cart-live-section, #costo-envio {
        scroll-margin-top: 155px;
    }

    section {
        scroll-margin-top: 155px;
    }

    #cart-container {
        width: 300px;
        transform: translateX(-150%);
    }

    #cart-container.hidden {
        opacity: 0;
        transform: translateX(-150%);
    }

    #cart-items {
        max-height: 260px;
        overflow-y: auto;
        margin-bottom: 20px;
    }
}


@media (min-width: 769px) and (max-width: 1440px) {
    #hero, #beneficios, #productos, #marcas, #lo-mas-vendido, #mujeres, #hombres, #contacto-wa, #cart-live-section, #costo-envio {
        scroll-margin-top: 155px;
    }

    section {
        scroll-margin-top: 155px;
    }

    #cart-items {
        max-height: 270px;
        overflow-y: auto;
        margin-bottom: 20px;
    }
}

@media (min-width: 1441px) {
    #hero, #beneficios, #productos, #marcas, #lo-mas-vendido, #mujeres, #hombres, #contacto-wa, #cart-live-section, #costo-envio {
        scroll-margin-top: 200px;
    }

    section {
        scroll-margin-top: 200px;
    }

    #cart-items {
        max-height: 300px;
        overflow-y: auto;
        margin-bottom: 20px;
    }
}


/* Estilos para los elementos de Halloween */
.halloween-element {
    position: fixed;
    top: 0;
    z-index: 9999;
    pointer-events: none; /* Para que no interfiera con las interacciones del usuario */
    animation: float 10s linear infinite;
    opacity: 0.8;
}

@keyframes float {
    0% {
        transform: translateX(-100px) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(300px) rotate(360deg);
        opacity: 0;
    }
}

/* Opciones para variar el tamaño de los elementos */
.halloween-element.small {
    font-size: 20px;
}

.halloween-element.medium {
    font-size: 25px;
}

.halloween-element.large {
    font-size: 30px;
}

/* Animación alternativa para elementos que vuelan en dirección opuesta */
@keyframes float-reverse {
    0% {
        transform: translateX(100vw) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100px) translateY(300px) rotate(-360deg);
        opacity: 0;
    }
}

halloween-element {
    /* Cambiar la duración de la animación */
    animation: float 20s linear infinite;
}

.halloween-element.reverse {
    animation: float-reverse 24s linear infinite;
}

/* Animación diagonal hacia arriba */
@keyframes float-diagonal-up {
    0% {
        transform: translateX(-100px) translateY(300px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(0px) rotate(360deg);
        opacity: 0;
    }
}

.halloween-element.diagonal-up {
    animation: float-diagonal-up 18s linear infinite;
}

