/* =========================================
   ESTILOS ORIGINALES DE CHALALA (LIMPIOS)
   ========================================= */
   :root {
    --primario: #ffffff;
    --oscuro: #1a1a1a;
    --blanco: #ffffff;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Lora', serif;
    overflow-x: hidden;
    background-color: var(--oscuro);
    color: var(--blanco);
}

/* 1. LÓGICA MAESTRA DE SECCIONES (Alineación Superior Estricta) */
.section-module {
    display: none; 
    animation: fadeIn 0.5s ease-out; 
}

/* Todas las secciones inician activas ARRIBA, debajo del Navbar */
.section-module.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Fuerza TODO hacia arriba */
    padding-top: 100px !important; /* Espacio para que el Navbar no estorbe */
    min-height: 100vh !important;
    width: 100%;
    box-sizing: border-box;
}

/* Eliminar márgenes invisibles de los títulos que empujan hacia abajo */
.section-module.active h2 {
    margin-top: 0 !important;
}

/* 2. EXCEPCIÓN 1: EL INICIO (Único centrado) */
#inicio.active {
    justify-content: center !important; /* Centra "Tu pausa perfecta" */
    padding-top: 0 !important;
}

/* 3. EXCEPCIÓN 2: DASHBOARD (Usa Grid, pero alineado arriba) */
#perfil.active, #carrito.active, #pedidos.active {
    display: grid !important;
    grid-template-columns: 1fr 350px !important;
    gap: 40px !important;
    align-items: start !important; /* Cuadros inician arriba */
    align-content: start !important; /* Rejilla inicia arriba */
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
}

/* AJUSTE PARA MÓVILES */
@media (max-width: 1000px) {
    #perfil.active, #carrito.active, #pedidos.active {
        grid-template-columns: 1fr !important;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   NAVEGACIÓN Y COMPONENTES
   ========================================= */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background: rgba(0,0,0,0.95);
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #333;
}
.navbar .logo { font-family: 'Oswald', sans-serif; font-size: 1.5rem; letter-spacing: 2px; cursor: pointer; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: white; text-decoration: none; text-transform: uppercase; font-size: 0.9rem; cursor: pointer; transition: color 0.3s; padding: 5px 0; }
.nav-links a:hover { color: var(--primario); }
.nav-links a.active-link { color: var(--primario); border-bottom: 2px solid var(--primario); }

