:root {
    --green-forest: #0c3507;
    --orange-fresh: #FF8C00;
    --champagne: #fcdb9e;
    --white: #fff5e2;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.411);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 
    margin: 0; 
    font-family: 'Poppins', sans-serif; 
    background: var(--champagne); 
    color: #333;
    overflow-x: hidden;
}

      /* Animación en bienvenida */
/* Fondo Animado "Efecto Jugo" */
/* Splash Screen Profesional */
#splash-screen {
    position: fixed;
    inset: 0;  /* Cubre toda la pantalla */
    display: flex;   /* Activa el modo flexible */
    justify-content: center;  /* Centra horizontalmente */
    align-items: center;    /* Centra verticalmente */
    background: linear-gradient(180deg, #FF8C00 0%, #e67e00 100%);
    /* background: var(--green-forest);  O el fondo animado que creamos antes */
    overflow: hidden;
    z-index: 10000;
}

/* Efecto de Líquido y Burbujas */
.liquid-container {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: url('#goo'); /* Opcional: efecto viscoso */
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    bottom: -50px;
    animation: rise 4s infinite ease-in;
}

/* Diferentes tamaños y tiempos para burbujas */
.bubble:nth-child(1) { width: 40px; height: 40px; left: 20%; animation-duration: 1s; }
.bubble:nth-child(2) { width: 20px; height: 20px; left: 50%; animation-duration: 2s; animation-delay: 1s; }
.bubble:nth-child(3) { width: 60px; height: 60px; left: 80%; animation-duration: 1s; animation-delay: 1s; }
.bubble:nth-child(1) { width: 40px; height: 30px; left: 20%; animation-duration: 1s; animation-delay: 2s;}
.bubble:nth-child(2) { width: 20px; height: 10px; left: 50%; animation-duration: 2s; animation-delay: 1s; }

@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-120vh) scale(1.5); opacity: 0; }
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Logo con efecto Vector Elegante (Glow suave) */
.vector-logo {
    width: 60vw; /* En móvil ocupa el 60% del ancho de pantalla */
    justify-content: center;
    align-items: center;
    max-width: 250px; /* En PC no se verá gigante, se detiene en 250px */
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
    animation: floating 3s infinite ease-in-out;
    margin-bottom: 20px;
    height: auto;
    display: block;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Texto Premium con Blur Fade */
.text-reveal {
    text-align: center;
    animation: blurReveal 1.5s ease-out forwards;
}

@keyframes blurReveal {
    0% { filter: blur(10px); opacity: 0; transform: translateY(20px); }
    100% { filter: blur(0); opacity: 1; transform: translateY(0); }
}

.premium-title {
    color: white;
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin: 0;
}

.premium-subtitle {
    color: #fff5e2;
    font-weight: 300;
    font-style: italic;
    opacity: 0.9;
}



/* Hero Banner */
/* 1. Hero con Slider de Fondo */
.hero-landing {
    position: relative;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-slider img {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slider img.active { opacity: 1; }

/* --- Ajustes del Hero (Contenido Estático) --- */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra todo horizontalmente */
    justify-content: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo-hero { 
    width: 120px; /* Tamaño móvil */
    height: auto;
    margin-bottom: 2px;
    transition: width 0.3s ease;
    animation: floating 3s infinite ease-in-out;    
}

.hero-content h1 {
    margin: 0;
    font-size: 1.8rem; /* Tamaño móvil */
    line-height: 1.7;
}

.hero-content p {
    margin: -5px 0 0 0; /* Sube el párrafo hacia el h1 */
    font-size: 1rem; /* Más grande en móvil */
    font-weight: 400;
    text-align: center;
}

/* --- Ajustes Escritorio (Desktop) --- */
@media (min-width: 1024px) {
    .logo-hero { width: 155px; } /* Logo más grande en PC */
    .hero-content h1 { font-size: 3rem; } /* H1 imponente en PC */
    .hero-content p { font-size: 1.4rem; }
}


/* Bottom Sheet Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end; /* Alinea al fondo */
    transition: visibility 0.3s;
}



/* 2. Categorías Animadas */
.category-block {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.category-block:active {
    transform: scale(0.95); /* Efecto de rebote al tocar */
    filter: brightness(0.9);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 15px 15px 15px; /* Alineado con el margen de las cards (15px) */
    font-size: 1.4rem;
    /*font-weight: 700; */
    color: var(--green-forest);
    border-bottom: 4px solid var(--orange-fresh); /* Detalle visual premium */
    padding-left: 10px;
}

.category-icon {
    font-size: 1.2rem; /* Tamaño del emoji */
    margin-right: -5px; /* Ajuste fino */
}

/* 3. Modal "Bottom Sheet" Premium (Tipo Rappi) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end; /* Alinea al fondo */
    transition: visibility 0.3s;
}

.modal.hidden { visibility: hidden; }

/* --- Modal Background --- */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 90, 39, 0.4); /* Verde bosque con transparencia */
    backdrop-filter: blur(4px);
}

