@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;600&display=swap');

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #121212;
    color: white;
    overflow-x: hidden;
}

/* ========================================= */
/* --- SECCIÓN HERO (COMPUTADORA) --- */
/* ========================================= */
.hero-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
}

.hero-container {
    display: flex;
    flex-direction: row; /* Lado a lado en computadora */
    height: 100vh;
    width: 100%;
}

.seccion {
    flex: 1; /* Ocupan el mismo ancho */
    position: relative; 
    overflow: hidden;   
    text-decoration: none;
    filter: grayscale(1) brightness(0.4);
    transition: all 0.6s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
}

/* Crece y se ilumina al pasar el mouse en PC */
.seccion:hover {
    flex: 2; 
    filter: grayscale(0) brightness(0.9);
}

.img-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1;
    transition: transform 0.5s ease;
}

.seccion:hover .img-fondo {
    transform: scale(1.05);
}

/* El texto anclado al piso */
.contenido {
    position: absolute; 
    bottom: 0;          
    left: 0;
    width: 100%;
    z-index: 2;         
    color: white;
    text-align: center;
    opacity: 0; 
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%); 
    padding: 60px 20px 20px 20px; 
}

.seccion:hover .contenido {
    opacity: 1; 
    transform: translateY(0);
}

.contenido h2 { font-size: 2.5rem; margin-bottom: 5px; font-weight: 700; text-transform: uppercase; }
.contenido p { font-size: 1.1rem; font-weight: 300; letter-spacing: 1px; margin-top: 5px; color: #e0e0e0; }

/* ========================================= */
/* --- LOGO CENTRAL FLOM (SOLO PC) --- */
/* ========================================= */
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    transition: opacity 0.4s ease; 
    width: 100%;
}

.logo {
    font-size: 8rem;
    letter-spacing: 15px;
    font-weight: 900;
}

.slogan {
    font-size: 1.5rem;
    color: #ddd;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.scroll-indicator {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

    /* ========================================= */
    /* --- MENÚ PRINCIPAL (MÓVIL / CELULAR) --- */
    /* ========================================= */
    .hero-wrapper {
        height: 100vh; /* Ocupa toda la pantalla */
        padding-top: 0; /* El menú de arriba flotará encima como en una app real */
        overflow: hidden;
    }
    
    .hero-container { 
        flex-direction: column; 
        height: 100vh;
        overflow-y: auto; /* Permite deslizar hacia abajo */
        scroll-snap-type: y mandatory; /* ESTA ES LA MAGIA: Imanta cada foto al centro como una rueda */
        scrollbar-width: none; /* Oculta la fea barra de scroll */
    }
    
    .hero-container::-webkit-scrollbar {
        display: none; /* Oculta la barra de scroll en Chrome/Safari */
    }
    
    /* 1. Cada tarjeta ahora es "Una por Una" ocupando toda la pantalla */
    .seccion { 
        width: 100%; 
        min-height: 100vh; /* Ocupa el 100% del alto de tu celular */
        scroll-snap-align: start; /* Hace "clic" exacto al llegar al inicio de la foto */
        scroll-snap-stop: always; /* NUEVO: FRENO OBLIGATORIO */
        border-right: none; 
        border-bottom: none; 
        filter: grayscale(0) brightness(0.85); /* ¡Siempre hermosas e iluminadas! */
    }

    .seccion:hover { 
        flex: unset; 
        filter: grayscale(0) brightness(0.85);
    }

    /* 2. Ajustamos el texto para que respire mejor en pantalla completa */
    .contenido {
        opacity: 1;
        transform: translateY(0);
        padding: 20px 20px 80px 20px; /* Mucho aire abajo para que se vea premium */
    }

    .contenido h2 { 
        font-size: 2.2rem; /* Letras un poco más grandes */
        margin-bottom: 2px; 
        text-shadow: 0 4px 10px rgba(0,0,0,0.8); /* Sombra para que resalte siempre */
    }
    
    .contenido p { 
        font-size: 1.1rem; 
        margin-top: 2px; 
        color: #ddd;
    }

    /* Ocultar el logo encimado grande en celular */
    .overlay-text {
        display: none; 
    }
    
/* --- SECCIÓN REVIEWS --- */
.reviews-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #f1f1f1;
}

