@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
    --color-primary: #cc9846;
    /* Gold */
    --color-secondary: #2d1f17;
    /* Dark Brown (Text) */
    --color-accent: #987554;
    /* Light Brown */

    /* Light Theme */
    --color-bg: #efe6da;
    --color-card-bg: #e6dccf;
    --color-text: #2d1f17;

    --font-headings: 'Buffon', serif;
    --font-body: 'Espiritu', sans-serif;

    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;

    --border-radius: 12px;
}

@font-face {
    font-family: 'Buffon';
    src: url('../fonts/Buffon-Bold.otf') format('opentype');
    font-weight: bold;
}

@font-face {
    font-family: 'Buffon';
    src: url('../fonts/Buffon-Regular.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'Espiritu';
    src: url('../fonts/Espiritu-Expanded.otf') format('opentype');
    font-weight: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Header - Modern & Sticky */
.header {
    background-color: var(--color-secondary);
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--color-primary);
    min-height: 60px;
    /* Maintain height */
}

.logo {
    height: 32px;
    /* Reduced from 40px */
    width: auto;
    transition: transform 0.2s;
}

.logo:active {
    transform: scale(0.95);
}

/* Currency Toggle */
.currency-toggle {
    display: flex;
    align-items: center;
}

#currency-switch {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 90px;
    height: 32px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    cursor: pointer;
    padding: 0 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-option {
    z-index: 2;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--color-secondary);
    flex: 1;
    text-align: center;
    transition: color 0.3s;
    font-family: var(--font-headings);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 42px;
    height: 26px;
    background-color: var(--color-primary);
    border-radius: 18px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

/* Default State (Bs - Left) */
#currency-switch:checked+.toggle-label .toggle-slider {
    transform: translateX(42px);
}

#currency-switch:not(:checked)+.toggle-label .option-bs {
    color: #fff;
}

#currency-switch:checked+.toggle-label .option-usd {
    color: #fff;
}

/* Discount Badge */
.discount-badge {
    font-family: var(--font-headings);
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-10px);
    /* Only move Y */

    /* Exit Transition (Smooth fade out upwards) */
    transition: all 0.3s ease-in;

    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discount-badge span {
    display: inline-block;
    /* Required for transform */
}

.discount-badge.active {
    opacity: 1;
    transform: translateY(0);

    /* Entrance Transition (Pop effect) */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.discount-badge.active span {
    animation: pulseBadge 3s infinite ease-in-out;
    animation-delay: 0.5s;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    /* Restored to 5% for visibility on span */

    100% {
        transform: scale(1);
    }
}

/* Price Display Styles */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-original {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: -2px;
}

.price-label {
    font-size: 0.8rem;
    color: #cc9846;
    /* Gold for label to look nice, or #999? User said 'Bs.' where the crossed out price is. Let's keep it subtle */
    color: #999;
    margin-bottom: -2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.price-final {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    color: var(--color-primary);
    font-weight: bold;
}

.menu-toggle {
    display: none;
}

/* Menu Container */
#menu-container {
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}

.menu-section {
    margin-bottom: var(--spacing-lg);
    scroll-margin-top: 100px;
}

.section-title {
    font-family: var(--font-body);
    color: var(--color-secondary);
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-align: center;
    border-bottom: 2px solid #dccbbd;
    padding-bottom: 0.5rem;
    text-shadow: 1px 1px 0px rgba(204, 152, 70, 0.2);
    word-wrap: break-word;
}

.menu-items {
    display: grid;
    gap: var(--spacing-md);
}

.menu-item {
    background-color: #fff;
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(45, 31, 23, 0.05);
    border: 1px solid rgba(45, 31, 23, 0.1);
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.5s ease forwards;
}

.menu-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.item-main-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.item-info {
    flex: 1;
    padding-right: var(--spacing-sm);
}

.item-name {
    font-family: var(--font-headings);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 0;
    letter-spacing: 0.5px;
    line-height: 1;
}

.item-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #665;
    font-weight: 400;
    margin-top: 4px;
    font-style: italic;
}

.item-price {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    color: var(--color-primary);
    font-weight: bold;
    min-width: 60px;
    text-align: right;
    transition: color 0.1s;
}

