/* 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 y manu */
.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;
}

/* Boton del modo oscuro */
.theme-toggle {
    position: fixed;
    top: 115px; 
    right: 20px; 
    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:hover {
    transform: scale(1.1);
}

/* Estilo del boton de 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;
}

/* Estilo en escritorio */
.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 */
.main-content {
    margin-top: 120px; 
    padding: 40px 20px;
}

.content-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* pestanas*/
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    background-color: transparent;
    color: var(--color-carbon);
    border: 2px solid var(--color-turquesa);
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.4s ease; 
    text-transform: uppercase;
    width: 150px;
}

.tab-btn.active {
    background-color: var(--color-turquesa);
    color: white;
}

.tab-content {
    display: none; 
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Titulos */
.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;
}

/* Cuadros para las imagenes del menu */
.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; }
}

.footer {
    background-color: var(--color-header);
    color: #fff;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    font-size: 0.85rem;
    transition: background-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);
    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;
}

/* Ajuste para celular */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 25px;
    }
    .footer-socials {
        justify-content: center;
    }
}
/* Ajsutes del estilo del celular */
@media (max-width: 768px) {
    .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; }
}

/* Animacion de transiciones de las imagenes de los platillos que tienen mas de una presentacion */
.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-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;
}
/* Ajuste botones para el celular */
@media (max-width: 768px) {
    .tabs-container {
        gap: 8px; 
        padding: 0 10px; 
    }
    .tab-btn {
        width: auto; 
        flex: 1; 
        padding: 8px 5px; 
        font-size: 0.8rem; 
    }
}