* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
    -webkit-tap-highlight-color: transparent; /* Evita el recuadro azul en móviles al tocar */
}
body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0b101e; /* Fondo aún más oscuro, tipo medianoche premium */
    /* Textura tecnológica: Patrón de líneas diagonales cruzadas (circuito/data flow) para un look moderno y profesional */
    background-image:
        linear-gradient(45deg, rgba(30,80,150,0.05) 25%, transparent 25%, transparent 75%, rgba(30,80,150,0.05) 75%, rgba(30,80,150,0.05)),
        linear-gradient(-45deg, rgba(30,80,150,0.05) 25%, transparent 25%, transparent 75%, rgba(30,80,150,0.05) 75%, rgba(30,80,150,0.05));
    background-size: 60px 60px; /* Tamaño de las celdas del patrón */
    background-repeat: repeat;
    background-attachment: fixed; /* Efecto parallax: ancla el fondo a la pantalla */
    padding-top: 120px;
    padding-bottom: 80px; /* Añade espacio al final para la barra de filtros flotante */
    overflow-x: hidden; /* Evita el desbordamiento horizontal y el scroll */
    min-height: 100vh;
    position: relative;
}
 
/* --- INICIO: Fondo animado (Lujo y Exclusividad) --- */
body::before, body::after {
    content: '';
    position: fixed;
    width: 60vw;
    height: 60vw;
    min-width: 500px;
    min-height: 500px;
    border-radius: 50%;
    z-index: -1; /* Se mantiene detrás de todo el contenido */
    filter: blur(150px); /* Desenfoque mayor para que sea ultra-sutil */
    pointer-events: none; /* Para que no interfieran con los clics */
}

body::before {
    top: -20%;
    left: -10%;
    background: #0528c2; /* Dorado/Oro viejo (Combina con tus botones) */
    opacity: 0.12; /* Muy sutil para no distraer, solo da un aura de lujo */
    animation: driftGold 35s ease-in-out infinite alternate;
}

body::after {
    bottom: -20%;
    right: -10%;
    background: #1e3a8a; /* Azul zafiro oscuro, transmite profesionalismo y confianza */
    opacity: 0.15;
    animation: driftBlue 40s ease-in-out infinite alternate;
}

@keyframes driftGold {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5vw, 15vh) scale(1.1); }
    100% { transform: translate(-5vw, 5vh) scale(0.95); }
}

@keyframes driftBlue {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10vw, -10vh) scale(1.15); }
    100% { transform: translate(5vw, -15vh) scale(0.9); }
}
/* --- FIN: Fondo animado (Lujo y Exclusividad) --- */

main{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px; /* Reducido para disminuir el espacio entre filtros y productos */
    margin-top: 80px; /* Reducido para acercar todo al header */
}



h1{
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin: 30px 0px;
}
img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 20px 20px 0px 0px;
}

/* --- INICIO: Estilos para el video del producto --- */
.producto-media video {
    width: 100%; /* Ocupa todo el ancho de su contenedor */
    height: 340px; /* Misma altura que la imagen */
    object-fit: cover; /* Asegura que el video cubra el área sin deformarse */
    border-radius: 20px 20px 0px 0px; /* Mismos bordes redondeados que la imagen */
}

/* --- INICIO: Estilos para la transición suave de video --- */
.producto-media {
    position: relative; /* Necesario para superponer el video sobre la imagen */
    background-color: #141C29; /* Color de fondo por si la imagen tarda en cargar */
}

.producto-media video {
    position: absolute; /* Posiciona el video encima de la imagen */
    top: 0;
    left: 0;
    opacity: 0; /* El video está oculto por defecto */
    transition: opacity 0.4s ease-in-out; /* La transición suave */
}

.producto-media.video-hover video {
    opacity: 1; /* Muestra el video cuando el contenedor tiene la clase 'video-hover' */
}
/* --- FIN: Estilos para la transición suave de video --- */
/* --- INICIO: Estilos para el contenedor de media y el icono de play --- */
.producto-media {
    position: relative; /* Necesario para posicionar el icono de play encima */
}