/* Variant Selector */
.variant-selector {
    width: 100%;
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.variant-btn {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-headings);
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.variant-btn.active {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
}

/* Chopping Animation */
@keyframes chop {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.2) translateY(-2px);
        color: var(--color-accent);
    }

    50% {
        transform: scale(0.9);
    }

    70% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.chopping {
    animation: chop 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Corporate Style */
.footer {
    text-align: center;
    padding: 15px var(--spacing-md) 100px;
    /* Reduced from 100px to match specific user request */
    background-color: var(--color-secondary);
    color: #e6dccf;
    /* Softer beige */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.footer .socials a {
    color: #e6dccf;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 5px;
}

/* Liquid Glass Dock */
/* 
   🛠️ OPCIONES DE PERSONALIZACIÓN (CSS PLAYGROUND) 🛠️
   Descomenta el bloque que quieras probar (Ctrl + /) y comenta los demás.
*/

/* OPCIÓN 1: DARK PREMIUM (Activa por defecto) - Elegante y legible */
.bottom-dock {
    background: rgba(30, 20, 15, 0.9);
    /* Casi sólido, marrón muy oscuro */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Sombra fuerte */
    /* 
   OPCIÓN 2: ULTRA CLEAR (Estilo Apple) - Muy transparente
.bottom-dock {
    background: rgba(45, 31, 23, 0.4);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
*/
    /* 
   OPCIÓN 3: FROSTED GOLD (Dorado Mate) - Más llamativo
.bottom-dock {
    background: rgba(204, 152, 70, 0.15); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(204, 152, 70, 0.3);
    box-shadow: 0 8px 32px rgba(204, 152, 70, 0.1);
*/

    /* Propiedades Comunes (NO TOCAR) */
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 100px;
    padding: 10px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    animation: slideUp 0.5s ease-out 1s backwards;
    min-width: 140px;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.dock-btn {
    background: none;
    border: none;
    color: #ffe4b3;
    /* Brighter Gold */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    /* High contrast shadow */
    font-family: var(--font-headings);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2px 5px;
    width: 100%;
    transition: transform 0.2s;
}

.dock-btn:hover {
    transform: scale(1.05);
    color: var(--color-primary);
}

.dock-btn span {
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: -2px;
    /* Optical centering */
}

.dock-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
}

/* Category Sheet */
#category-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 5001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

#category-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

#category-sheet {
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    border-radius: 25px 25px 0 0;
    padding: 20px;
    z-index: 5002;
    transform: translateY(105%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

#category-sheet.active {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background-color: #ccc;
    border-radius: 2px;
    margin: 0 auto 15px;
}

.sheet-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 20px;
}

.sheet-link {
    display: block;
    padding: 12px 15px;
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-family: var(--font-headings);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sheet-link:active {
    background-color: rgba(204, 152, 70, 0.1);
}

/* --- ADMIN PANEL STYLES (Restored) --- */
#admin-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2d1f17;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    /* Hidden by default */
    transition: transform 0.3s ease-in-out;
}

#admin-toolbar.visible {
    transform: translateY(0);
}

.admin-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn-save {
    background-color: #4CAF50;
    color: white;
}

.btn-cancel {
    background-color: #f44336;
    color: white;
}

/* Edit Mode Indicators */
body.admin-mode [contenteditable="true"] {
    border-bottom: 1px dashed #999;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: text;
}

body.admin-mode [contenteditable="true"]:focus {
    border-bottom: 2px solid #cc9846;
    outline: none;
    background-color: white;
}

/* Admin Controls (Delete/Add) */
.admin-control {
    display: none;
    /* Hidden normally */
}

body.admin-mode .admin-control {
    display: inline-block;
    cursor: pointer;
    margin-left: 10px;
    color: #f44336;
    font-weight: bold;
    font-family: sans-serif;
}

.btn-add-item {
    display: none;
    width: 100%;
    padding: 10px;
    background-color: #e6dccf;
    border: 2px dashed #987554;
    text-align: center;
    margin-top: 10px;
    color: #2d1f17;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
}

body.admin-mode .btn-add-item {
    display: block;
}