/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
:root {
    /* Ganbara_colores_marron palette */
    --color-primary: #210F04;  /* very dark brown */
    --color-dark: #452103;     /* dark brown */
    --color-red: #690500;      /* deep red-brown */
    --color-secondary: #934B00;/* warm brown */
    --color-accent: #BB6B00;   /* amber/orange accent */
    --color-text: #333;
    --color-light: #f5f5f5;
    --font-numeric: 'Poppins', 'Texturina', serif;
}

body {
    font-family: 'Texturina', serif;
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 45%, var(--color-accent) 100%);
    background-attachment: fixed;
}
.no-scroll { overflow: hidden; }

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    display: none; /* hidden by default, toggled via .active */
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 2000;
}
#preloader.active { display: flex; }
.preloader-content { text-align: center; animation: preFade 0.3s ease both; }
.preloader-logo { margin-bottom: 14px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15)); }
.preloader-spinner { display: block; margin: 0 auto 10px; }
.preloader-text { color: var(--color-dark); font-weight: 600; letter-spacing: .3px; }

@keyframes preFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

body.dark-mode #preloader {
    background: rgba(40, 25, 20, 0.88);
}
body.dark-mode .preloader-text { color: #fff; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Inknut Antiqua', serif;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--color-accent);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h2 {
    font-family: 'Inknut Antiqua', serif;
    font-size: 2rem;
    color: var(--color-accent);
}

/* Logo layout */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .menu-categories {
        gap: 0.4rem;
        padding: 0.5rem 0.6rem; /* más slim */
    }
    .logo-img { width: 36px; height: 36px; }
}

body.dark-mode .logo-img {
    /* pequeña sombra para separar en encabezado oscuro */
    filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.35));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-left: auto;
}

.preferences-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}



.nav-actions + .hamburger {
    margin-left: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 3px 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hamburger:hover .bar,
.hamburger:active .bar {
    background-color: var(--color-accent);
}

/* Language toggle */
.lang-toggle {
    margin: 0;
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.lang-toggle:hover {
    background: var(--color-accent);
    color: white;
}

/* Theme toggle */
.theme-toggle {
    margin: 0;
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--color-secondary);
    color: white;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 100vh;
    padding: 80px 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding: 2rem 0;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--color-light);
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent), var(--color-red));
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(186, 31, 51, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(186, 31, 51, 0.6);
    background: linear-gradient(135deg, var(--color-red), var(--color-accent));
}

.hero-image {
    position: relative;
    z-index: 1;
    will-change: transform, opacity;
    transition: opacity 0.3s ease;
}

.hero-image .image-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image .image-placeholder picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image .image-placeholder .carousel-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-image .image-placeholder .carousel-item.is-active {
    opacity: 1;
}

.private-area {
    padding: 60px 0;
    background: rgba(246, 241, 237, 0.8);
}

.hidden {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}

.hero-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.hero-control {
    background: rgba(33, 33, 33, 0.55);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.hero-control:hover {
    background: rgba(33, 33, 33, 0.78);
    transform: scale(1.05);
}

.hero-control:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 2px;
}

.hero-control.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.hero-indicators {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    pointer-events: auto;
}

.hero-indicators.is-hidden,
.hero-indicators.is-empty {
    display: none;
}

.hero-indicator {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.7);
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-indicator:hover,
.hero-indicator:focus-visible {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.35);
    outline: none;
}

.hero-indicator.is-active {
    background: var(--color-red);
    border-color: var(--color-red);
}

/* Menu Section */
.menu-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 10;
}

.menu-categories {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 80px; /* Altura del header + espacio */
    background: rgba(255,255,255,0.85); /* Fondo blanco semitransparente */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 0.8rem 0.9rem; /* un poco más grande */
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu-categories::-webkit-scrollbar {
    height: 6px;
}

.menu-categories::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.25);
    border-radius: 10px;
}