.play-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3); /* Fondo oscuro semitransparente */
    color: white;
    font-size: 48px; /* Tamaño del icono */
    opacity: 0.8;
    pointer-events: none; /* Evita que el icono intercepte los clics */
    border-radius: 20px 20px 0px 0px;
}
/* --- FIN: Estilos para el icono de play --- */

/* --- INICIO: Badge indicador de video --- */
.video-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(11, 16, 30, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
}

.video-badge i {
    color: #38BDF8; /* Color cian para que resalte elegante */
}

/* Ocultamos el badge cuando se hace hover y el video se reproduce */
.producto-media.video-hover .video-badge,
.media-container:hover .video-badge {
    opacity: 0;
    transform: scale(0.9);
}
/* --- FIN: Badge indicador de video --- */

/* --- INICIO: Botón Inicio cerca del logo --- */
.btn-inicio-logo {
    position: absolute;
    left: 380px; /* Separado del título del logo con un margen amplio */
    top: 35px; /* Alineado verticalmente */
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 100;
}

@media (max-width: 1000px) {
    .btn-inicio-logo {
        display: none !important;
    }
}
/* --- FIN: Botón Inicio cerca del logo --- */

 /* --- INICIO: Banner de Combos y Ofertas --- */
.combo-banner {
    width: 90%;
    max-width: 900px;
    margin: 20px auto;
    background: linear-gradient(135deg, #ffc107, #f76b1c); /* Gradiente dorado/naranja */
    color: #141C29; /* Texto oscuro para contraste */
    border-radius: 15px;
    padding: 20px 25px;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.combo-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.combo-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.combo-banner-icon {
    font-size: 2.5rem;
    color: rgba(0,0,0,0.6);
}

.combo-banner-text {
    flex-grow: 1;
}

.combo-banner-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 0 5px 0;
    color: #141C29;
}

.combo-banner-text p {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.combo-banner-action button {
    background-color: #141C29;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.combo-banner-action button:hover {
    background-color: #000;
}

@media (max-width: 768px) {
    .combo-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .combo-banner-text h3 {
        font-size: 1.2rem;
    }
    .combo-banner-text p {
        font-size: 0.9rem;
    }
}
/* --- FIN: Banner de Combos y Ofertas --- */

/* --- INICIO: Banner de Personalizables --- */
.personalizables-banner {
    width: 90%;
    max-width: 900px;
    margin: 0 auto 20px auto;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); /* Azul elegante premium */
    color: white;
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    animation: fadeIn 0.5s ease-out;
}

.personalizables-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.personalizables-text {
    flex: 1;
    min-width: 250px;
}

.personalizables-text h2 {
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.personalizables-text p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.personalizables-images {
    display: flex;
    gap: 20px;
    font-size: 2.5rem;
    color: #ffc107; /* Dorado IORO para los iconos */
}

/* Si decides usar fotos reales, este código las hará ver como pequeños cuadros con bordes curvos */
.personalizables-images img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .personalizables-content {
        flex-direction: column;
        text-align: center;
    }
    .personalizables-images {
        justify-content: center;
        width: 100%;
    }
}
/* --- FIN: Banner de Personalizables --- */


#contenedorCompra .productosCompra .selector-cantidad{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
    border-radius: 30px;
    border: solid 2px #25D366;
    height: 40px;
    width: 120px;
    background-color: transparent;
}
#precio{
    white-space: nowrap; /* Evita que el precio se divida en dos líneas */
    margin-top: 0;
    background-color: transparent;
}

/* Cantidad de items en el carrito */
#contenedorCompra .productosCompra .carrito-item-cantidad{
    border: none;
    font-size: 18px;
    background-color: transparent;
    display: inline-block;
    width:30px;
    padding: 5px;
    text-align: center;
}

.contenedor{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 20px;
    min-height: 50vh; /* Reducido para evitar el exceso de espacio vacío al final de la página */
    align-items: stretch; /* Permite que las tarjetas de la misma fila se estiren al mismo tamaño */
    align-content: flex-start; /* Agrupa las tarjetas en la parte superior de la pantalla */
}

/* --- INICIO: Animación de fade-in para productos --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- FIN: Animación de fade-in --- */


