/* Variables de estilo corporativo */
:root {
    --color1: #1d5343; /* Verde oscuro primario */
    --color2: #b58500; /* Dorado secundario */
    --negro: #000000;
    --blanco: #ffffff;
    --gris-claro: #f8f9fa;
    --gris-medio: #e9ecef;
    --gris-oscuro: #6c757d;
    --color1-light: rgba(29, 83, 67, 0.1);
    --color2-light: rgba(181, 133, 0, 0.1);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition-slow: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
    --transition-medium: all 0.3s cubic-bezier(0.42, 0, 0.58, 1);
    --transition-fast: all 0.2s cubic-bezier(0.42, 0, 0.58, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

/* BARRA DE NAVEGACIÓN FIJA */
.fixed-nav {
    background-color: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; box-shadow: var(--shadow-sm); padding: 0.75rem 0; 
    transform: translateY(0); /* Siempre visible arriba */
}
.fixed-nav .container { display: flex; justify-content: space-between; align-items: center; }
.fixed-nav-logo { height: 35px; width: auto; display: block; }
.menu-toggle { 
    background: none; border: none; color: var(--color1); 
    cursor: pointer; padding: 0.3rem; line-height: 1; 
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; 
}
.menu-hamburger-svg { width: 24px; height: 24px; fill: var(--color1); }
.menu-toggle:hover .menu-hamburger-svg { fill: var(--color2); }
.menu-toggle:hover { color: var(--color2); }

/* Header Principal (index.php) */
.carta-header {
    background-color: var(--blanco); padding: 3rem 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); position: relative;
    z-index: 10; text-align: center; 
}
.carta-logo { 
    width: 100%; max-width: 130px; height: auto; 
    margin: 0 auto 1.5rem; display: block;
}
.section-title { 
    font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem;
    color: var(--color1); text-align: center; 
    animation: fadeIn 0.8s ease-out 0.2s forwards; opacity: 0;
}
.carta-header p { 
    font-size: 1.1rem; color: var(--gris-oscuro); text-align: center; 
    max-width: 600px; margin: 0 auto; 
    animation: fadeIn 0.8s ease-out 0.4s forwards; opacity: 0;
}
.page-specific-header {
    background-color: var(--blanco); padding: 2rem 1rem;
    text-align: center; margin-bottom: 2rem; 
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.section-title-page { font-size: 2.2rem; color: var(--color1); font-family: 'Marcellus SC', serif; }

/* Tarjetas de categoría (index.php) */
.category-cards-container {
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1rem auto 3rem;
    justify-items: center;
    max-width: 1200px;
}
a.category-card { 
    background-color: var(--blanco); border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm); transition: var(--transition-medium);
    cursor: pointer; width: 100%; max-width: 350px; min-height: 120px; 
    display: flex; align-items: center; justify-content: center; 
    position: relative; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.03);
    animation: scaleIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    text-decoration: none; color: inherit; padding: 1rem; 
}
.category-card-content { text-align: center; z-index: 2; position: relative; }
a.category-card::before { 
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(29, 83, 67, 0.05), rgba(181, 133, 0, 0.05));
    opacity: 0; transition: var(--transition-medium); z-index: 1;
}
a.category-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-lg); border-color: rgba(181, 133, 0, 0.15); }
a.category-card:hover::before { opacity: 1; }
a.category-card:active { transform: translateY(-2px) scale(0.98); transition: var(--transition-fast); }
a.category-card.clicked { transform: translateY(-2px) scale(0.97) !important; box-shadow: var(--shadow-sm) !important; transition: transform 0.15s ease-out, box-shadow 0.15s ease-out !important; }
.category-title { font-family: 'Marcellus SC', serif; font-size: 1.5rem; font-weight: 600; color: var(--color1); margin: 0 0 0.3rem 0; }
.category-subtitle { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; color: var(--gris-oscuro); margin: 0; line-height: 1.3; }

/* Secciones de Menú */
.menu-page-content { padding-top: 1rem; }
.platos-list {
    margin-bottom: 3rem;
    position: relative;
}
.platos-list::before { display: none; }

/* ----- REGLA ESPECÍFICA PARA CENTRAR SOLO LOS VINOS ----- */
.vinos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.subcategory-header { 
    background-color: var(--color1); 
    color: var(--blanco); 
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center; 
    font-size: 1.8rem; 
    font-family: 'Marcellus SC', serif;
    margin-bottom: 2rem; 
    box-shadow: var(--shadow-md);
    width: 100%;
}

