/* Definición de variables de color de Salón Boyacense */
:root {
    --bg-color:transparent;
    --paper-color: rgba(255, 255, 255, 0.85%);
    --primary-color: #556b2f;  /* Verde Oliva (Tu color de marca) */
    --text-color: #333333;     /* Gris oscuro para lectura */
    --text-light: #666666;     /* Gris suave para descripciones */
    --font-title: 'Cinzel', serif;
    --font-body: 'Lora', serif;
}

body {
    margin: 0;
    padding: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Contenedor principal estilo "Carta de Restaurante" */
.main-container {
    width: 100%;
    max-width: 800px;
    background-color: var(--paper-color);
    padding: 20px;
    /* Sombra suave en lugar de borde dorado para dar elegancia en modo claro */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    border-radius: 4px;
}

/* Borde ornamental interno */
.ornamental-border {
    border: 3px double var(--primary-color);
    padding: 30px 20px;
    position: relative;
    min-height: 600px;
}

/* Esquinas decorativas */
.corner {
    position: absolute;
    color: var(--primary-color);
    font-size: 24px;
    line-height: 1;
}
.top-left { top: 5px; left: 5px; }
.top-right { top: 5px; right: 5px; }
.bottom-left { bottom: 5px; left: 5px; }
.bottom-right { bottom: 5px; right: 5px; }

/* Header y Logo */
.menu-header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.logo-icon svg {
    fill: var(--primary-color);
}

.menu-header h1 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.menu-header h2 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 4px;
    border-bottom: 1px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* Secciones */
.menu-section {
    margin-bottom: 45px;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-family: var(--font-title);
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.section-title::before,
.section-title::after {
    content: "";
    height: 1px;
    background-color: var(--primary-color);
    flex-grow: 1;
    margin: 0 15px;
    opacity: 0.5;
}

/* Lista de platos */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 20px;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: var(--text-color); /* Nombre en oscuro para contraste */
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
}

.menu-item-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #ccc; /* Puntos grises sutiles */
    margin: 0 10px 5px 10px;
}

.menu-item-price {
    flex-shrink: 0;
    color: var(--primary-color); /* Precio en verde */
    font-weight: 700;
}

.menu-item-description {
    font-size: 0.95rem;
    margin-top: 5px;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.4;
}

/* Loading y errores */
.loading-container {
    text-align: center;
    padding: 50px 0;
    color: var(--primary-color);
}
.error-text {
    text-align: center;
    color: #b71c1c;
    font-family: var(--font-body);
}

/* Spinner simple CSS */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   Fondo Poligonal (tsParticles)
========================================= */
#tsparticles {
    position: fixed; /* Fijo para que cubra toda la pantalla */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* CRÍTICO: Lo envía detrás del contenido principal */
    pointer-events: none; /* Evita que interfiera con los clicks en la página (opcional, depende si quieres interactividad) */
}

/*
   Ajuste opcional: si sientes que el fondo blanco humo (--bg-color: #fdfdfd)
   es muy fuerte y tapa las partículas, puedes hacerlo ligeramente transparente
   en el body, aunque la configuración actual debería funcionar bien.
*/



/* =========================================
   Barra de Navegación Superior
========================================= */
.top-nav-bar {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(85, 107, 47, 0.2); /* Tu verde muy suave */
}

/* Estilo de los Iconos Sociales */
.social-icons {
    margin-bottom: 15px;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 10px;
    text-decoration: none;
    transition: transform 0.2s, color 0.2s;
    display: inline-block;
}

.social-icons a:hover {
    transform: scale(1.2); /* Efecto zoom suave */
    opacity: 0.8;
}

/* Contenedor de botones */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espacio entre botones */
    flex-wrap: wrap; /* Para que se acomoden en celulares pequeños */
}

/* Estilo de los Botones */
.btn-nav {
    text-decoration: none;
    font-family: var(--font-title);
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 2px; /* Bordes ligeramente redondeados */
}

.btn-nav i {
    margin-right: 5px; /* Espacio entre icono y texto */
}

/* Efecto Hover en Botones (se llenan de verde) */
.btn-nav:hover {
    background-color: var(--primary-color);
    color: #fff; /* Texto blanco */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 480px) {
    .nav-buttons {
        gap: 10px;
    }
    .btn-nav {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* =========================================
   Estilos para Productos AGOTADOS
========================================= */

/* 1. El contenedor completo se ve más apagado */
.menu-item.agotado {
    opacity: 0.7;
}

/* 2. El nombre del plato tachado */
.menu-item.agotado .menu-item-name {
    text-decoration: line-through;
    color: #888;
}

/* 3. La descripción en gris suave */
.menu-item.agotado .menu-item-description {
    color: #aaa;
}

/* 4. La etiqueta roja de "AGOTADO" */
.etiqueta-agotado {
    color: #c0392b; /* Rojo quemado */
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #c0392b;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    display: inline-block;
    white-space: nowrap; /* Que no se parta en dos líneas */
}