/* este codigo personaliza las targeta de los productos */
.contenedor>div{
    border-radius: 20px;
    /* --- INICIO: Efecto Glassmorphism rojizo --- */
    background-color: rgba(112, 1, 1, 0.5); /* Rojo semitransparente */
    -webkit-backdrop-filter: blur(10px); /* Para compatibilidad con Safari */
    backdrop-filter: blur(10px); /* El efecto de desenfoque tipo cristal */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.062);
    /* --- FIN: Efecto Glassmorphism --- */
    display: flex;             /* Convierte la tarjeta en un contenedor flexible */
    flex-direction: column;    /* Apila el contenido verticalmente */
   
}
.contenedor>div:hover{
    background-color: #521203f1;
}

.producto {
    animation: fadeIn 0.5s ease-out forwards;
}

.informacion{
    flex-grow: 1; /* Permite que esta sección crezca para llenar el espacio */
    padding: 15px; /* Añade un poco de espacio interno */
    display: flex;
    justify-content: flex-start; /* Agrupa la info arriba para un diseño más limpio */
    align-items: center;
    flex-direction: column;
    gap: 10px; /* Reduce un poco el espacio entre elementos */
}
.informacion>p:first-child{
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    font-weight: 300;
}
.informacion .precio {
    font-size: 20px;
    font-weight: 500;
}

.informacion .descripcion-producto {
    font-size: 14px;
    color: #a2b3c7;
    text-align: center;
    line-height: 1.4;
}

.informacion .precio span{
    font-size: 17px;
    font-weight: 300;
}

.informacion button{
    background-color: #c28005;
    width: 100px;
    height: 35px;
    border-radius: 10px;
    border: none;

    font-size: 16px;
    font-weight: 400; /* Hacemos la letra un poco más gruesa */
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
.informacion button:hover{
    background-color: #2D4263;
}

.informacion button:active{
    transform: scale(0.95); /* Efecto de "presión" */
}

.producto-acciones {
    margin-top: 10px; /* Vuelve a su espaciado natural debajo del contenido */
}

/* --- INICIO: Estilos para la valoración con estrellas --- */
.rating-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars .fa-star {
    font-size: 16px;
    color: #5a6f8a; /* Color para estrellas vacías */
    cursor: pointer;
    transition: color 0.2s;
}

.rating-stars .fa-star.filled,
.rating-stars:hover .fa-star:hover,
.rating-stars .fa-star:hover ~ .fa-star {
    color: #ffc107; /* Color amarillo para estrellas llenas o al pasar el cursor */
}
/* --- FIN: Estilos para la valoración con estrellas --- */

/* --- INICIO: Estilos para el botón de reseñas --- */
.resenas-btn {
    display: inline-block;
    text-decoration: none;
    background-color: #17a2b8; /* Un color cian para diferenciarlo */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    text-align: center;
    transition: background-color 0.2s;
}
.resenas-btn:hover {
    background-color: #117a8b;
}
/* --- FIN: Estilos para el botón de reseñas --- */

.variantes-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* Espacio ultra reducido entre botones para optimizar espacio al máximo */
    margin-top: 5px; /* Ajusta el espacio sobre el contenedor de los botones */
    background-color: transparent;
    width: 100%; /* Permitir que ocupe el ancho disponible de la tarjeta */
    flex-wrap: wrap; /* Permite que si hay muchas tallas, pasen a la línea de abajo */
}


.variante-tipo {
    font-size: 14px;
    font-weight: 50;
}

.variante-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4) !important; /* Borde sutil para enmarcar el tamaño mini */
    color: #ffffff !important;
    padding: 0px 2px !important; /* Forzamos a quitar el relleno innecesario */
    border-radius: 4px !important;
    font-size: 16px !important; /* Forzamos tamaño de letra legible pero mínimo */
    line-height: 1 !important;
    min-width: 20px !important;
    height: 22px !important; /* ¡CRÍTICO! Obliga al botón a ser muy bajito */
    display: inline-flex !important; /* Para que el texto quede centrado perfecto */
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 !important; /* Evita márgenes nativos ocultos */

    
    
} 


.variante-btn:hover:not(:disabled) {
    background-color: #078636;
    color: #141C29;
    font-weight: bold;
}