.category-btn {
    background: white;
    border: 2px solid var(--color-secondary);
    padding: 11px 20px; /* un poco más grande */
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother animation for scroll-based changes */
    font-weight: 500;
    font-size: 1rem; /* un poco más grande */
    color: var(--color-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-btn i {
    font-size: 1.05rem; /* un poco más grande */
}

.category-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth icon transition */
}

.category-btn.active .category-icon,
.category-btn:hover .category-icon {
    filter: brightness(0) invert(1); /* Make icons white when active */
}

.category-title-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    flex-shrink: 0;
    /* Darker color for light mode visibility */
    filter: brightness(0) saturate(100%) invert(17%) sepia(20%) saturate(3000%) hue-rotate(10deg);
}

.numeric-font {
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.015em;
}

.menu-item-price,
.media-racion,
.contact-item p,
.contact-item h3,
.reservation-form input,
.reservation-form select,
.footer-section p,
.footer-bottom p,
.menu-category h3 span,
.category-btn,
.menu-category h3 {
    font-family: var(--font-numeric);
}

.category-btn .category-name {
    display: inline;
}

.category-btn:hover,
.category-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(187, 107, 0, 0.3); /* Added shadow for better visual feedback */
}

/* Mobile: solo iconos en botones de categoría */
@media (max-width: 768px) {
    
    .category-btn .category-name { display: none; }
    .category-btn {
        padding: 8px 12px; /* más slim en móvil */
        min-width: 44px;
        justify-content: center;
    }
    
    .category-btn i {
        font-size: 1.1rem; /* más slim en móvil */
    }
    
    /* Ocultar búsqueda en móvil */
    .menu-search {
        display: none !important;
    }
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Títulos de sección de categorías */
.category-section-title {
    grid-column: 1 / -1;
    font-family: 'Inknut Antiqua', serif;
    font-size: 2rem;
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--color-accent);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-section-title i {
    color: var(--color-accent);
}

.category-section-title.hidden {
    display: none;
}

/* Separadores visibles de categorías dentro de la retícula */
.menu-category {
    grid-column: 1 / -1;
    margin-top: 2rem;
}

.menu-category h3 {
    font-family: 'Inknut Antiqua', serif;
    font-size: 2rem;
    color: var(--color-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--color-accent);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-item {
    display: block;
    cursor: pointer;
    position: relative;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.menu-item:focus {
    outline: none;
}

.menu-item-interactive:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(187, 107, 0, 0.32);
}

.menu-item-interactive:active {
    transform: translateY(-3px);
}

.menu-item-actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-item[data-like-enabled="true"] {
    cursor: pointer;
}

.menu-item-image {
    position: relative;
}

.menu-item-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.like-display {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(33, 15, 4, 0.78);
    color: #fff;
    font-weight: 600;
    pointer-events: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.menu-item[data-like-enabled="true"].requires-auth .like-display {
    opacity: 0.8;
}

.like-display.is-liked {
    background: linear-gradient(135deg, rgba(235, 115, 76, 0.95), rgba(187, 107, 0, 0.95));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(235, 115, 76, 0.45);
}

.like-display.is-liked .like-icon {
    transform: scale(1.1);
}

.menu-item.like-processing .like-display {
    opacity: 0.6;
}

.menu-item.like-processing {
    pointer-events: none;
}

.like-overlay {
    position: absolute;
    top: 0.65rem;
    left: 0.75rem;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
}

.like-icon {
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.like-count {
    font-weight: 700;
    color: inherit;
    min-width: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.menu-item.hidden {
    display: none;
}

.menu-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f3f4, #e8eaed);
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.menu-item-image .image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f1f3f4, #e8eaed);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-item-image .image-placeholder::before {
    content: '🍴';
    font-size: 2rem;
    opacity: 0.4;
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.menu-item-description {
    color: var(--color-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.media-racion {
    display: block;
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin: 0.5rem 0;
    font-style: italic;
}

.menu-item-note {
    font-size: 0.8rem;
    color: var(--color-dark);
    margin: 0.5rem 0;
    font-style: italic;
    opacity: 0.8;
}

.menu-item-prices {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.menu-item-prices .price-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-item-prices .price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--color-dark);
    letter-spacing: 0.5px;
}

.menu-item-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-dark);
    line-height: 1.8;
}

.features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 500;
}

.feature i {
    font-size: 1.2rem;
}

.about-image {
    overflow: hidden;
    border-radius: 12px;
    background-color: #f5f5f5;
}

.about-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image .image-placeholder::before {
    content: '👨‍🍳';
    font-size: 4rem;
    opacity: 0.3;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.contact-item p {
    color: var(--color-dark);
    line-height: 1.6;
}

.contact-hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.contact-hours-table td {
    padding: 0.35rem 0.5rem 0.35rem 0;
    color: var(--color-dark);
}

.contact-hours-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    padding-right: 1.25rem;
}

.contact-hours-table .numeric-font {
    letter-spacing: 0.02em;
}

body.dark-mode .contact-hours-table td {
    color: var(--color-light);
}

.footer-hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.footer-hours-table td {
    padding: 0.35rem 0;
    color: rgba(255, 255, 255, 0.85);
}

.footer-hours-table td:first-child {
    font-weight: 600;
    padding-right: 1.25rem;
    white-space: nowrap;
}

.footer-hours-table .numeric-font {
    letter-spacing: 0.02em;
}

body.dark-mode .footer-hours-table td {
    color: rgba(255, 255, 255, 0.85);
}

.location-map {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--color-secondary);
}

.location-map h3 {
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
    font-size: 1.8rem;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.reservation-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--color-secondary);
}

.reservation-form h3 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-red));
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(186, 31, 51, 0.4);
    background: linear-gradient(135deg, var(--color-red), var(--color-accent));
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.footer-section p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-secondary);
}

