@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;600;700;800;900&display=swap');

:root {
    --bubble-primary: #B8D060; 
    --bubble-accent: #FFB800;
    --text-main: #2CB7B3;
    --text-muted: #6c757d;
    --body-bg: #f4f5f7; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Onest', sans-serif; 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--body-bg); 
    color: #4a5568; 
}

/* =========================================
   1. ENCABEZADO (HEADER)
   ========================================= */
.slider-texto-celular {
    display: none;
}

.header-principal { width: 100%; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.header-top { display: flex; align-items: center; justify-content: space-between; background-color: #FFFFFF; padding: 15px 40px; }
.header-logo { display: flex; align-items: center; }
#logo-principal { max-height: 80px; }
.texto-logo { font-size: 1.4rem; font-weight: 900; color: #000; margin-left: 12px; letter-spacing: 0.5px; white-space: nowrap; }

.search-container { display: flex; flex: 1; max-width: 600px; margin: 0 40px; border: 1px solid #dcdcdc; border-radius: 4px; overflow: hidden; }
.search-container input { flex: 1; border: none; padding: 10px 15px; background-color: #f7f7f7; font-size: 0.95rem; outline: none; color: #333; }
.btn-buscar { background-color: var(--bubble-primary); border: none; width: 55px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: background-color 0.2s; }
.btn-buscar:hover { background-color: #2980b9; }

.header-user-cart { display: flex; align-items: center; gap: 30px; }
.user-action, .cart-action { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.icon-circle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ddd; display: flex; justify-content: center; align-items: center; color: #333; background-color: #fff; }
.action-text { font-size: 0.85rem; line-height: 1.3; color: #000; }
.action-text strong { font-size: 0.9rem; font-weight: 800; }

.header-bottom { background-color: #B8D060; width: 100%; }
.nav-black { display: flex; align-items: center; max-width: 1300px; margin: 0 auto; padding: 15px 40px; gap: 40px; }
.nav-black a { color: #000; text-decoration: none; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; transition: color 0.2s; }
.nav-black a:hover { color: var(--bubble-primary); }
.nav-cat { text-decoration: underline !important; text-underline-offset: 6px; display: flex; align-items: center; gap: 6px; }

/* MENÚ DESPLEGABLE MULTINIVEL (Cascada) */
.dropdown-categorias { position: relative; display: inline-block; }

/* Reset de listas para que no tengan viñetas */
.dropdown-contenido, .submenu-contenido { list-style: none; margin: 0; padding: 0; }

/* Caja principal del desplegable (Nivel 1) */
.dropdown-contenido { 
    display: none; 
    position: absolute; 
    background-color: #ffffff; 
    min-width: 240px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.15); 
    z-index: 2000; 
    top: 100%; 
    left: 0; 
    border-radius: 0 0 8px 8px; 
    border-top: 2px solid var(--bubble-primary); 
}

/* Mostrar Nivel 1 al pasar el mouse por "CATEGORÍAS" */
.dropdown-categorias:hover .dropdown-contenido { display: block; }

/* Estilo de los links de todos los menús */
.dropdown-contenido a { 
    color: #333 !important; 
    padding: 12px 18px; 
    text-decoration: none; 
    display: flex; 
    justify-content: space-between; /* Separa el texto de la flechita */
    align-items: center;
    font-size: 0.9rem !important; 
    font-weight: 600 !important; 
    border-bottom: 1px solid #f0f0f0; 
}

.dropdown-contenido li:last-child > a { border-bottom: none; }

.dropdown-contenido a:hover { 
    background-color: #f9f9f9; 
    color: var(--bubble-primary) !important; 
    padding-left: 22px; /* Pequeño salto a la derecha al hacer hover */
    transition: all 0.2s; 
}

.flecha-der { font-size: 1.2rem; line-height: 0; margin-left: 10px; color: #888; }

/* SUBMENÚ (Nivel 2) */
.dropdown-submenu { position: relative; }

.submenu-contenido {
    display: none;
    position: absolute;
    top: 0;
    left: 100%; /* Se abre hacia la derecha del menú padre */
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 0 8px 8px 8px;
    border-left: 2px solid var(--bubble-primary); /* Rayita azul para indicar el salto */
}

/* Mostrar Nivel 2 al pasar el mouse por las opciones principales */
.dropdown-submenu:hover .submenu-contenido { display: block; }

/* Corrección en celulares para que el menú no se salga de la pantalla */
@media (max-width: 900px) {
    .submenu-contenido {
        left: 0;
        top: 100%;
        position: relative;
        box-shadow: none;
        border-left: none;
        border-top: 1px solid #eee;
        padding-left: 15px;
    }
}

/* =========================================
   2. BANNERS SUPERIORES 
   ========================================= */
.banners-superiores { max-width: 1300px; margin: 40px auto 0 auto; padding: 0 40px; }
.contenedor-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.banner-item { position: relative; height: 180px; border-radius: 12px; overflow: hidden; display: block; background-color: #ffffff; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.banner-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.banner-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; transition: background-color 0.3s ease; }
.banner-item:hover .banner-overlay { background-color: rgba(0,0,0,0.55); }
.banner-item:hover img { transform: scale(1.05); }
.banner-overlay h3 { color: #ffffff; font-size: 2rem; font-weight: 900; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }

/* =========================================
   3. SECCIÓN BIENVENIDOS
   ========================================= */
.seccion-bienvenidos {
    text-align: center;
    max-width: 900px;
    margin: 50px auto 10px auto;
    padding: 0 20px;
}
.seccion-bienvenidos h2 { font-size: 2.2rem; color: #000000; font-weight: 900; margin-bottom: 15px; text-transform: uppercase; }
.seccion-bienvenidos p { font-size: 1.1rem; color: #555555; line-height: 1.6; }

/* =========================================
   4. SECCIÓN DESTACADOS Y PROMOCIONES
   ========================================= */
.fondo-gris-destacados { background-color: #dee4e0; width: 92%; max-width: 1300px; margin: 30px auto 40px auto; padding: 35px 40px; border-radius: 16px; }
.seccion-destacados { width: 100%; }
.titulo-destacados { font-size: 1.8rem; color: #333; font-weight: 400; margin-bottom: 25px; text-align: left; }
.grilla-destacados { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.tarjeta-destacado { background: transparent; display: flex; flex-direction: column; text-align: left; cursor: pointer; transition: transform 0.3s ease; }
.tarjeta-destacado:hover { transform: translateY(-5px); }
.imagen-destacado { position: relative; background-color: #ffffff; width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: box-shadow 0.3s ease; }
.tarjeta-destacado:hover .imagen-destacado { box-shadow: 0 8px 15px rgba(0,0,0,0.08); }
.imagen-destacado img { max-width: 80%; max-height: 80%; object-fit: contain; }

.info-destacado { display: flex; flex-direction: column; flex-grow: 1; }
.info-destacado h3 { font-size: 0.95rem; color: #333; font-weight: 400; margin-bottom: 5px; padding: 0; }

.precio-y-botones { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 5px; }
.precio-nuevo { font-size: 1.15rem; color: #000000; font-weight: 800; }
.botones-cantidad-destacado { display: flex; align-items: center; gap: 8px; }

.btn-restar-destacado, .btn-agregar-destacado { background-color: #ffffff; color: #000000; border: 1px solid #000000; width: 28px; height: 28px; border-radius: 4px; font-weight: 900; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.2s ease; }
.btn-restar-destacado:hover, .btn-agregar-destacado:hover { background-color: #000000; color: #ffffff; }
.btn-restar-destacado:active, .btn-agregar-destacado:active { transform: scale(0.9); }
.cantidad-prod { font-weight: 800; color: #000000; font-size: 1.1rem; min-width: 15px; text-align: center; }

/* =========================================
   5. CATÁLOGO COMPLETO (Vista de Productos)
   ========================================= */
.contenedor-catalogo { max-width: 1300px; margin: 40px auto; padding: 0 40px; }
.titulo-catalogo-principal { font-size: 2.5rem; color: #000; font-weight: 900; margin-bottom: 40px; border-bottom: 3px solid #ededed; padding-bottom: 10px; }
.titulo-categoria { font-size: 1.8rem; color: #333; font-weight: 800; margin: 50px 0 20px 0; scroll-margin-top: 120px; }
.grilla-catalogo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* =========================================
   6. FOOTER EN BLANCO Y NEGRO
   ========================================= */
.footer-completo { background-color: #B8D060; color: #000; padding: 40px 40px 15px 40px; margin-top: 50px; }
.footer-columnas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1300px; margin: 0 auto; border-bottom: 1px solid #333333; padding-bottom: 30px; }
.col-footer h4 { font-size: 0.9rem; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }

.col-footer ul { list-style: none; padding: 0; }
.col-footer ul li { margin-bottom: 12px; }
.col-footer ul li a, .col-footer ul li { color: #000; text-decoration: none; font-size: 0.95rem; transition: color 0.2s; line-height: 1.4; }
.col-footer ul li a:hover { color: #dee4e0; }

.iconos-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.iconos-badges span { background-color: #dee4e0; color: #000000; padding: 5px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 800; }

.redes-sociales { margin-bottom: 15px; }
.link-ig { display: inline-flex; align-items: center; gap: 8px; color: #000; text-decoration: none; font-size: 1rem; font-weight: 600; transition: color 0.2s, transform 0.2s; }
.link-ig:hover { color: #dee4e0; transform: translateX(4px); }

.form-newsletter { display: flex; margin-top: 15px; }
.form-newsletter input { flex-grow: 1; padding: 10px 15px; background-color: transparent; border: 1px solid #555555; color: #ffffff; font-size: 0.9rem; outline: none; border-right: none; }
.form-newsletter input::placeholder { color: #888888; }
.form-newsletter button { background-color: #dee4e0; color: #000000; border: 1px solid #ffffff; padding: 0 15px; cursor: pointer; font-weight: 900; font-size: 1.2rem; transition: background-color 0.2s; }
.form-newsletter button:hover { background-color: #cccccc; }

.footer-legal { text-align: center; padding-top: 20px; color: #777777; font-size: 0.85rem; }

/* =========================================
   7. MODALES (CARRITO Y CÓMO COMPRAR)
   ========================================= */
.modal-oculto { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(3px); justify-content: center; align-items: center; }
.modal-contenido { background-color: var(--body-bg); padding: 30px; width: 90%; max-width: 420px; border-radius: 12px; position: relative; max-height: 80vh; overflow-y: auto; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.modal-contenido h2 { color: #000000; border-bottom: 2px solid #e1d8cd; padding-bottom: 10px; margin-bottom: 20px; font-weight: 900;}
.cerrar-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #000000; transition: color 0.2s;}
.cerrar-modal:hover { color: #e06c6c; }

#lista-pedido-modal { list-style: none; margin-bottom: 20px; }
#lista-pedido-modal li { display: flex; justify-content: space-between; border-bottom: 1px solid #e1d8cd; padding: 12px 0; color: #4a5568; font-weight: 700;}
.item-modal { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e1d8cd; padding: 10px 0; }
.info-item-modal { display: flex; align-items: center; gap: 10px; }
.btn-quitar-modal { background-color: #e06c6c; color: white; border: none; width: 24px; height: 24px; border-radius: 4px; cursor: pointer; font-weight: bold; display: flex; justify-content: center; align-items: center; font-size: 1rem; transition: background-color 0.2s;}
.btn-quitar-modal:hover { background-color: #d15b5b; }

.total-modal { font-size: 1.6rem; font-weight: 900; text-align: right; color: #000000; margin-top: 20px; margin-bottom: 20px; padding-top: 15px; border-top: 2px solid #000000;}
.btn-whatsapp-modal { width: 100%; background-color: #000000; color: #ffffff; border: 2px solid #000000; padding: 15px; border-radius: 4px; font-size: 1.1rem; font-weight: 800; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px;}
.btn-whatsapp-modal:hover { background-color: #ffffff; color: #000000; }

.texto-como-comprar p { font-size: 1.1rem; color: #444; margin-bottom: 15px; line-height: 1.5; }
.texto-como-comprar strong { color: #000; }

/* =========================================
   8. ESTILOS DEL FORMULARIO DE CHECKOUT
   ========================================= */
.grupo-input {
    margin-bottom: 18px;
    text-align: left;
}

.grupo-input label {
    display: block;
    font-weight: 700;
    color: #000000;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.grupo-input input, .grupo-input select, .grupo-input textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: 'Onest', sans-serif;
    font-size: 1rem;
    outline: none;
    background-color: #ffffff;
    color: #333333;
    transition: border-color 0.2s;
}

/* Cuando hacés clic para escribir, se pone el borde negro */
.grupo-input input:focus, .grupo-input select:focus {
    border-color: #000000;
}

/* =========================================
   9. EFECTO HOVER EN PROMOCIONES (DETALLE)
   ========================================= */
.detalle-promo {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo negro semi-transparente elegante */
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0; /* Arranca invisible */
    transition: opacity 0.3s ease;
    padding: 15px;
    z-index: 10;
}

/* Cuando paso el mouse por la tarjeta, el detalle se hace visible */
.tarjeta-destacado:hover .detalle-promo {
    opacity: 1;
}

.detalle-promo ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detalle-promo li {
    color: #ffffff;
    font-size: 0.85rem;
    margin-bottom: 6px;
    line-height: 1.3;
    font-weight: 600;
    text-align: left;
}

.detalle-promo li::before {
    content: "✔ "; /* Le ponemos un tilde a cada ítem */
    color: #25d366; 
}

/* =========================================
   ESTILOS PARA SELECTOR DE AROMAS E IMÁGENES
   ========================================= */
.contenedor-select-aroma {
    margin: 8px 0;
    width: 100%;
}

.select-aroma {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #000000;
    border-radius: 4px;
    font-family: 'Onest', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    background-color: #ffffff;
    color: #000000;
    outline: none;
    cursor: pointer;
}

/* Redimensionar las imágenes de los bancos en el footer de forma prolija */
.img-badge-pago {
    height: 28px;
    width: auto;
    object-fit: contain;
    background-color: #ffffff; /* Le da un fondo blanco limpio si la imagen es transparente */
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}
/* =========================================
   EVITAR QUE EL TEXTO DESAPAREZCA AL TOCAR
   ========================================= */
.nav-black a, 
.nav-black a:visited, 
.nav-black a:active, 
.nav-black a:focus {
    color: #000000 !important; /* Fuerza a que siempre sea negro */
    -webkit-tap-highlight-color: transparent; /* Le saca el sombreado gris feo de Android/iOS */
}

/* Apagamos el efecto de "pasar el mouse" solo en los celulares para que no se trabe */
@media (max-width: 1024px) {
    .nav-black a:hover {
        color: #000000 !important;
    }
}
/* =========================================
   10. RESPONSIVE (CELULARES)
   ========================================= */
@media (max-width: 1024px) {
    .header-top { padding: 15px 20px; }
    .nav-black { padding: 15px 20px; gap: 20px;}
    .search-container { margin: 0 15px; }
    .footer-columnas { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .grilla-catalogo { grid-template-columns: repeat(3, 1fr); }
}

/* CLASES EXTRAS PARA CELULARES (Menú y Toques) */
.tarjeta-destacado:hover .detalle-promo,
.tarjeta-destacado.activo-touch .detalle-promo {
    opacity: 1;
}
.mostrar-menu-celular {
    display: block !important;
}

@media (max-width: 600px) {
    /* =========================================
       SLIDER SUPERIOR Y ENCABEZADO (CELULARES)
       ========================================= */
    
    /* Cinta de texto deslizante */
    .slider-texto-celular {
        display: block; 
        background-color: #53c4e5; 
        color: #000;
        font-size: 0.65rem;
        font-weight: 600;
        
        /* LA MAGIA PARA LA BATERÍA Y LA HORA ESTÁ ACÁ */
        padding-top: max(env(safe-area-inset-top), 15px); /* Empuja el texto hacia abajo */
        padding-bottom: 6px; 
        
        overflow: hidden;
        white-space: nowrap;
    }

    .slider-track {
        display: inline-flex; /* Mejoramos la forma en que se alinean para que no haya cortes */
        width: max-content; /* Le dice que se estire todo lo necesario para que entren las 6 frases */
        animation: deslizarTexto 20s linear infinite; /* Le subí un poquito el tiempo a 20s para que no maree, podés bajarlo si lo querés más rápido */
    }

    .slider-track span {
        margin-right: 40px; 
    }

    @keyframes deslizarTexto {
        0% { transform: translateX(0); } /* ¡Arranca ya visible en la pantalla! */
        100% { transform: translateX(-50%); } /* Se mueve hasta la mitad y hace un bucle invisible */
    }

    /* Logo y Carrito en el primer renglón */
    .header-top { 
        display: flex; 
        flex-direction: row; 
        flex-wrap: wrap; /* CLAVE: permite que el buscador caiga abajo */
        justify-content: space-between; 
        align-items: center; 
        padding: 10px 12px; 
        gap: 0; 
    }
    
    .header-logo { width: auto; justify-content: flex-start; order: 1; }
    .texto-logo { display: none; }
    
    .header-user-cart { display: flex; width: auto; gap: 8px; order: 2; }
    .user-action { display: none; } 
    .action-text { display: block; font-size: 0.65rem; }
    .icon-circle { width: 34px; height: 34px; }
    
    /* Buscador ocupando todo el segundo renglón */
    .search-container { 
        order: 3; 
        width: 100%; 
        flex: 0 0 100%;
        max-width: none; 
        margin: 12px 0 0 0; 
        height: 38px; 
        display: flex;
    }
    
    .search-container input { 
        width: 100%;
        min-width: 0; 
        padding: 0 10px; 
        font-size: 13px !important; 
    }
    
    .btn-buscar { 
        width: 42px; 
        flex-shrink: 0; 
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .btn-buscar svg {
        width: 18px; 
        height: 18px;
    }
    /* 2. Arreglar el Menú que se cortaba o desaparecía */
    /* 2. Menú en un solo renglón (Letra chica para que entre todo) */
    .nav-black { 
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap; /* Fuerza a que todo se quede en una sola línea */
        justify-content: space-evenly; /* Reparte el espacio por igual */
        align-items: center;
        padding: 10px 2px; /* Casi nada de margen a los costados */
        gap: 0; /* Quitamos el hueco grande entre palabras */
        overflow: visible; /* Necesario para que el desplegable no se corte */
    }

    /* Achicamos la letra de los botones principales para que entren */
    .nav-black > a, .nav-cat {
        font-size: 0.65rem !important; /* Letra bien chiquita (aprox 10px) */
        padding: 5px 4px; /* Relleno mínimo */
        white-space: nowrap; /* Prohíbe que "CÓMO COMPRAR" se parta en dos renglones */
    }

    /* Achicamos un poquito la flecha de Categorías para que no ocupe lugar */
    .nav-cat svg {
        width: 10px;
        height: 10px;
        margin-left: 2px;
    }

/* Esconder el botón de contacto solo en celulares */
    .oculto-en-celular {
        display: none !important;
    }

    
    .banners-superiores { padding: 0 15px; }
    .contenedor-banners { grid-template-columns: 1fr; gap: 15px; }
    .banner-item { height: 120px; }
    
    .seccion-bienvenidos { margin-top: 30px; }
    .seccion-bienvenidos h2 { font-size: 1.6rem; }
    .seccion-bienvenidos p { font-size: 1rem; }

    .fondo-gris-destacados { width: 94%; padding: 25px 15px; margin: 20px auto; border-radius: 12px;}
    .seccion-destacados { padding: 0; }
    .grilla-destacados { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 15px; gap: 15px;}
    .tarjeta-destacado { min-width: 180px; scroll-snap-align: start; }
    
    .contenedor-catalogo { padding: 0 15px; margin: 20px auto; }
    .titulo-catalogo-principal { font-size: 2rem; margin-bottom: 20px; }
    .grilla-catalogo { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .titulo-categoria { margin-top: 30px; font-size: 1.4rem; scroll-margin-top: 140px; }

    .footer-completo { padding: 40px 20px 20px 20px; }
    .footer-columnas { grid-template-columns: 1fr; gap: 30px; }
}

/* =========================================
   BLOQUEO DEFINITIVO DE ZOOM (iOS Y ANDROID)
   ========================================= */

/* 1. Obligamos a que botones y links no registren el "doble toque" */
button, a, .btn-agregar-destacado, .btn-restar-destacado {
    touch-action: manipulation !important;
}

/* 2. Regla estricta de Apple: Todo texto editable debe medir 16px mínimo */
.search-container input,
.select-aroma,
.grupo-input input, 
.grupo-input select, 
.grupo-input textarea {
    font-size: 16px !important; 
}