.variante-btn.selected {
    background-color: #046e2b;
    color: #141C29;
    border-color: #25D366;
    font-weight: bold;
}

/* --- INICIO: Ocultar cantidad de stock en variantes --- */
.variante-btn span, .variante-btn small, .variante-btn b, .variante-btn i {
    display: none !important;
}
/* --- FIN: Ocultar cantidad de stock en variantes --- */


/* --- INICIO: Estilos para Variantes de Color --- */
.variante-btn.color-btn {
    width: 18px !important; /* Protegemos el círculo de color de los cambios de arriba */
    height: 18px !important;
    border-radius: 50% !important;
    min-width: unset !important;
    padding: 0 !important;
    border: 2px solid transparent !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    position: relative;
}
.variante-btn.color-btn.selected {
    border-color: #25D366; /* Borde verde para indicar selección */
    transform: scale(1.15);
}
.variante-btn.color-btn.agotado-color::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 2px;
    background-color: #ff0000;
    transform: translateY(-50%) rotate(45deg);
}
/* --- FIN: Estilos para Variantes de Color --- */


.contenedorCompra, .informacionCompra{
    margin-top: 0px;
   
}
/* Estilos responsivos para la cesta del carrito */
.contenedorCompra {
    display: flex;
    align-items: center; /* Cambiado para centrar verticalmente */
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(51, 51, 51, 0.6);
    flex-direction: row; /* Carrito a la izquierda, formulario a la derecha */
    gap: 40px;
    padding: 20px 0; /* Reducimos un poco el relleno vertical */
    z-index: 1100;
    overflow-y: auto;
}


/* cesta del cliente */
.informacionCompra{
    width: 600px;
    position: relative; /* Necesario para posicionar el botón 'x' absolutamente dentro de él */
    min-height: 660px;
    background-color: #2D4263;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente el contenido */
    justify-content: flex-start;
    padding: 30px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* --- INICIO: Color más claro cuando la tarjeta del carrito está vacía --- */
.informacionCompra.carrito-vacio-bg {
    background-color: #2D4263; /* Un azul más claro y amigable */
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.05);
}

.informacionCompra h2{
    font-weight: 300 !important;
    margin: 50px 0px 0px 50px !important;
    font-size: 32px !important;
    width: 100% !important;
    text-align: left !important;
    color: #fff !important;
}

/* --- INICIO: Logo App en Carrito --- */
.cart-header-logos-container {
    display: none !important; /* Oculto en PC */
}
/* --- FIN: Logo App en Carrito --- */

.x {
    /* --- INICIO: Nuevo estilo y posición para "Seguir Comprando" --- */
    position: relative;
    top: auto;
    left: auto;
    background-color: #25D366; /* Color verde */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-bottom: 20px; /* Espacio debajo del botón */
    z-index: 10;
    box-shadow: none;
}

.x:hover{
    background-color: #20b058; /* Verde más oscuro al pasar el cursor */
}


/* Ajusta el contenedor de productos dentro del carrito */
.productosCompra {
    font-size: 17px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los productos horizontalmente */
    justify-content: flex-start;
    width: 95%; /* Ajusta el ancho para que no sobresalga */
    min-height: 400px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
    position: static; /* Elimina position: relative/absolute */
}

/* Ajusta los productos individuales */
.productosCompra > div {
    margin: 10px 0;
    padding: 20px;
    width: 95%;
    background-color: #1d3253;
    border-bottom: 1px solid #141C29;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
}


/* --- INICIO: Estilos para los botones de cantidad (+/-) en el carrito --- */
.selector-cantidad .sumar-cantidad,
.selector-cantidad .restar-cantidad {
    display: inline-flex; /* Permite centrar el ícono dentro del botón */
    align-items: center;
    justify-content: center;
    width: 28px; /* Ancho del botón */
    height: 28px; /* Alto del botón */
    color: white; /* Color del ícono (+) o (-) */
    border-radius: 50%; /* Hace los botones circulares */
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px; /* Tamaño del ícono */
}

.selector-cantidad .sumar-cantidad {
    background-color: #28a745; /* Verde para sumar */
}

.selector-cantidad .sumar-cantidad:hover {
    background-color: #218838; /* Verde más oscuro al pasar el cursor */
}