/* Estilos para platos */
.plato { 
    background-color: var(--blanco); 
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm); 
    margin-bottom: 1.8rem;
    padding: 1.8rem; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative; 
    overflow: hidden;
}
.plato::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--color1), var(--color2));
    transform: scaleX(0); transform-origin: center; transition: transform 0.4s ease;
}
.plato:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(0,0,0,0.08); }
.plato:hover::after { transform: scaleX(1); }
.nombre-plato {
    font-family: 'Marcellus SC', serif; font-size: 1.3rem; font-weight: 600;
    margin-bottom: 0.5rem; color: var(--negro); text-align: center; 
}
.descripcion-plato { 
    font-size: 0.9em; color: var(--gris-oscuro); line-height: 1.5;
    text-align: center; margin-bottom: 1rem; padding: 0 0.5rem; 
}
.precios {
    display: flex; flex-wrap: wrap; justify-content: center; 
    gap: 0.5rem; margin-bottom: 0.8rem; 
}
.precio { 
    background: var(--gris-claro); padding: 0.4rem 0.6rem; 
    border-radius: var(--border-radius-sm); transition: var(--transition-fast);
    text-align: center; flex-grow: 0; flex-shrink: 0; 
}
.precio::before { 
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--color2); transform: scaleX(0);
    transition: var(--transition-medium); transform-origin: left;
}
.precio:hover::before { transform: scaleX(1); }
.tipo { 
    font-weight: 600; color: var(--gris-oscuro); margin-bottom: 0.1rem; 
    font-size: 0.7rem !important;  text-transform: uppercase;
    letter-spacing: 0.03em; display: block; 
}
.valor { 
    font-size: 0.9rem !important; font-weight: 600; color: var(--color1);
    display: block; line-height: 1.2; 
}
.price-note { 
    display: block; font-size: 0.75em; color: var(--gris-oscuro); 
    font-weight: normal; margin-top: 2px; line-height: 1.1;
}

/* ---------------------------------------------------- */
/*           ESTILOS DEL MENÚ PÚBLICO (VINOS)           */
/* ---------------------------------------------------- */

.vino-item {
    background-color: var(--blanco);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0; /* Lo gestiona 'gap' del padre .vinos-container */
    padding: 1.8rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    max-width: none;
    width: 100%;
    
    /* Usamos Flexbox para el layout INTERNO de la tarjeta */
    display: flex;
    flex-direction: column; 
    align-items: center;    
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.vino-item::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--color1), var(--color2));
    transform: scaleX(0); transform-origin: center; transition: transform 0.4s ease;
}

.vino-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.vino-item:hover::after { transform: scaleX(1); }

.nombre-vino {
    font-family: 'Marcellus SC', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color1);
    margin-bottom: 1rem;
    text-align: center; 
}

.vino-info-wrapper {
    text-align: center;
    margin: 0 auto;
}

.vino-info-wrapper p {
    font-size: 0.9em;
    color: var(--gris-oscuro);
    margin-bottom: 0.4rem;
}

.vino-info-wrapper .descripcion-vino {
    margin-top: 0.8rem;
    line-height: 1.5;
}

.precios-vino {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.2rem;
    font-size: 1rem;
    text-align: center;
}

.precios-vino .precio-item .tipo {
    font-weight: 600;
    color: var(--gris-oscuro);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 0.2rem;
}

.precios-vino .precio-item .valor {
    font-weight: bold;
    color: var(--color1);
    font-size: 1rem;
    display: block;
}

