/* Variables de los colores */
:root {
    --color-rojo: #eb5e46;    
    --color-turquesa: #46b1c9; 
    --color-amarillo: #f9b03d; 
    --color-carbon: #4a4a49;   
    --color-fondo: #ffffff;
    --color-header: #4a4a49;   
    --color-desc: #666666;     
    --color-caja: #e0e0e0;     
    --font-main: 'Poppins', sans-serif;
}

/* Variables tema de las bebidas */
body.theme-bebidas {
    --color-rojo: #5c4033;
    --color-turquesa: #7b9e87; 
    --color-amarillo: #d4a373; 
}

/* Tema oscuro */
body.dark-mode {
    --color-fondo: #242424;   
    --color-carbon: #f5f5f5;  
    --color-header: #1a1a1a;  
    --color-desc: #aaaaaa;
    --color-caja: #333333;    
}
body.dark-mode.theme-bebidas { --color-rojo: #e6b981; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--color-fondo);
    color: var(--color-carbon);
    line-height: 1.5;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Header */
.header {
    background-color: var(--color-header);
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease;
}
.nav-content {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto;
}
.logo-area { display: flex; align-items: center; }
.logo-imagen { height: 70px; width: auto; object-fit: contain; }

/* Botones Flotantes (Modo Oscuro y Flecha de Volver) */
.theme-toggle, .back-btn {
    position: fixed;
    top: 115px; 
    background-color: var(--color-carbon);
    color: var(--color-fondo);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.4s ease, color 0.4s ease;
}
.theme-toggle { right: 20px; }
.back-btn { 
    left: 20px; 
    background-color: var(--color-rojo); 
    color: white; 
    display: none; /* Se oculta por defecto, JS lo muestra */
    font-size: 1.2rem;
    padding-right: 3px; /* Pequeño ajuste para centrar la flecha */
}

.theme-toggle:hover { transform: scale(1.1); }
.back-btn:hover { transform: scale(1.1); background-color: var(--color-carbon); }

/* Hamburguesa */
.menu-toggle {
    display: none; flex-direction: column; justify-content: space-between;
    width: 30px; height: 22px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001;
}
.menu-toggle span { width: 100%; height: 3px; background-color: white; border-radius: 2px; transition: all 0.3s ease; }

.main-nav ul { list-style: none; display: flex; gap: 20px; }
.main-nav a { text-decoration: none; color: #ffffff; font-size: 0.85rem; text-transform: uppercase; padding-right: 15px; border-right: 1px solid #666; }
.main-nav li:last-child a { border-right: none; }

/* Contenido Principal */
.main-content { margin-top: 120px; padding: 40px 20px; }
.content-container { max-width: 1100px; margin: 0 auto; }

/* 
   SISTEMA DE PANTALLAS (VIEWS)
    */
.view-section {
    display: none; 
    animation: fadeInRight 0.4s ease-in-out;
}
.view-section.active {
    display: block; 
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 
   MENÚ RÁPIDO (TARJETAS GRANDES INICIO)
    */
.category-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding-bottom: 20px;
}
.category-card {
    background-color: var(--color-caja); border-radius: 15px; padding: 25px 20px;
    text-align: center; cursor: pointer; transition: transform 0.3s ease, background-color 0.4s ease;
    border-bottom: 4px solid var(--color-amarillo); box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.category-card:hover { transform: translateY(-5px); background-color: var(--color-header); }
.category-card h3 { font-size: 1.5rem; color: var(--color-rojo); margin-bottom: 5px; transition: color 0.3s ease; }
.category-card p { font-size: 0.9rem; color: var(--color-desc); transition: color 0.3s ease; }
.category-card:hover h3, .category-card:hover p { color: #ffffff; }

/* Estilos para las imágenes de portada en el menú de inicio */
.category-image {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: var(--color-caja);
}
.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.category-card:hover .category-image img {
    transform: scale(1.1);
}

/* Títulos y separadores */
.section-title { font-size: 1.6rem; font-weight: 600; margin-top: 15px; margin-bottom: 5px; color: var(--color-rojo); transition: color 0.4s ease; }
.sub-section-title { font-size: 1.2rem; font-weight: 600; color: var(--color-carbon); margin-top: 25px; margin-bottom: 15px; border-left: 4px solid var(--color-amarillo); padding-left: 10px; transition: border-color 0.4s ease, color 0.4s ease; }
.divider { border: none; border-top: 2px solid var(--color-amarillo); margin: 15px 0 25px 0; transition: border-color 0.4s ease; }
.category-spacing { height: 35px; width: 100%; display: block; }

/* Leyenda de Especialidad (La burbuja gris redondita) */
.especialidad-pill {
    display: flex; align-items: center; justify-content: center; gap: 12px; 
    background-color: var(--color-caja); padding: 8px 20px; border-radius: 25px; 
    max-width: fit-content; margin: 0 auto 30px auto; transition: background-color 0.4s ease;
}
.especialidad-pill img { width: 25px; height: 25px; object-fit: contain; }
.especialidad-pill span { font-size: 0.85rem; color: var(--color-carbon); font-weight: 600; transition: color 0.4s ease; }

/* Grid de los Platillos y Bebidas */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
@media (min-width: 768px) { .menu-grid { gap: 30px; } }
@media (min-width: 1024px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }

.menu-item { display: flex; flex-direction: column; transition: transform 0.3s ease; }
.menu-item:hover { transform: translateY(-8px); }

.item-image-wrapper {
    width: 100%; aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 10px;
    background-color: var(--color-caja); border-bottom: 4px solid var(--color-amarillo); 
    position: relative; display: flex; align-items: center; justify-content: center;
    transition: border-color 0.4s ease, background-color 0.4s ease; 
}
.item-image-wrapper > img { width: 100%; height: 100%; object-fit: cover; }

.item-text-wrapper { text-align: left; }
.item-name { font-size: 0.95rem; font-weight: 600; color: var(--color-carbon); margin-bottom: 5px; transition: color 0.4s ease; }
.item-desc { font-size: 0.75rem; color: var(--color-desc); margin-bottom: 8px; line-height: 1.3; transition: color 0.4s ease; }
.item-price { font-size: 1rem; font-weight: 600; color: var(--color-rojo); transition: color 0.4s ease; }

@media (min-width: 768px) {
    .item-name { font-size: 1.1rem; }
    .item-desc { font-size: 0.9rem; margin-bottom: 10px; line-height: 1.4; }
    .item-price { font-size: 1.1rem; }
}

/* Animacion de mini carrusel (Para los Huevos al Gusto) */
.mini-carrusel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.mini-carrusel img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: desvanecer 9s infinite; }
.mini-carrusel .slide-0 { animation-delay: 0s; }
.mini-carrusel .slide-1 { animation-delay: 3s; }
.mini-carrusel .slide-2 { animation-delay: 6s; }
@keyframes desvanecer { 0% { opacity: 0; } 10% { opacity: 1; } 33% { opacity: 1; } 43% { opacity: 0; } 100% { opacity: 0; } }

/* Extras */
.extras-container { max-width: 600px; margin: 0 auto; }
.extra-item {
    display: flex; justify-content: space-between; align-items: center; padding: 15px 15px;
    border-bottom: 2px dotted var(--color-desc); transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 8px; margin-bottom: 5px;
}
.extra-item:hover { background-color: var(--color-caja); transform: translateX(5px); }
.extra-name { font-size: 1.1rem; font-weight: 600; color: var(--color-carbon); transition: color 0.4s ease; }
.extra-price { font-size: 1.1rem; font-weight: 700; color: var(--color-rojo); transition: color 0.4s ease; }

/* Footer */
.footer {
    background-color: var(--color-header); color: #fff; padding: 50px 20px 20px 20px; 
    margin-top: 60px; font-family: var(--font-main); text-align: center; font-size: 0.85rem; transition: background-color 0.4s ease;
}
.footer-container { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
.footer-column { display: flex; flex-direction: column; }
.footer-title { color: var(--color-amarillo); font-size: 1.1rem; margin-bottom: 12px; font-weight: 600; }
.footer-text { font-size: 0.95rem; color: #cccccc; margin-bottom: 6px; line-height: 1.4; }
.footer-socials { display: flex; gap: 15px; margin-top: 8px; }
.footer-socials img { width: 32px; height: 32px; object-fit: contain; transition: transform 0.3s ease; }
.footer-socials img:hover { transform: scale(1.15); }
.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #666; font-size: 0.85rem; color: #999999; }

/* 
   EFECTO: BEBIDAS DE TEMPORADA
    */
.title-temporada {
    color: var(--color-turquesa) !important;
    border-left-color: var(--color-rojo) !important;
    display: inline-block;
    animation: latido-temporada 2.5s infinite ease-in-out;
}

/* Animación sutil de latido y resplandor */
@keyframes latido-temporada {
    0% { transform: scale(1); text-shadow: 0 0 0px transparent; }
    50% { transform: scale(1.02); text-shadow: 0 0 10px rgba(70, 177, 201, 0.4); }
    100% { transform: scale(1); text-shadow: 0 0 0px transparent; }
}

/* ==========================================
   ESTILOS PANTALLA DE INICIO (PRESENTACIÓN)
   ========================================== */
.hero-split {
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: center; 
    gap: 40px; 
    margin-bottom: 80px; 
    padding: 20px;
}

/* Contenedor del video en formato vertical (celular 9:16) */
.hero-video-container {
    flex: 1; 
    min-width: 280px; 
    max-width: 350px; /* Lo mantenemos angosto para que parezca celular */
    background-color: var(--color-caja); 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    aspect-ratio: 9 / 16; /* Formato vertical exacto */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative;
    margin: 0 auto;
}

.hero-text-container {
    flex: 1; 
    min-width: 300px; 
    max-width: 500px; 
    text-align: center;
}

.hero-logo-img {
    height: 100px; 
    margin-bottom: 20px; 
    object-fit: contain;
}

.hero-title {
    font-size: 2rem; 
    color: var(--color-turquesa); 
    margin-bottom: 15px; 
    letter-spacing: 2px;
}

.hero-desc {
    color: var(--color-desc); 
    font-size: 1.1rem; 
    line-height: 1.6; 
    margin-bottom: 30px;
}

/* Botón principal */
.btn-primary {
    font-size: 1.1rem; 
    padding: 12px 40px; 
    border-radius: 30px; 
    cursor: pointer; 
    background-color: var(--color-rojo); 
    color: white; 
    border: none; 
    font-weight: bold; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Grid de categorías destacadas */
.highlights-section {
    text-align: center; 
    margin-bottom: 50px;
}

.highlights-desc {
    color: var(--color-desc); 
    max-width: 800px; 
    margin: 0 auto 50px auto; 
    font-size: 1rem; 
    line-height: 1.6; 
    padding: 0 20px;
}

.highlights-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 40px; 
    padding: 0 20px;
}

.highlight-card {
    text-align: center; 
    cursor: pointer; 
    transition: transform 0.3s ease; 
    text-decoration: none; 
    color: inherit; 
    display: block;
}

.highlight-card:hover {
    transform: scale(1.05);
}

.highlight-img-wrapper {
    width: 100%; 
    aspect-ratio: 4 / 3; 
    overflow: hidden; 
    border-radius: 10px; 
    margin-bottom: 20px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.highlight-img-wrapper img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

.highlight-title {
    color: var(--color-amarillo); 
    font-size: 1.2rem; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border-bottom: 2px solid var(--color-amarillo); 
    display: inline-block; 
    padding-bottom: 5px;
}

.highlight-text {
    color: var(--color-desc); 
    font-size: 0.95rem; 
    margin-top: 10px;
}
/* 
   AJUSTES PARA CELULAR (MEDIA QUERIES)
*/
@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 25px; }
    .footer-socials { justify-content: center; }

    .menu-toggle { display: flex; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--color-header); padding: 20px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; align-items: center; gap: 15px; }
    .main-nav a { border-right: none; padding-right: 0; font-size: 1.1rem; }

    .section-title { font-size: 1.3rem; }
    
    /* El Grid de inicio en celular */
    .category-grid { grid-template-columns: 1fr; }
}