.selector-cantidad .restar-cantidad {
    background-color: #dc3545; /* Rojo para restar */
}

.selector-cantidad .restar-cantidad:hover {
    background-color: #c82333; /* Rojo más oscuro al pasar el cursor */
}
/* --- FIN: Estilos para los botones de cantidad --- */

.productosCompra::-webkit-scrollbar{
    width: 7px;
    background-color: #141C29;
    border-radius: 5px;
}

.productosCompra::-webkit-scrollbar-thumb{
    background: white ;
    border-radius: 3px;
}

.carrito-item {
    gap: 15px; /* Espacio entre la imagen, info, cantidad y precio */
}

.carrito-item-titulo {
    margin-bottom: 10px;
    font-size: 13px; /* Hacemos la letra del nombre más pequeña */
    font-weight: 500;
}

.carrito-producto-img {
    width: 90px; /* Aumentamos el tamaño de la imagen considerablemente */
    height: 90px; /* Aumentamos el tamaño de la imagen considerablemente */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    flex-shrink: 0; /* Evita que la imagen se encoja */
}

.carrito-item-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea el texto a la izquierda */
    justify-content: center;
    flex-grow: 1; /* Permite que ocupe el espacio sobrante */
    text-align: left;
}

/* --- INICIO: Estilos para la nueva sección de total --- */
.total-summary {
    width: 95%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #405a7e;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 10px;
}

.total-row.final-total {
    font-size: 22px;
    font-weight: bold;
    margin-top: 15px;
}
/* --- FIN: Estilos para la nueva sección de total --- */

.enviarWhatsApp {
    background-color: #25D366;
    width: 220px; /* Ancho más pequeño */
    height: 42px; /* Altura más pequeña */
    border-radius: 8px; /* Menos redondeado */
    border: none;
    cursor: pointer;
    font-size: 16px; 
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
    margin: 20px auto 0; /* Margen superior y centrado horizontal */
        display: flex; /* Cambiado a flex para alinear el icono y el texto */
        align-items: center;
        justify-content: center;
        gap: 8px; /* Espacio entre el icono y el texto */
}

.enviarWhatsApp:hover{
    /* Animación simple de cambio de color */
    background-color: #20b058;
}

.none {
    display: none !important;
}

.carrito-item-descripcion {
    font-size: 12px;
    color: #a2b3c7; /* Un color más suave para diferenciarlo del nombre */
    margin-top: 4px;
    font-style: italic;
    white-space: normal; /* Permite que el texto se divida en varias líneas */
    word-break: break-word;
}