/* (El resto del CSS sigue exactamente igual) */
.allergen-icons { margin-top: 1rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.allergen-svg-icon { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; background: rgba(29, 83, 67, 0.08); border-radius: 50%; padding: 5px; box-sizing: content-box; transition: background-color 0.2s, transform 0.2s; }
.allergen-svg-icon:hover { background: rgba(29, 83, 67, 0.15); transform: scale(1.1); }
.dish-image-trigger { text-align: center; margin-top: 0.8rem; margin-bottom: 5px; }
.dish-image-trigger a { display: inline-block; line-height: 0; }
.camera-icon { width: 22px; height: 22px; vertical-align: middle; cursor: pointer; opacity: 0.7; transition: opacity 0.2s ease, transform 0.2s ease; object-fit: contain; }
.dish-image-trigger a:hover .camera-icon { opacity: 1; transform: scale(1.1); }
.allergen-legend { margin-top: 3rem; margin-bottom: 2rem; padding: 1.5rem; background-color: var(--blanco); border-radius: var(--border-radius-md); box-shadow: var(--shadow-sm); border-top: 3px solid var(--color1); }
.legend-title { text-align: center; font-family: 'Marcellus SC', serif; color: var(--color1); font-size: 1.6rem; margin-bottom: 1.5rem; }
.legend-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem 1.5rem; }
.legend-item { display: flex; align-items: center; font-size: 0.9em; color: var(--gris-oscuro); }
.allergen-svg-icon-legend { width: 20px; height: 20px; margin-right: 0.6rem; vertical-align: middle; object-fit: contain; }
.legend-text { line-height: 1.4; }
.no-dishes-message { text-align: center; margin-bottom: 1.5rem; color: #6b7280; font-style: italic; }
.iva-included-note { text-align: center; font-size: 0.85em; color: var(--gris-oscuro); margin-top: 2.5rem; margin-bottom: 1.5rem; padding: 0.5rem; }
.iva-included-note p { margin: 0.3rem 0; }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.plato { animation: scaleIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) both; animation-play-state: paused; }
.plato.visible { animation-play-state: running; }
@media (max-width: 992px) { .section-title { font-size: 2.2rem; } .section-title-page { font-size: 2rem; } .subcategory-header { font-size: 1.6rem; } .category-cards-container { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; } .logo-section img { max-width: 100px; } .fixed-nav-logo { height: 30px; } .menu-hamburger-svg { width: 22px; height: 22px; } .allergen-svg-icon { width: 22px; height: 22px; padding: 4px; } .allergen-svg-icon-legend { width: 18px; height: 18px; } .camera-icon { width: 20px; height: 20px; } }
@media (max-width: 768px) { .section-title { font-size: 1.8rem; } .section-title-page { font-size: 1.8rem; } .subcategory-header { font-size: 1.4rem; padding: 0.6rem 1rem; } .carta-header { padding: 2rem 1rem 1.5rem; } .carta-logo { max-width: 110px; margin-bottom: 1.2rem; } a.category-card { min-height: 100px; } .category-title { font-size: 1.3rem; } .category-subtitle { font-size: 0.85rem; } .nombre-plato { font-size: 1.15rem; margin-bottom: 0.4rem; } .descripcion-plato { font-size: 0.85em; margin-bottom: 0.8rem; } .contact-info { grid-template-columns: 1fr; gap: 2rem; } .scroll-top { bottom: 20px; right: 20px; } .scroll-top button { width: 42px; height: 42px; } .scroll-top button img.scroll-top-icon { width: 16px; height: 16px; } .precios { gap: 0.4rem; margin-bottom: 0.6rem; } .precio { padding: 0.4rem 0.6rem; } .tipo { font-size: 0.65rem !important; } .valor { font-size: 0.85rem !important; } .price-note { font-size: 0.7em; } .allergen-svg-icon { width: 20px; height: 20px; padding: 3px; } .allergen-svg-icon-legend { width: 16px; height: 16px; } .legend-items { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } .logo-section img { max-width: 90px; } .menu-hamburger-svg { width: 20px; height: 20px; } .social-svg-icon { width: 24px; height: 24px; } .camera-icon { width: 20px; height: 20px; } .admin-login-link { position: static; margin-top: 8px; width: 100%; text-align: center; } .admin-login-link a { display: inline-block; } .admin-login-icon { width: 22px; height: 22px; opacity: 0.8; } }
@media (max-width: 480px) { html { font-size: 14px; } .category-cards-container { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; } .plato { padding: 1.2rem; } .nombre-plato { font-size: 1.1rem; } .descripcion-plato { font-size: 0.8em; } .precios { gap: 0.3rem; } .precio { padding: 0.3rem 0.5rem; } .tipo { font-size: 0.6rem !important; } .valor { font-size: 0.75rem !important; } .price-note { font-size: 0.65em; } .fixed-nav-logo { height: 28px; } .menu-hamburger-svg { width: 18px; height: 18px; } .allergen-svg-icon { width: 18px; height: 18px; padding: 2px; } .allergen-svg-icon-legend { width: 14px; height: 14px; } .legend-items { grid-template-columns: 1fr; } .legend-item { justify-content: center; } .logo-section img { max-width: 80px; } .camera-icon { width: 18px; height: 18px; } .social-svg-icon { width: 22px; height: 22px; } .admin-login-icon { width: 20px; height: 20px; } }
.modal { display: none; position: fixed; z-index: 1000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.modal-content { margin: auto; display: block; width: 80%; max-width: 700px; }
.modal-content img { width: 100%; height: auto; }
.close-modal { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; }
.close-modal:hover, .close-modal:focus { color: #bbb; text-decoration: none; cursor: pointer; }

.vino {
    background-color: var(--blanco);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    transition: var(--transition-medium);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nombre-vino {
    font-family: 'Marcellus SC', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color1);
    text-align: center;
}

.bodega-vino, .do-vino {
    color: var(--gris-oscuro);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.descripcion-vino {
    font-size: 0.9em;
    color: var(--gris-oscuro);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.precios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.vino-image-trigger {
    text-align: center;
    margin-top: 0.8rem;
    margin-bottom: 5px;
}

.vino-image-trigger a {
    display: inline-block;
    line-height: 0;
}

.wine-thumbnail {
    display: none;
    /* Se muestra solo cuando se activa el lightbox, por defecto oculto */
    width: 160px;
    height: auto;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
.camera-icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    object-fit: contain;
}
.vino-image-trigger a:hover .camera-icon {
    opacity: 1;
    transform: scale(1.1);
}
.carta-digital { min-height: calc(100vh - 400px); padding-bottom: 3rem; }

/* Banner estacional Navidad 2026 (solo ES) */
.carta-promo-navidad {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    margin: 0 0 1.25rem;
    padding: 0.85rem 1.1rem;
    background-color: var(--primary-color, #1d5343);
    border-left: 4px solid var(--accent-color, #b58500);
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.carta-promo-navidad:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.carta-promo-navidad__tag {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #ffffff;
    color: #1d5343;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.carta-promo-navidad__text {
    flex: 1 1 220px;
    line-height: 1.35;
}

.carta-promo-navidad__cta {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .carta-promo-navidad { transition: none; }
    .carta-promo-navidad:hover { transform: none; }
}