.reviews-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.review-card {
    background: #252525;
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.review-card:hover { transform: translateY(-10px); }
.stars { color: #f1c40f; font-size: 1.2rem; margin-bottom: 15px; }
.review-card h4 { margin-top: 15px; color: #aaa; font-style: italic; }

/* --- SECCIÓN HISTORIA --- */
.history-section {
    padding: 100px 20px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1511795409835-a96048877376?auto=format&fit=crop&q=80');
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-content {
    max-width: 800px;
    background: rgba(0,0,0,0.6);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.history-content h2 { font-size: 3rem; margin-bottom: 20px; }
.history-content p { font-size: 1.2rem; line-height: 1.6; }

/* --- SECCIÓN CONTACTO --- */
.contact-section {
    padding: 60px 20px;
    background-color: #000;
    border-top: 1px solid #333;
}

.contact-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.contact-info ul { list-style: none; margin-top: 20px; }
.contact-info li { margin-bottom: 15px; font-size: 1.1rem; }
.contact-info i { margin-right: 10px; color: #4a90e2; }

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

.contact-form input, .contact-form textarea {
    background: #333;
    border: none;
    padding: 15px;
    margin-bottom: 15px;
    color: white;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.contact-form button:hover { background: #357abd; }
.copyright { text-align: center; margin-top: 50px; color: #555; font-size: 0.8rem; }

/* --- ESTILOS ESPECÍFICOS DE MOBILIARIO --- */
.page-mobiliario {
    background-color: #0f0f0f;
    padding-bottom: 50px;
}

.navbar { padding: 20px; background: black; }
.logo-nav { color: white; font-weight: 900; text-decoration: none; font-size: 1.5rem; letter-spacing: 5px; }

/* Filtro Hero */
.filter-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1519225421980-715cb0202128?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    color: white;
}

.filter-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    max-width: 700px;
    margin: 30px auto 0;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Filtro de Tiempo (Fila) */
.filter-inputs-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.filter-inputs-row .input-group {
    flex: 1; 
    margin-bottom: 0;
}

.filter-inputs-row select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #333;
    color: white;
    font-family: inherit;
    cursor: pointer;
}

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: #ccc; }
.input-group input {
    width: 100%; padding: 12px; border-radius: 8px; border: none; background: #333; color: white;
}

.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.chip {
    padding: 8px 16px; border-radius: 20px; border: 1px solid #4a90e2; background: transparent; color: white; cursor: pointer; transition: 0.3s;
}
.chip:hover, .chip.active { background: #4a90e2; }

.btn-search {
    margin-top: 25px; padding: 12px 30px; background: white; color: black; font-weight: bold; border: none; border-radius: 30px; cursor: pointer; transition: 0.3s; width: 100%;
}
.btn-search:hover { transform: scale(1.02); background: #eee; }

/* --- Grid del Catálogo (Mesas, sillas... estas pueden ser pequeñas) --- */
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Productos pequeños */
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Grid de Estilos (Pinky Party... estas deben ser GRANDES de 3 en 3) --- */
.styles-grid {
    display: grid;
    /* ALERTA: Aquí está el cambio. Usamos 350px para forzar que solo quepan 3 */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 40px; /* Más espacio entre ellas */
    padding: 40px;
    max-width: 1280px; /* Un poco más ancho para que respiren */
    margin: 0 auto;
}

.hidden { display: none; }

/* --- SECCIÓN INSPIRACIÓN (MEJORADA) --- */
.inspiration-section {
    padding: 80px 20px;
    background: #0f0f0f;
    text-align: center;
}

.inspiration-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
}

.inspiration-section p {
    font-family: 'Poppins', sans-serif;
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tarjetas con diseño carrusel */
.style-card {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.style-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.5);
}

/* --- Grid de Estilos (CORREGIDO: 3 Columnas Grandes) --- */
.styles-grid {
    display: grid;
    /* Ajustamos a 350px para que quepan 3 tarjetas grandes y bonitas */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 40px;
    padding: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

/* --- CARRUSEL DESLIZANTE (CORREGIDO) --- */

.carousel-viewport {
    width: 100%;
    height: 100%; 
    overflow-x: auto; /* Permite scroll */
    overflow-y: hidden;
    scroll-snap-type: x mandatory; /* Hace que se "imante" al centro */
    scrollbar-width: none;
    position: relative;
    border-radius: 20px; /* Asegura que las esquinas sigan redondas */
}

/* Ocultar barra de scroll */
.carousel-viewport::-webkit-scrollbar { display: none; }

.carousel-track {
    display: flex; /* Pone las imágenes en fila */
    width: fit-content; /* El ancho se adapta a la cantidad de fotos */
    height: 100%;
    margin: 0;
    padding: 0;
}

.carousel-img {
    /* --- AQUÍ ESTABA EL PROBLEMA --- */
    width: 100%;      /* Intenta ocupar todo el ancho */
    min-width: 100%;  /* OBLIGA a ocupar todo el ancho del visor */
    flex-shrink: 0;   /* ¡IMPORTANTE! Prohibido encogerse para caber */
    
    height: 100%;
    object-fit: cover; /* Recorta la imagen para que no se deforme */
    scroll-snap-align: center; /* Alineación perfecta */
    display: block;
    transition: transform 0.5s ease;
}

/* Efecto Zoom suave al pasar el mouse */
.style-card:hover .carousel-img {
    transform: scale(1.1);
}
/* Arreglo para que el botón se vea bien y no encimado */
.card-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Fondo oscuro degradado para que se lea el texto */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.6) 80%, transparent 100%);
    padding: 20px;
    text-align: left;
    transform: translateY(0); /* Que siempre se vea un poco */
    transition: all 0.3s;
    z-index: 20; /* Asegura que esté encima de la foto */
}

.style-card:hover .card-info-overlay {
    transform: translateY(0);
}

.card-info-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 5px;
}

.card-info-overlay p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}

/* Botón VER MÁS */
.btn-ver-mas-container { margin-top: 50px; }

.btn-outline {
    background: transparent;
    border: 2px solid #4a90e2;
    color: #4a90e2;
    padding: 12px 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-outline:hover {
    background: #4a90e2;
    color: white;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
}

/* Estilo del botón de carrito mejorado */
.btn-add-cart {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background-color: #4a90e2; /* Azul bonito */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Espacio entre texto e icono */
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background-color: #357abd;
}

/* Modal */
.modal {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1e1e1e; width: 90%; max-width: 800px; display: flex; border-radius: 15px; overflow: hidden; position: relative;
}

.close-btn { position: absolute; top: 10px; right: 20px; color: white; font-size: 30px; cursor: pointer; z-index: 10; }
.modal-image { flex: 1; height: 400px; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { flex: 1; padding: 40px; color: white; display: flex; flex-direction: column; justify-content: center; }

.modal-info ul { margin: 20px 0; padding-left: 20px; color: #ccc; }
.price-tag { font-size: 2rem; color: #4a90e2; font-weight: bold; margin-bottom: 20px; }
.btn-reserve { padding: 15px; background: #4a90e2; color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; }

/* Responsive General (Incluye Animación Scroll y Menú Celular) */
@media (max-width: 768px) {

    /* --- ARREGLOS DE TARJETAS (ESTILOS) --- */
    .styles-grid {
        grid-template-columns: 1fr; 
        padding: 20px; 
        justify-items: center; 
    }

    .style-card {
        width: 100%; 
        max-width: 380px; 
    }
    
    /* --- ARREGLOS DEL HERO (MENÚ PRINCIPAL CELULAR) --- */
    .hero-wrapper {
        height: auto; 
    }
    
    .hero-container { 
        flex-direction: column; 
    }
    
    /* ESTADO INICIAL EN CELULAR (Gris, ocupa 1 pantalla) */
    .seccion { 
        width: 100%; 
        height: 100vh; 
        border-right: none; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
        filter: grayscale(1) brightness(0.4); 
    }

    .seccion:hover { flex: 1; }

    .contenido {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
    }

    /* ESTADO REVELADO (Al hacer scroll) */
    .seccion.revelado {
        filter: grayscale(0) brightness(0.9); 
        flex: 1.1; 
    }
    
    .seccion.revelado .contenido {
        opacity: 1; 
        transform: translateY(0);
    }
    
    .overlay-text {
        top: 50vh; 
    }

    /* --- AJUSTES DE TEXTO Y FORMULARIOS --- */
    .logo { font-size: 4rem; letter-spacing: 5px; }
    .slogan { font-size: 1rem; }
    .contact-container { flex-direction: column; }
    .contact-form { width: 100%; }
    
    .filter-inputs-row { flex-direction: column; gap: 15px; }
    .modal-content { flex-direction: column; height: 90vh; overflow-y: auto; }
    .modal-image { height: 200px; }

} /* <--- AQUÍ CIERRA CORRECTAMENTE EL ÚNICO @MEDIA */

/* --- ESTILOS DEL ICONO DEL CARRITO --- */
/* --- ESTILOS DEL ICONO DEL CARRITO --- */
.navbar {
    display: flex;
    justify-content: space-between; /* Separa el logo del carrito */
    align-items: center;
    padding: 20px 40px;
}

.cart-icon-container {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s;
}

.cart-icon-container:hover {
    color: #4a90e2;
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #e74c3c; /* Rojo alerta */
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    border: 2px solid #000; /* Borde negro para separar */
}

/* --- NOTIFICACIÓN FLOTANTE (TOAST) --- */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #27ae60; /* Verde éxito */
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-weight: bold;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2000; /* Por encima de todo */
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- ESTILOS PARA LA VENTANA DE SUGERENCIAS (POPUP) --- */

/* El fondo oscuro detrás de la ventana */
.modal-sugerencia {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fondo oscuro transparente */
    z-index: 3000; /* Por encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

/* La cajita blanca/gris con el contenido */
.modal-sugerencia-content {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px; /* Esto evita que sea GIGANTE */
    text-align: center;
    border: 1px solid #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
}

.modal-sugerencia h3 {
    color: #4a90e2;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.modal-sugerencia p {
    color: #ccc;
    margin-bottom: 20px;
}

/* Grid para los productos pequeñitos sugeridos */
.sugerencias-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.mini-card {
    background: #2a2a2a;
    padding: 10px;
    border-radius: 10px;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #444;
}

.mini-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.mini-card p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: white;
}

.mini-card button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Botones de abajo (No gracias / Ir a pagar) */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- ESTILOS PARA EL CARRUSEL DEL MODAL (MANUAL) --- */

.modal-image-container {
    flex: 1;
    position: relative; /* Para que las flechas se queden dentro */
    height: 400px;
    background: black;
    overflow: hidden;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botones de flecha flotantes */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 5px;
}

.modal-arrow:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-arrow.prev { left: 10px; }
.modal-arrow.next { right: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .modal-image-container { height: 250px; }
}

/* --- ESTILOS DE LA PÁGINA CARRITO --- */

/* Contenedor principal */
.cart-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cart-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #4a90e2;
}

/* Tarjeta de cada producto */
.cart-item {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #333;
    transition: transform 0.2s;
}

.cart-item:hover {
    transform: translateX(5px);
    border-color: #4a90e2;
}

/* Imagen del producto */
.cart-img-box {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0; /* Evita que la imagen se aplaste */
}

.cart-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detalles (Nombre y precio unitario) */
.item-details {
    flex: 1; /* Ocupa el espacio disponible */
}

.item-details h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: white;
}

.item-price {
    color: #aaa;
    font-size: 0.9rem;
}

/* Acciones (Total y borrar) */
.item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.item-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a90e2;
}

/* Botón de borrar (Basura) */
.btn-delete {
    background: rgba(231, 76, 60, 0.1); /* Fondo rojo transparente */
    color: #e74c3c;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-delete:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

/* Si el carrito está vacío */
.empty-cart {
    text-align: center;
    padding: 50px;
    color: #555;
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    color: #4a90e2;
    text-decoration: none;
    border: 1px solid #4a90e2;
    padding: 10px 20px;
    border-radius: 20px;
    transition: 0.3s;
}

.btn-back:hover {
    background: #4a90e2;
    color: white;
}

/* --- ARREGLO DE IMÁGENES (FALTA ESTO) --- */

/* 1. El contenedor inmediato de la foto */
.card-image-slider {
    width: 100%;
    height: 100%; /* Obliga a llenar la altura de la tarjeta (400px) */
    position: relative;
    overflow: hidden;
}

/* 2. La etiqueta <img> (Si usaste el JS nuevo con <img>) */
.card-image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* CLAVE: Recorta la imagen para que no se deforme */
    display: block;
    transition: transform 0.5s ease;
}

/* 3. Si por alguna razón sigues usando background-image (JS Viejo) */
/* Esto asegura que el div tenga tamaño aunque no tenga contenido */
div.card-image-slider {
    background-size: cover;
    background-position: center;
}

/* Efecto Zoom al pasar el mouse */
.style-card:hover .card-image-slider img {
    transform: scale(1.1);
}

/* --- CONTROL DE CANTIDAD EN TARJETAS DEL CATÁLOGO --- */

.card-qty-wrapper {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
}

.card-qty-wrapper label {
    font-size: 0.9rem;
    color: #ccc;
    margin-right: 10px;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: #000;
    border-radius: 5px;
    overflow: hidden; /* Para que los bordes de los botones no se salgan */
}

.qty-selector button {
    background: #333;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.qty-selector button:hover {
    background: #4a90e2;
}

.qty-selector input {
    width: 40px;
    height: 30px;
    text-align: center;
    background: #222;
    border: none;
    color: white;
    font-weight: bold;
    /* Quitar flechas del input number */
    -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* --- ESTILOS DE CARRITO AGRUPADO (TIPO TABLA) --- */

.cart-group {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 30px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Encabezado: Foto y Nombre grande */
.group-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.group-header img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
}

.group-header h3 {
    margin: 0;
    color: #4a90e2;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cuerpo: Las filas */
.group-body {
    padding: 10px;
}

.variation-row {
    display: grid;
    /* Define columnas: Tiempo | Precio | Cantidad | Total+Borrar */
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr; 
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 15px;
}

.variation-row:last-child {
    border-bottom: none;
}

/* Columnas individuales */
.col-time label {
    display: block;
    font-size: 0.7rem;
    color: #aaa;
    margin-bottom: 3px;
}

.col-time select {
    width: 100%;
    background: #222;
    color: white;
    border: 1px solid #444;
    padding: 5px;
    border-radius: 5px;
}

.col-price-unit {
    color: #aaa;
    font-size: 0.9rem;
    text-align: center;
}

.quantity-control.small {
    margin: 0 auto;
    padding: 2px;
}

.col-total-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.row-total {
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}

.btn-delete-mini {
    background: transparent;
    border: none;
    color: #e74c3c;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
}

.btn-delete-mini:hover {
    color: #ff6b6b;
}

/* Footer: Total del grupo */
.group-footer {
    background: rgba(74, 144, 226, 0.1);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(74, 144, 226, 0.3);
}

.group-total-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #4a90e2;
}

/* Responsive para celular */
@media (max-width: 768px) {
    .variation-row {
        grid-template-columns: 1fr 1fr; /* 2 columnas */
        gap: 20px;
    }
    .col-time { grid-column: span 2; } /* El tiempo ocupa todo el ancho */
    .col-qty { justify-self: start; }
    .col-total-action { justify-self: end; }
}

/* --- CORRECCIONES VISUALES CARRITO --- */

/* 1. Control de Cantidad COMPACTO (Para que no se vea enorme) */
.quantity-control.compact {
    padding: 2px 5px; /* Menos relleno */
    margin: 0 auto;
    width: fit-content;
    gap: 3px;
    height: 30px; /* Altura fija pequeña */
}

.quantity-control.compact button {
    width: 22px; /* Botones más pequeños */
    height: 22px;
    font-size: 0.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-control.compact input {
    width: 30px; /* Input más angosto */
    font-size: 0.9rem;
}

/* 2. Botón de Basura (Solo Ícono) */
.btn-delete-row {
    background: rgba(231, 76, 60, 0.15); /* Fondo rojito suave */
    color: #e74c3c; /* Color rojo */
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%; /* Redondo */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-left: auto; /* Empujarlo a la derecha */
}

.btn-delete-row:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
}

/* Ajuste de columnas para que se vean alineadas */
.col-qty {
    display: flex;
    justify-content: center;
}

.col-price-unit small {
    color: #666;
    font-size: 0.75rem;
}




/* ========================================= */
/* --- PANTALLA DE CARGA (SPLASH SCREEN) --- */
/* ========================================= */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0f0f0f; /* Fondo sólido oscuro */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Asegura que esté por encima de todo */
    transition: opacity 0.8s ease, visibility 0.8s ease; /* Transición suave */
}

.logo-splash {
    font-size: 5rem;
    letter-spacing: 10px;
    color: white;
    margin: 0;
    font-weight: 900;
}

.slogan-splash {
    font-size: 1.2rem;
    color: #ddd;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 10px;
    text-align: center;
}

/* Clase mágica para desaparecer la pantalla */
#splash-screen.oculto {
    opacity: 0;
    visibility: hidden;
}

/* Ajustes del splash para celular */
@media (max-width: 768px) {
    .logo-splash { font-size: 4rem; letter-spacing: 5px; }
    .slogan-splash { font-size: 1rem; }
}

/* ========================================= */
/* --- BARRA DE NAVEGACIÓN FIJA (INICIO) --- */
/* ========================================= */
.fixed-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    background-color: rgba(15, 15, 15, 0.85); 
    backdrop-filter: blur(10px); 
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    /* 👇 SOLO AGREGA ESTA LÍNEA AQUÍ ADENTRO 👇 */
    transition: transform 0.4s ease-in-out; 
}

/* 👇 Y PEGA ESTE BLOQUE NUEVO JUSTO DEBAJO 👇 */
.fixed-navbar.nav-oculta {
    /* Mueve la barra completa hacia arriba para esconderla */
    transform: translateY(-100%); 
}

/* ========================================= */
/* --- BOTÓN FLOTANTE WHATSAPP --- */
/* ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px); /* Salta un poquito al pasar el mouse */
    background-color: #20b858;
    color: white;
}

/* Ajuste para celular para que no estorbe tanto */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}
/* ========================================= */
/* --- SECCIÓN 3D (INICIO) --- */
/* ========================================= */
.experiencia-3d {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    background-color: #121212; /* Un fondo oscuro ligeramente distinto para que resalte */
    text-align: center;
    gap: 30px;
}

.experiencia-info h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.experiencia-info p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

.experiencia-info .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4a90e2; /* El azul de tu diseño */
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.experiencia-info .btn-primary:hover {
    background-color: #357abd;
}

.experiencia-modelo {
    width: 100%;
    max-width: 800px; /* Para que no sea inmenso en PC */
    border-radius: 20px;
    overflow: hidden;
    background-color: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Sombra elegante */
}

/* El tamaño de la ventana del modelo 3D */
.visor-inicio {
    width: 100%;
    height: 400px;
    outline: none;
}

/* Magia para que se adapte a pantallas de computadora o tablets grandes */
@media (min-width: 768px) {
    .experiencia-3d {
        flex-direction: row;
        text-align: left;
        justify-content: center;
        padding: 80px 50px;
        gap: 50px;
    }
    .experiencia-info {
        flex: 1;
        max-width: 450px;
    }
    .experiencia-info p {
        margin: 0 0 30px 0;
    }
    .experiencia-modelo {
        flex: 1;
    }
}

/* ========================================= */
/* --- VERSIÓN MÓVIL: ULTRA COMPACTA --- */
/* ========================================= */
@media (max-width: 768px) {
    
    /* 1. Reducimos el espacio muerto del cuadro principal */
    .checkout-form-container {
        padding: 15px !important; /* Antes era de 40px, ¡ahorramos muchísimo espacio! */
        margin: 10px;
        border-radius: 12px;
    }

    /* 2. Juntamos los campos de texto y los hacemos más delgados */
    .input-field {
        padding: 10px 12px !important; /* Menos altura en cada cajita */
        margin-bottom: 8px !important; /* Más pegaditos uno del otro */
        font-size: 1rem;
    }

    /* 3. Apretamos los títulos para que no roben altura */
    .checkout-form-container h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    .checkout-form-container h3 {
        font-size: 1.1rem;
        margin-top: 10px !important;
        margin-bottom: 5px !important;
    }

    /* 4. El carrito: Lo volvemos una fila súper compacta */
    .cart-item { 
        display: flex !important;
        flex-direction: row !important; /* Forzamos a que esté todo en 1 línea */
        align-items: center;
        padding: 10px !important;
        gap: 10px !important;
    }

    /* 5. Imagen pequeña pero clara (tipo miniatura) */
    .cart-item img {
        width: 60px !important; 
        height: 60px !important;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 0 !important;
    }

    /* 6. Botones de cantidad compactos pero tocables */
    .qty-selector { margin: 0 !important; }
    .qty-selector button {
        padding: 5px 12px !important;
        font-size: 1rem !important;
    }
    .qty-selector input {
        width: 30px !important;
        padding: 5px !important;
    }

    /* 7. Botón de pago con buen tamaño pero sin exagerar */
    .btn-pay, .btn-reserve {
        padding: 12px !important;
        font-size: 1.1rem !important;
        margin-top: 10px !important;
    }
}

/* ========================================= */
/* --- CHECKOUT ULTRA COMPACTO (MÓVIL) --- */
/* ========================================= */
@media (max-width: 768px) {
   /* ========================================= */
    /* --- CORRECCIÓN FORMULARIO DE RESERVA MÓVIL --- */
    /* ========================================= */
    
    /* 1. Quitamos los márgenes gigantes para que ocupe todo el ancho */
    .page-checkout {
        padding: 0 !important; /* Quita el espacio negro exterior */
    }

    .checkout-form-container {
        width: 100% !important; 
        max-width: 100% !important;
        margin: 0 !important;
        padding: 30px 20px !important; /* Buen espacio interior, cero exterior */
        border-radius: 0 !important; /* Se ve más nativo sin bordes redondeados al 100% del ancho */
        min-height: 100vh; /* Que ocupe toda la pantalla hacia abajo */
    }

    /* 2. Títulos más legibles */
    .checkout-form-container h2 {
        font-size: 1.6rem !important;
        margin-bottom: 20px !important;
    }

    .checkout-form-container h3 {
        font-size: 1.1rem !important;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
    }

    /* 3. Cajitas de texto perfectas para los dedos */
    .input-field,
    .checkout-form-container input,
    .checkout-form-container select {
        width: 100% !important;
        padding: 14px 15px !important; /* Más altas para que sea fácil tocarlas */
        font-size: 16px !important; /* 16px evita el auto-zoom en iOS */
        margin-bottom: 15px !important;
        border-radius: 8px !important;
    }

    /* 4. Botón de enviar imponente */
    .btn-pay, 
    .btn-reserve,
    .checkout-form-container button {
        width: 100% !important;
        padding: 16px !important;
        font-size: 1.2rem !important;
        font-weight: bold !important;
        margin-top: 20px !important;
        border-radius: 8px !important;
    }
}

/* ========================================= */
/* --- HOOK 3D MOBILIARIO (INICIO) --- */
/* ========================================= */

.seccion-hook-3d {
    /* Los 110px de arriba son cruciales para que la Navbar fija no tape el título */
    padding: 110px 20px 40px 20px; 
    background-color: #0f0f0f; /* Mismo fondo oscuro de tu página */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Una línea sutil para separar */
}

.hook-3d-textos {
    max-width: 600px;
    margin-bottom: 30px;
}

.hook-3d-textos h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hook-3d-textos p {
    font-family: 'Poppins', sans-serif;
    color: #aaaaaa;
    font-size: 1.1rem;
    line-height: 1.5;
}

.hook-3d-contenedor {
    width: 100%;
    max-width: 900px; /* Para que no se vea groseramente gigante en monitores grandes */
    height: 450px; /* Altura ideal para interactuar */
    border-radius: 20px;
    overflow: hidden;
    background-color: #1a1a1a;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6); /* Sombra 3D para que "flote" */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .seccion-hook-3d {
        padding-top: 90px;
        padding-bottom: 20px;
    }
    .hook-3d-textos h2 {
        font-size: 2rem;
    }
    .hook-3d-contenedor {
        height: 300px; /* Un poco más chaparrito en celular para que se asome el buscador abajo */
    }
}

/* ========================================= */
/* --- ESTILOS DEL CONFIGURADOR 3D --- */
/* ========================================= */

.btn-forma-mesa {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-forma-mesa:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-forma-mesa.activo {
    background: #4a90e2; /* Azul FLOM */
    border-color: #4a90e2;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
}

.panel-controles-mesa {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    transition: opacity 0.3s ease;
}

.panel-controles-mesa.oculto {
    display: none;
}

.titulo-panel-3d {
    color: #ffd700; /* Dorado */
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.controles-configurador, .controles-color {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

/* ========================================= */
/* --- MODAL DE PRODUCTO INDIVIDUAL --- */
/* ========================================= */

.modal-producto-content {
    background: #1a2639;
    width: 95%; 
    max-width: 1000px; /* Es un modal ancho para PC */
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.05);
}

.producto-modal-body {
    display: flex;
    flex-direction: row;
    height: 600px;
}

.producto-media-container {
    flex: 1.2;
    background: #0b1320;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.producto-media-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para que la foto no se corte */
}

.producto-info-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    background: #1a2639;
}

.tag-categoria {
    font-size: 0.8rem;
    color: #4a90e2;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

#productoModalTitulo {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
}

.precio-tag {
    font-size: 1.8rem;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.producto-info-container h3 {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 15px;
}

/* Grid de especificaciones */
.producto-especificaciones {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas */
    gap: 15px;
    margin-bottom: 30px;
}

.spec-item-prod {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.spec-item-prod strong {
    color: #4a90e2;
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

/* Adaptación a Celular */
@media (max-width: 768px) {
    .producto-modal-body {
        flex-direction: column;
        height: 85vh;
        overflow-y: auto;
    }
    .producto-media-container {
        height: 350px;
        flex: none; /* Evita que se estire feo */
    }
    .producto-info-container {
        padding: 25px;
    }
    .producto-especificaciones {
        grid-template-columns: 1fr; /* 1 sola columna en móvil */
    }
}

/* ========================================= */
/* --- BUSCADOR GLOBAL (NAVBAR) --- */
/* ========================================= */
.global-search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.global-search-container input {
    width: 100%;
    padding: 10px 15px 10px 40px; /* Espacio para el icono */
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.05);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.global-search-container input:focus {
    outline: none;
    background-color: rgba(255,255,255,0.1);
    border-color: #4a90e2; /* Azul FLOM */
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

/* El menú desplegable con resultados */
.search-results-dropdown {
    position: absolute;
    top: 110%; /* Justo debajo del buscador */
    left: 0;
    width: 100%;
    background-color: #1a2639;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    overflow: hidden;
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-dropdown.oculto {
    display: none;
}

/* Tarjetitas chiquitas de resultado */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: rgba(255,255,255,0.1);
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 15px;
}

.search-result-info h4 {
    color: white;
    font-size: 0.95rem;
    margin: 0 0 3px 0;
}

.search-result-info span {
    color: #4a90e2;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* ========================================= */
/* --- AJUSTES NAVBAR Y BUSCADOR (CELULAR) --- */
/* ========================================= */
@media (max-width: 768px) {
    
    .fixed-navbar {
        display: flex !important;
        flex-wrap: wrap !important; /* OBLIGA a permitir dos líneas */
        padding: 10px 20px !important;
    }

    .logo-nav {
        order: 1 !important;
        margin-right: auto !important;
    }

    .cart-icon-container {
        order: 2 !important;
    }

    .global-search-container {
        order: 3 !important;
        flex: 0 0 100% !important; /* MAGIA: No seas elástico, ocupa exactamente el 100% */
        max-width: 100% !important;
        margin: 15px 0 0 0 !important;
        position: relative !important;
    }

    .global-search-container input {
        background-color: #222 !important;
        border: 1px solid #444 !important;
        color: white !important;
        width: 100% !important;
        padding: 12px 15px 12px 40px !important;
    }

    .search-results-dropdown {
        top: 100% !important;
        margin-top: 8px !important;
        max-height: 300px !important;
    }
}

/* ========================================= */
/* --- MENÚ HAMBURGUESA Y SIDEBAR --- */
/* ========================================= */

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px; /* Separación entre las rayas y el logo FLOM */
}

.hamburger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px; /* Área táctil más grande */
}

.hamburger-btn:hover {
    color: #4a90e2; /* Azul FLOM */
}

/* El fondo negro transparente que tapa la página */
.sidebar-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.activo {
    opacity: 1;
    visibility: visible;
}

/* El cajón del menú que sale de la izquierda */
.sidebar-menu {
    position: fixed;
    top: 0; 
    left: -300px; /* Escondido fuera de la pantalla por defecto */
    width: 280px;
    height: 100vh;
    background: #111;
    z-index: 3000;
    transition: left 0.3s ease;
    box-shadow: 5px 0 20px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.sidebar-menu.activo {
    left: 0; /* Lo metemos a la pantalla */
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 { 
    color: white; 
    margin: 0; 
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.close-sidebar {
    background: none; 
    border: none; 
    color: #aaa;
    font-size: 2rem; 
    cursor: pointer;
    transition: 0.3s;
}

.close-sidebar:hover { color: white; }

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-links a {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    gap: 15px;
}

.sidebar-links a i {
    width: 25px; 
    text-align: center;
    color: #4a90e2; /* Íconos en azul */
}

.sidebar-links a:hover {
    background: rgba(74, 144, 226, 0.1);
    color: white;
    padding-left: 30px; /* Efecto de moverse un poquito a la derecha al pasar el mouse */
}

/* ========================================= */
/* --- AJUSTE CELULAR PARA EL MENÚ --- */
/* ========================================= */
@media (max-width: 768px) {
    /* Como agrupamos el logo y las barras, les decimos que ellos dos van a la izquierda */
    .nav-left { 
        order: 1 !important; 
        margin-right: auto !important; 
    }
    
    /* Le quitamos el margin al logo que habíamos puesto antes para que no se separe feo de las barras */
    .logo-nav { 
        margin-right: 0 !important; 
    }
}

/* ========================================= */
/* --- CARRITO 100% OPTIMIZADO PARA MÓVIL --- */
/* ========================================= */
@media (max-width: 768px) {
    
    /* 1. EXPANDIR EL CONTENEDOR PRINCIPAL */
    /* Quitamos los márgenes gigantes para que la caja negra grande ocupe casi toda la pantalla */
    .page-carrito, 
    .cart-wrapper,
    main {
        padding: 10px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 2. HACER QUE EL CUADRO DEL CARRITO USE TODO EL ESPACIO */
    .cart-group {
        margin: 0 0 20px 0 !important;
        border-radius: 12px !important;
        width: 100% !important;
    }

    /* 3. REORGANIZAR LA FILA DEL PRODUCTO PARA QUE NO SE APLASTE */
    /* En lugar de tener Todo en 1 línea, lo dividimos en 3 líneas amplias */
    .variation-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* 2 mitades */
        gap: 15px !important;
        padding: 15px !important;
    }

    /* A) El selector de tiempo (Ej: 5 Horas) toma TODA la 1ra fila */
    .col-time { 
        grid-column: 1 / 3 !important; 
        width: 100% !important;
    }
    .col-time select {
        width: 100% !important;
        padding: 10px !important; /* Más "gordito" para tocar fácil */
        font-size: 1rem !important;
    }

    /* B) El precio unitario a la Izquierda y el contador de Cantidad a la Derecha en la 2da fila */
    .col-price-unit {
        justify-self: start !important;
        align-self: center !important;
    }
    .col-qty {
        justify-self: end !important;
        align-self: center !important;
    }

    /* C) El total en dinero y el Botón de basura toman TODA la 3ra fila */
    .col-total-action {
        grid-column: 1 / 3 !important; 
        display: flex !important;
        flex-direction: row !important; /* Uno a cada extremo */
        justify-content: space-between !important;
        align-items: center !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important; /* Una línea separadora elegante */
        padding-top: 15px !important;
        margin-top: 5px !important;
    }
    
    /* El número total en grandote */
    .col-total-action .row-total {
        font-size: 1.4rem !important; 
        color: #4a90e2 !important;
    }

    /* Basurero un poco más grande para no borrar por accidente */
    .btn-delete-row {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
    }

    /* 4. CAJA DEL TOTAL FINAL Y BOTÓN DE PROCEDER AL PAGO */
    .group-footer {
        padding: 20px 15px !important;
    }
    
    /* Botón gigante estilo Apple/Amazon */
    .btn-pay, .checkout-btn {
        width: 100% !important;
        padding: 16px !important;
        font-size: 1.2rem !important;
        border-radius: 10px !important;
        margin-top: 15px !important;
    }
}