.soldOut{
    background-color: red;
    padding: 7px 10px;
    border-radius: 10px;
}
.botonTrash{
    background-color: rgba(0, 0, 0, 0);
    border:none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.botonTrash img {
    width: 25px;  /* Le devolvemos un tamaño adecuado */
    height: 25px; /* Le devolvemos un tamaño adecuado */
    object-fit: contain;
}



/* Estilos para el formulario de cliente */
.formulario-cliente {
    background-color: #2D4263;
    border-radius: 15px;
    padding: 25px;
    width: 450px;
    margin: 0;
    position: static;
    display: block;
}

.formulario-cliente h3 {
    color: white;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.campo-formulario {
    margin-bottom: 10px;
}

.campo-formulario label {
    display: block;
    color: white;
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 500;
}

.campo-formulario input,
.campo-formulario textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #141C29;
    border-radius: 8px;
    background-color: #141C29;
    color: white;
    font-size: 16px; /* Aumentado a 16px para evitar auto-zoom en iPhone */
    font-family: 'Space Grotesk', sans-serif;
}


.campo-formulario select { /* Añadimos el selector para <select> */
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #141C29;
    border-radius: 8px;
    background-color: #141C29;
    color: white;
    font-size: 16px; /* Aumentado a 16px para evitar auto-zoom en iPhone */
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer; /* Añadimos cursor pointer para el select */
    appearance: none; /* Oculta el estilo nativo del select */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2C114.7L159.2%2C28.9c-3.7-3.6-8.3-5.5-13.1-5.5s-9.4%2C1.9-13.1%2C5.5L5.5%2C114.7c-6.3%2C6.3-6.3%2C16.5%2C0%2C22.8 c6.3%2C6.3%2C16.5%2C6.3%2C22.8%2C0l110.9-110.9l110.9%2C110.9c6.3%2C6.3%2C16.5%2C6.3%2C22.8%2C0C293.3%2C131.3%2C293.3%2C121%2C287%2C114.7z%22%2F%3E%3C%2Fsvg%3E'); /* Icono de flecha */
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
    padding-right: 30px; /* Espacio para la flecha */
}

.campo-formulario input[type="text"]:focus,
.campo-formulario input[type="tel"]:focus,
.campo-formulario input[type="url"]:focus,
.campo-formulario textarea:focus,
.campo-formulario select:focus { /* Añadimos el selector para <select> */
    outline: none;
    border-color: #d37325;
    box-shadow: 0 0 5px rgba(37, 211, 102, 0.3);
}


.campo-formulario input::placeholder,
.campo-formulario textarea::placeholder {
    color: #888;
}

/* Estilos para el texto de ayuda */
.ayuda-texto {
    display: block;
    color: #38BDF8; /* Color cian amigable */
    font-size: 13px;
    margin-top: 5px;
    font-style: normal; /* Más legible */
    line-height: 1.4;
}

/* Estilos específicos para las opciones del select */
.campo-formulario select option {
    background-color: #141C29; /* Fondo oscuro para las opciones */
    color: white; /* Texto blanco para las opciones */
}



/* Estilo para la opción placeholder */
.campo-formulario select option[value=""] {
    color: #888; /* Color más claro para el placeholder */
}


/* Estilos para el buscador de los productos*/
#buscadorForm {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 0;
}

#buscadorInput {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 16px;
    color: #000;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    width: 220px;
}

#buscadorInput:focus {
    border-color: #007bff;
}

#buscadorForm button {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 18px;
}

#buscadorForm button:hover {
    background: #0056b3;
}

.carrito-vacio {
    text-align: center;
    font-size: 20px;
    color: #fff;
    margin: 40px 0;
    font-family: 'Montserrat', sans-serif;
}

.carrito-vacio-tamano {
    min-height: 120px !important;
    max-height: 180px !important;
    height: auto !important;
    transition: min-height 0.3s, max-height 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}


.contenedor > div {
    /* Mantén el ancho fijo o máximo */
    width: 320px; /* o el valor que prefieras */
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word; /* Rompe palabras largas */
    overflow-wrap: break-word; /* Rompe palabras largas */
}

.informacion p,
.informacion .nombre-producto {
    white-space: normal; /* Permite saltos de línea */
    text-align: center;  /* Centra el texto si lo deseas */
    word-break: break-word;
    overflow-wrap: break-word;
}


.selector-cantidad i:focus,
.selector-cantidad button:focus,
.selector-cantidad input:focus,
.carrito-item-cantidad:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: inherit !important;
}

/* --- INICIO: Animación para el carrito --- */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.carrito-animado {
  animation: shake 0.5s ease-in-out;
}
/* --- FIN: Animación para el carrito --- */

/* --- INICIO: Animación de vibración para variantes --- */
@keyframes shake-variantes {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.shake-animation {
  animation: shake-variantes 0.4s ease-in-out;
}

@keyframes pop-btn {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.pop-animation {
  animation: pop-btn 0.2s ease-out;
}
/* --- FIN: Animación de vibración para variantes --- */

/* --- formulario de inicio de cesio y registro del usuario: Estilos para el Modal de Autenticación --- */
.auth-modal {
    display: none; 
    position: fixed;
    z-index: 1001; /* Por encima del carrito */
    left: 0;
    top: -50px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.6);
}

.auth-modal-content {
    background-color: rgba(2, 21, 49, 0.411);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    position: relative;
}

.auth-close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.auth-close-btn:hover,
.auth-close-btn:focus {
    color: white;
    text-decoration: none;
}

.auth-modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
}

.auth-modal-content form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #141C29;
    background-color: #e6ebf3;
    color: black;
    font-size: 16px; /* Evita el auto-zoom en iOS (iPhone) */
}

.auth-modal-content form button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.auth-modal-content form button:hover {
    background-color: #0056b3;
}