/* --- Modal Card en Escritorio--- */
/* Estado inicial (Oculto abajo) */
.modal-card {
    position: relative;
    width: 100%;
    background: #fcdbab; /* Champán semi claro muy elegante */
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 30px 20px;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
    transform: translateY(100%); /* Empieza abajo */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal.active .modal-card {
    transform: translateY(0); /* Sube */
}

/* Control de tamaño en ESCRITORIO */
@media (min-width: 768px) {
    .modal {
        align-items: center; /* Centra el modal en medio de la pantalla en PC */
        justify-content: center;
    }
    .modal-card {
        width: 450px; /* Ancho fijo tipo celular en PC */
        border-radius: 20px; /* Bordes redondeados completos en PC */
        transform: translateY(50px); /* Empieza un poco abajo */
        opacity: 0;
        
    }
    .modal.active .modal-card {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-handle {
    width: 40px; height: 5px; background: #ccc;
    border-radius: 10px; margin: -10px auto 15px;
}

#modal-price { 
    color: #FF8C00 !important; /* Naranja Fresh forzado */
    font-size: 1.5rem; 
    font-weight: bold; 
    color: var(--orange-fresh) !important; /* Forzamos color naranja */
    font-weight: 700; 
}

.modal-info { padding: 25px; }
/* --- Texto dentro del Modal --- */
.modal-info h2 {
    margin-top: -10px; /* Sube el título h1 del modal */
    font-size: 1.6rem;
    color: var(--green-forest);
}
.modal-info p {
    font-size: 1rem; /* Un poco más grande para lectura fácil */
    line-height: 1.5;
    color: #444;
}

/* Ajuste para la imagen dentro del modal */
#modal-img-container {
    width: 100%;
    max-height: 250px; /* Limita la altura */
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.modal-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción sin deformar */
    display: block;
}

/* En escritorio, ajustamos el contenedor del modal */
@media (min-width: 768px) {
    .modal-card {
        max-height: 90vh;
        overflow-y: auto; /* Permite scroll interno si el texto es largo */
    }
}

/* Sección Categorías (Estilo imagen anexada) */
.categories-section { padding: 20px 15px; }
.section-title { font-size: 1.2rem; color: var(--green-forest); margin-bottom: 15px; }

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.category-block {
    height: 100px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-block img {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.category-block span {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.2);
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}

/* Productos */
.menu-container { padding-bottom: 50px; }

.product-card {
    background: var(--white);
    margin: 10px 15px;
    padding: 10px;
    border-radius: 15px;
    display: flex;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; }
.product-info h3 { margin: 0; font-size: 0.95rem; color: var(--green-forest); }
.product-info p { margin: 3px 0; font-size: 0.75rem; color: #6d6c6c; }
.price-tag { color: var(--orange-fresh); font-weight: bold; }

/* Modal  */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: flex-end;
    z-index: 3000; /* Aseguramos que esté por encima */
    visibility: visible;
    opacity: 1;
    transition: 0.3s;
}

.modal.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Ajuste para que no cubra toda la pantalla en PC */
.modal-card {
    width: 100%;
    max-width: 500px; /* Tamaño máximo en escritorio */
    margin: 0 auto;   /* Centra la card */
    background: #fff;
    border-radius: 25px 25px 0 0;
    position: relative;
}

/* Fix para la imagen del modal */
.modal-main-img {
    width: 100%;
    height: 250px;    /* Altura fija para control */
    object-fit: cover; /* Corta la imagen elegantemente sin deformar */
    display: block;
}

.close-btn {
    position: absolute; top: 15px; right: 15px;
    background: rgba(0,0,0,0.5); color: white;
    border: none; border-radius: 50%; width: 30px; height: 30px;
    font-size: 1.2rem; z-index: 10;
}

/* ICONO DEL WhatsApp "Solo Domicilios"--> se usa un "tooltip" animado al lado del icono. */
.wa-float { position: fixed; bottom: 20px; right: 20px; width: 55px; height: 55px; z-index: 100; }
.wa-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1000;
}

.wa-badge {
    background: #25d366;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 15px 15px 0 15px;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    
    /* Animación de "Asomarse y Guardarse" */
    animation: slideInOut 6s infinite ease-in-out;
    transform-origin: right;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes slideInOut {
    0%, 10% { transform: scaleX(0); opacity: 0; } /* Oculto */
    20%, 80% { transform: scaleX(1); opacity: 1; } /* Visible */
    90%, 100% { transform: scaleX(0); opacity: 0; } /* Se guarda */
}

/*.wa-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
}

.wa-tooltip {
    background: white;
    color: var(--green-forest);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 10px;
    box-shadow: var(--shadow);
    white-space: nowrap;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}   */