/* HERO & UI ELEMENTS */
.hero {
    min-height: calc(100vh - 70px); 
    background: linear-gradient(rgba(15, 13, 13, 0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&q=80&w=2070');
    background-size: cover; background-position: center; margin: 0;
}
.hero-content { margin: 0 !important; padding: 20px; text-align: center; }

.btn-primary { background: var(--primario); color: black; padding: 12px 30px; border: none; font-family: 'Oswald', sans-serif; cursor: pointer; display: inline-block; margin-top: 20px; transition: transform 0.2s; }
.btn-primary:hover { transform: scale(1.05); background: #e0b183; }

.btn-add { background: transparent; border: 1px solid var(--primario); color: var(--primario); padding: 8px 20px; cursor: pointer; font-family: 'Oswald'; transition: 0.3s; text-transform: uppercase; }
.btn-add:hover { background: var(--primario); color: black; }

/* FOOTER */
.giltech-signature { text-align: center; padding: 20px; font-size: 0.8rem; border-top: 1px solid #333; background: #000; margin-top: auto; }
.giltech-signature strong { color: #00a8ff; }

.container { padding: 50px 10%; width: 80%; }
h2 { font-family: 'Oswald', sans-serif; font-size: 2.5rem; text-align: center; margin-bottom: 40px; color: var(--primario); }

/* =========================================
   GRID DEL MENÚ Y PRODUCTOS
   ========================================= */
.menu-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 40px; max-width: 1000px; margin: 0 auto;
}
.menu-item {
    background: #1a1a1a; padding: 25px; border: 1px solid #333; border-radius: 4px; position: relative; transition: all 0.3s ease; text-align: center;
}
.menu-item:hover { border-color: var(--primario); transform: translateY(-5px); }
.menu-item img { width: 100px; height: 100px; border-radius: 50%; border: 2px solid #444; margin-bottom: 15px; object-fit: cover; }
.menu-item h3 { font-family: 'Oswald'; font-size: 1.3rem; margin: 10px 0; }
.menu-item p { font-size: 0.9rem; color: #ccc; }

.price-table { width: 100%; margin: 20px 0; border-top: 1px solid #333; font-family: 'Oswald', sans-serif; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #333; }
.promo-row { background: rgba(0, 168, 255, 0.05); border-radius: 4px; padding: 8px 5px; color: #00a8ff; }

/* Carrito y Formularios */
.cart-container, .contact-form { background: #222; padding: 30px; border-radius: 10px; width: 100%; max-width: 600px; margin: 0 auto; border: 1px solid #333; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #444; }
input, textarea { width: 100%; background: #111; border: 1px solid #444; padding: 15px; color: white; margin-bottom: 15px; box-sizing: border-box; }

/* PREPARACIÓN (Carrusel) */
   .prep-container { 
    display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: center; 
    background: #ffffff; padding: 40px; border-radius: 8px; max-width: 900px; margin: 0 auto; color: #000; 
}

.prep-text-side { flex: 1; min-width: 300px; }

.prep-title { 
    font-family: 'Oswald', sans-serif; letter-spacing: 3px; font-weight: 600; 
    margin-bottom: 30px; text-transform: uppercase; color: #000; border: none; text-align: left; margin-top: 0; 
}

.prep-list { text-align: left; display: inline-block; max-width: 90%; list-style: none; padding: 0; }
.prep-list li { margin-bottom: 15px; line-height: 1.6; position: relative; padding-left: 20px; transition: all 0.3s ease; opacity: 0.4; transform: translateX(0); }
.prep-list li::before { content: "•"; position: absolute; left: 0; font-weight: bold; }
.prep-list li.step-active { opacity: 1; color: #000; font-weight: bold; transform: translateX(10px); border-left: 3px solid #00a8ff; padding-left: 15px; }

.prep-footer { 
    margin-top: 40px; font-family: 'Oswald', sans-serif; text-transform: uppercase; 
    letter-spacing: 2px; text-align: left; border-top: 1px solid #eee; padding-top: 15px; 
}

/* CARRUSEL Y FOTOS */
.prep-visual-side { 
    flex: 1; min-width: 300px; height: 350px; position: relative; 
    overflow: visible !important; border-radius: 8px; border: 1px solid #ddd; 
}

.prep-image { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: imageFade 12s infinite; }
.prep-image:nth-child(2) { animation-delay: 4s; }
.prep-image:nth-child(3) { animation-delay: 8s; }

/* FLECHAS EXTERNAS */
.nav-arrow { 
    position: absolute; top: 50%; transform: translateY(-50%); background: #000; color: #fff; 
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    cursor: pointer; border: 2px solid #fff; z-index: 100; 
}
.prev-arrow { left: -20px; }
.next-arrow { right: -20px; }
/* MENÚ DESPLEGABLE DE PERFIL */
#profile-dropdown { display: none; position: absolute; right: 0; top: 55px; background: rgba(26, 26, 26, 0.98); border: 1px solid #444; border-radius: 12px; width: 220px; z-index: 1100; box-shadow: 0 10px 30px rgba(0,0,0,0.7); overflow: hidden; backdrop-filter: blur(10px); }
.dropdown-header { padding: 20px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid #333; }
.dropdown-header strong { display: block; color: var(--primario); font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.dropdown-header span { font-size: 0.75rem; color: #888; }
.dropdown-link { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: #ddd; text-decoration: none; font-size: 0.85rem; font-family: 'Oswald', sans-serif; transition: all 0.3s ease; cursor: pointer; border-left: 3px solid transparent; }
.dropdown-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--primario); border-left: 3px solid var(--primario); }
.dropdown-exit { color: #ff4d4d !important; border-top: 1px solid #333; }

/* GOOGLE REVIEWS */
.google-reviews-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; width: 100%; margin-bottom: 40px; }
.review-card { background: #222; padding: 20px; border-radius: 8px; border: 1px solid #333; text-align: left; }
.stars { color: #FFD700; text-shadow: 0 0 5px rgba(255, 215, 0, 0.2); font-size: 0.9rem; margin-bottom: 10px; }
/* =========================================
   DISEÑO PREMIUM DE CARRITO Y NOTIFICACIÓN
   ========================================= */
   .cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

/* Estilo del ícono SVG (Amarillo Neón) */
.cart-svg {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    flex-shrink: 0;
    stroke: #FFD814 !important; /* Amarillo Amazon / GilTech */
    stroke-width: 2px !important; 
    filter: drop-shadow(0 0 5px rgba(255, 216, 20, 0.6)); /* Resplandor */
    transition: all 0.3s ease;
}

/* Al pasar el mouse se ilumina en blanco */
.cart-icon-wrapper:hover .cart-svg {
    stroke: #ffffff !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
    transform: scale(1.1);
}

/* Burbuja de notificación (Integrada al diseño) */
.cart-badge {
    position: absolute;
    top: -8px;  
    right: -12px;
    background-color: #FFD814; /* Fondo amarillo en lugar de rojo */
    color: #1a1a1a; /* Texto oscuro para contraste agresivo */
    border-radius: 50%; /* Círculo perfecto */
    min-width: 22px;
    height: 22px;
    font-size: 0.85rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    display: flex; 
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
    border: 2px solid #1a1a1a; /* Borde oscuro para que se funda con el Navbar */
    z-index: 10;
    pointer-events: none;
    /* Animación de rebote suave */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* El salto cuando agregas un producto */
.cart-badge.pop {
    transform: scale(1.4);
}
/* =========================================
   ESTILOS DE FORMULARIO DE DIRECCIÓN (AMAZON STYLE)
   ========================================= */
   .form-label {
    font-size: 0.75rem;
    color: #888;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 10px;
    background: #111;
    color: white;
    border: 1px solid #444;
    border-radius: 4px;
    font-family: 'Lora', serif;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #FFD814; /* Amarillo Amazon / GilTech */
    outline: none;
}

.form-input.readonly {
    background: #1a1a1a;
    color: #666;
    cursor: not-allowed;
    border-color: #222;
}