.auth-modal-content form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #141C29;
    background-color: #eef1f7;
    color: black;
    font-family: 'Space Grotesk', sans-serif; /* Heredar la fuente */
    font-size: 16px; /* Evita el auto-zoom en iOS (iPhone) */
}

/* --- INICIO: Estilos para el contenedor de contraseña con ícono --- */
.password-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px; /* Mantiene el espaciado del formulario */
}

.password-container input {
    margin-bottom: 0; /* El input no necesita margen inferior, lo tiene el contenedor */
    padding-right: 45px; /* Espacio a la derecha para el ícono */
}

.password-container i {
    position: absolute;
    top: 35%; /* Centrado verticalmente */
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa; /* Color gris para el ícono */
}

/* --- INICIO: Botón de Google y Separador --- */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
    color: #a2b3c7;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #405a7e;
}
.auth-divider span {
    padding: 0 10px;
    font-size: 14px;
}

.btn-google {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ffffff !important;
    color: #757575 !important;
    border: 1px solid #ddd !important;
    font-weight: 500 !important;
}
.btn-google:hover {
    background-color: #f1f1f1 !important;
    border-color: #ccc !important;
}
.btn-google i {
    color: #EA4335; /* Color original de Google */
    font-size: 18px;
}
/* --- FIN: Botón de Google y Separador --- */

/* --- FIN: Estilos para el Modal de Autenticación --- */




/* --- INICIO: Estilos para los filtros de categoría --- */
.filtros-container {
    width: fit-content; /* Se ajusta dinámicamente a la cantidad de categorías */
    max-width: 90%; /* Evita que desborde la pantalla si hay demasiadas categorías */
    margin: 10px auto 20px auto;
    display: flex;
    justify-content: center; /* Centramos los botones en PC */
    align-items: center;
    flex-wrap: wrap; /* Permite que las categorías pasen a una segunda línea si son muchas */
    gap: 10px;
    
    /* --- INICIO: Filtros Fijos (Sticky) en PC --- */
    position: sticky;
    top: 125px; /* Se queda casi pegado debajo del Header (120px + 5px) */
    z-index: 990; /* Por debajo del header (1000) pero encima de las fotos de los productos */
    background-color: rgba(11, 16, 30, 0.65); /* Opacidad reducida para que se note mucho más el cristal */
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px); /* Desenfoque aumentado para un efecto premium */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Borde sutil blanco tipo "frosted glass" */
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3); /* Sombra elegante para separarlo del fondo */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), bottom 0.3s ease-in-out, opacity 0.3s ease-in-out;
    -webkit-overflow-scrolling: touch; /* Scroll más suave en iOS */
    /* --- FIN: Filtros Fijos --- */
}

/* Clase para ocultar la barra al hacer scroll down en PC (hacia arriba, detrás del menú) */
.filtros-hidden {
    transform: translateY(-150px) !important;
    opacity: 0;
    pointer-events: none; /* Evita clics fantasma mientras está oculta */
}

@media (max-width: 768px) {
    /* En móvil se esconde hacia abajo (Bottom App Bar) */
    .filtros-hidden {
        transform: translate(-50%, 150%) !important;
        opacity: 1;
        pointer-events: auto;
    }
}