.footer-section ul li a:hover {
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 601px) {
    .menu-categories {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.9rem;
        overflow: visible;
        padding: 1rem 1.1rem;
        position: static;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .category-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .category-btn .category-icon,
    .category-btn i {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 12px;
        gap: 0.5rem;
    }

    .logo {
        gap: 0.4rem;
    }

    .logo h2 {
        font-size: 1.6rem;
    }

    .hamburger {
        display: flex;
        margin-left: 0.3rem;
    }

    .nav-actions {
        gap: 0.4rem;
    }

    .preferences-group {
        gap: 0.3rem;
    }

    .auth-controls {
        gap: 0.3rem;
    }

    .auth-controls .auth-btn {
        padding: 0.6rem 1.1rem;
        font-size: 0.85rem;
    }

    #logout-btn {
        padding: 0.4rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
    }

    #logout-btn .logout-label {
        display: none;
    }

    #logout-btn .logout-icon {
        display: inline-flex;
        font-size: 1.05rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }
    
    .lang-toggle,
    .theme-toggle {
        margin-left: 0;
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.6rem;
        padding: 96px 18px 34px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.35rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.6rem;
    }

    .hero-content {
        padding: 0;
    }

    .cta-button {
        width: min(260px, 100%);
        padding: 14px 20px;
        font-size: 1rem;
    }

    .hero-image .image-placeholder {
        height: 260px;
        border-radius: 16px;
    }

    .section-title {
        font-size: 2rem;

    .category-title-icon {
        width: 24px;
        height: 24px;
    }
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-categories {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .features {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .menu-categories {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        position: sticky;
        top: 76px;
        padding: 0.75rem 0.85rem;
        gap: 0.45rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .menu-categories::-webkit-scrollbar {
        height: 6px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 88px 14px 28px;
        gap: 1.3rem;
    .menu-categories {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        position: sticky;
        top: 76px;
        padding: 0.75rem 0.85rem;
        gap: 0.45rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .menu-categories::-webkit-scrollbar {
        height: 6px;
    }

    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.4rem;
    }

    .hero-image .image-placeholder {
        height: 220px;
        border-radius: 14px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .menu-item {
        margin: 0 10px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Desktop: Center category buttons horizontally */
@media (min-width: 769px) {
    .menu-categories {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-red);
}

/* ========================= */
/* Dark mode overrides       */
/* ========================= */
body.dark-mode {
    --color-text: rgba(255,255,255,0.92);
    /* Fondo más claro y cálido */
    background: radial-gradient(1200px 800px at 20% 10%, #3d2418 0%, #2a1510 50%, #1f0f0c 100%);
}

body.dark-mode .header {
    background: rgba(40, 25, 20, 0.9);
    border-bottom-color: var(--color-secondary);
}

body.dark-mode .bar { background-color: #f5f5f5; }

body.dark-mode .nav-link { color: var(--color-primary); }
body.dark-mode .nav-link:hover { color: var(--color-secondary); }
body.dark-mode .nav-link::after { background-color: var(--color-secondary); }

body.dark-mode .section-title { color: var(--color-light); }
body.dark-mode .section-subtitle { color: rgba(255,255,255,0.8); }

body.dark-mode .private-area {
    background: rgba(32, 18, 12, 0.55);
}

body.dark-mode .hero-control {
    background: rgba(0, 0, 0, 0.65);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

body.dark-mode .hero-control:hover {
    background: rgba(0, 0, 0, 0.85);
}

body.dark-mode .hero-indicator {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.35);
}

body.dark-mode .hero-indicator.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

body.dark-mode .menu-section,
body.dark-mode .about-section,
body.dark-mode .contact-section { background-color: rgba(45, 28, 20, 0.45); }

body.dark-mode .menu-item,
body.dark-mode .reservation-form,
body.dark-mode .location-map { 
    background: #3a2420; 
    border-color: rgba(205, 93, 103, 0.25); /* tono del color secundario */
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

body.dark-mode .menu-item-title { color: var(--color-light); }
body.dark-mode .menu-item-description { color: rgba(255,255,255,0.8); }
body.dark-mode .menu-item-price { color: var(--color-accent); }
body.dark-mode .media-racion { color: var(--color-secondary); }
body.dark-mode .menu-item-note { color: rgba(255,255,255,0.7); }
body.dark-mode .price-label { color: rgba(255,255,255,0.7); }

body.dark-mode .category-section-title { 
    color: var(--color-light); 
    border-bottom-color: var(--color-secondary);
}
body.dark-mode .category-section-title i { 
    color: var(--color-accent); 
}

/* Separadores de categoría en modo oscuro */
body.dark-mode .menu-category h3 {
    color: var(--color-light);
    border-bottom-color: var(--color-secondary);
}
body.dark-mode .menu-category h3 i {
    color: #ffffff;
}

/* Category title icons in dark mode - white filter */
body.dark-mode .category-title-icon {
    filter: brightness(0) invert(1);
}

body.dark-mode .contact-item h3 { color: var(--color-light); }
body.dark-mode .contact-item p { color: rgba(255,255,255,0.85); }
body.dark-mode .contact-item i { color: var(--color-secondary); }

body.dark-mode .submit-btn { 
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
}
body.dark-mode .submit-btn:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    box-shadow: 0 5px 15px rgba(205, 93, 103, 0.4);
}

body.dark-mode .footer { background: linear-gradient(135deg, var(--color-dark), var(--color-primary)); }
body.dark-mode .footer-section h3,
body.dark-mode .footer-section h4 { color: var(--color-secondary); }
body.dark-mode .footer-bottom { border-top-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); }

/* Dark scrollbar */
body.dark-mode ::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
body.dark-mode ::-webkit-scrollbar-thumb { background: var(--color-secondary); }
body.dark-mode ::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* Ajustes extra en modo oscuro */
body.dark-mode .lang-toggle {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
body.dark-mode .lang-toggle:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

body.dark-mode .theme-toggle {
    border-color: var(--color-light);
    color: var(--color-light);
}
body.dark-mode .theme-toggle:hover {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

/* Sticky menu categories in dark mode */
body.dark-mode .menu-categories {
    background: rgba(45, 30, 25, 0.85); /* Fondo más claro semitransparente */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .hero-image .image-placeholder {
    background: linear-gradient(135deg, #4a2a2d, #5a2f33);
}

body.dark-mode .menu-item-image .image-placeholder {
    background: linear-gradient(135deg, #4a2a2d, #5a2f33);
}