.filtro-btn-categoria {
    padding: 8px 18px;
    white-space: nowrap;
    flex-shrink: 0; /* Evita que los botones se encojan */
    border: 1px solid #405a7e;
    background-color: transparent;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filtro-btn-categoria:hover {
    background-color: #2D4263;
    border-color: #a2b3c7;
}

.filtro-btn-categoria.active {
    background-color: #f1edec; /* Verde para indicar el filtro activo */
    color: #141C29;
    border-color: #f3efee;
    font-weight: bold;
    animation: pop-in 0.3s ease-out; /* <-- AÑADIDO: Aplicamos la animación */
}
/* --- FIN: Estilos para los filtros de categoría --- */

/* --- INICIO: Texto de instrucción para deslizar --- */
@keyframes deslizarIcono {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.filtros-instruccion {
    display: none; /* Oculto en PC por defecto */
}

@media (max-width: 768px) {
    .filtros-instruccion {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #ffc107; /* Dorado llamativo */
        font-size: 0.85rem;
        font-weight: 600;
        white-space: nowrap;
        margin-right: 5px;
        padding-right: 12px;
        border-right: 1px solid rgba(255,255,255,0.2); /* Separador sutil */
    }
    .filtros-instruccion i {
        animation: deslizarIcono 1.5s infinite ease-in-out;
    }
}
/* --- FIN: Texto de instrucción para deslizar --- */
/* --- INICIO: Banner de Cookies GDPR --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(20, 28, 41, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #e2e8f0;
    padding: 20px;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(64, 90, 126, 0.5);
}
.cookie-banner.show {
    bottom: 0;
}
.cookie-content {
    text-align: center;
    max-width: 800px;
}
.cookie-content h4 {
    color: #ffc107;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}
.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}
.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.cookie-btn { padding: 10px 20px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: all 0.2s; font-size: 0.9rem; }
.cookie-btn.accept { background-color: #25D366; color: #141C29; }
.cookie-btn.accept:hover { background-color: #20b058; }
.cookie-btn.reject { background-color: transparent; color: #a2b3c7; border: 1px solid #a2b3c7; }
.cookie-btn.reject:hover { background-color: rgba(255,255,255,0.1); color: #fff; }

@media (min-width: 768px) {
    .cookie-banner { flex-direction: row; justify-content: space-between; padding: 20px 5%; }
    .cookie-content { text-align: left; }
}
/* --- FIN: Banner de Cookies GDPR --- */
/* --- INICIO: Animación para el botón de filtro activo --- */
@keyframes pop-in {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}
/* --- FIN: Animación para el botón de filtro activo --- */

/* --- INICIO: Animación de fade-in para productos (Admin) --- */
@keyframes fadeInAdmin {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- FIN: Animación de fade-in --- */

/* --- INICIO: Estilos para Transición de Páginas --- */

/* Estilo base del cuerpo para la animación de entrada */
body {
    animation: fadeInPage 0.5s ease-in-out forwards;
}

/* Clase que se añade con JS para la animación de salida */
body.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Keyframes para la animación de entrada */
@keyframes fadeInPage {
    from {
        opacity: 0; /* La página empieza invisible */
    }
    to {
        opacity: 1; /* La página termina completamente visible */
    }
}

/* --- FIN: Estilos para Transición de Páginas --- */

/* --- INICIO: Corrección Z-Index SweetAlert --- */
.swal2-container {
    z-index: 20000 !important; /* Asegura que esté por encima del carrito (z-index: 1100) */
}
/* --- FIN: Corrección Z-Index SweetAlert --- */

/* --- INICIO: Elementos de la Interfaz Nativa tipo App (Móvil) --- */
.mobile-cart-tabs {
    display: none; /* Oculto en PC */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: #1a2332;
    border-top: 1px solid #2D4263;
    z-index: 2005;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.4);
    justify-content: center;
}

.cart-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 11px;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-tab i {
    font-size: 22px;
    color: inherit;
    transition: transform 0.2s;
}

.cart-tab.active {
    color: #25D366; /* Verde IORO */
    font-weight: 600;
}

.cart-tab.active i {
    transform: scale(1.1);
}

.mobile-actions-container {
    display: none; /* Oculto en PC */
}

.actions-form-container {
    display: flex; /* Visible siempre porque contiene los botones principales */
    flex-direction: row;
    width: 100%;
}

.btn-seguir-mobile {
    display: none; /* Oculto en PC */
}

.btn-siguiente-mobile {
    display: none; /* Oculto en PC */
    width: 100%;
    max-width: 400px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    margin: 25px auto 20px auto;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-siguiente-mobile:hover {
    background-color: #0056b3;
}

.btn-siguiente-mobile:active {
    transform: scale(0.98);
}

.mobile-tab-hidden {
    /* En PC, forzamos visibilidad para ignorar las pestañas móviles */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .mobile-cart-tabs {
        display: flex;
    }
    .mobile-actions-container {
        display: flex;
        flex-direction: row;
        width: 100%;
    }
    .btn-seguir-mobile,
    .btn-siguiente-mobile {
        display: flex;
    }
}
/* --- FIN --- */
