/* --- VARIABLES Y RESET --- */
:root {
    --primary-color: #788B4C; 
    --text-dark: #222222;
    --text-light: #555555;
    --bg-color: #fcfcfc;
    --font-heading: 'Patrick Hand', cursive;
    --font-body: 'Lora', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; 
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.5;
}

/* --------------------------------------------------
   CURSOR PERSONALIZADO DINÁMICO
-------------------------------------------------- */
@media (pointer: fine) {
    body, a, button, input, textarea, select {
        cursor: none !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, width 0.15s ease, height 0.15s ease;
}

.custom-cursor.hovered {
    width: 14px;
    height: 14px;
}

/* --------------------------------------------------
   CÁPSULA DE NAVEGACIÓN FLOTANTE CLARA (Igual que en Index)
-------------------------------------------------- */
.header-sticky-wrapper {
    position: sticky;
    top: 15px;
    z-index: 1002;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(120, 139, 76, 0.2);
    padding: 10px 24px;
    border-radius: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.nav-brand-mini a {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.hero-nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.hero-nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s;
}

.hero-nav-links a:hover, .hero-nav-links a.active-link {
    color: var(--primary-color);
}

.btn-reservation-hero {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.btn-reservation-hero:hover {
    background-color: #63753b;
}

/* --------------------------------------------------
   HERO INMERSIVO PARA EL MENÚ
-------------------------------------------------- */
.hero-immersive {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: url('https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 15px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.65) 0%, rgba(18, 18, 18, 0.85) 100%);
    z-index: 1;
}

.hero-content-box {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.brand-hero-title h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: var(--primary-color);
    letter-spacing: 4px;
    line-height: 0.9;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.brand-hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
    opacity: 0.9;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 20px;
    margin: 15px 0 10px 0;
}

.hero-desc {
    font-size: 1.05rem;
    color: #dedede;
    font-style: italic;
    line-height: 1.5;
}

/* --------------------------------------------------
   BARRA DE CATEGORÍAS (Menú horizontal de secciones)
-------------------------------------------------- */
.menu-categories-bar {
    background-color: var(--primary-color);
    width: 100%;
    border-radius: 30px;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(120, 139, 76, 0.2);
    margin: -20px auto 0 auto;
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.menu-categories-bar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px 15px;
    margin: 0 auto;
}

.menu-categories-bar li { 
    margin: 0 12px; 
}

.menu-categories-bar a {
    color: white;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.menu-categories-bar a:hover, 
.menu-categories-bar a.active-link { 
    opacity: 0.7; 
    border-bottom: 2px solid white; 
    padding-bottom: 2px; 
}

/* --- CONTENEDOR PRINCIPAL --- */
.menu-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* --- NAVEGACIÓN LATERAL DERECHA --- */
.side-menu-nav {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    z-index: 996;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-menu-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.side-menu-nav li a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
}

.side-menu-nav li a span {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-right: 10px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.side-menu-nav li a::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #cbd5e1;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.side-menu-nav li a:hover span {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary-color);
    font-weight: 600;
}

.side-menu-nav li a:hover::after,
.side-menu-nav li a.active-side-link::after {
    width: 14px;
    height: 14px;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(120, 139, 76, 0.6);
}

.side-menu-nav li a.active-side-link span {
    opacity: 0.9;
    transform: translateX(0);
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .side-menu-nav {
        display: none;
    }
}

/* --- SECCIONES Y TÍTULOS --- */
.menu-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.menu-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-weight: normal;
    text-transform: uppercase;
}

/* --- GRID DE ITEMS --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .grid-2-col { 
        grid-template-columns: 1fr 1fr; 
        gap: 30px 40px; 
    }
    .item-header {
        flex-direction: row; 
        justify-content: space-between;
        align-items: baseline;
    }
}

.menu-item {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.menu-item:hover {
    transform: scale(1.015);
}

.item-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 5px;
}

.item-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    word-break: break-word;
}

.item-price {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.item-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    text-align: justify;
}

.sizes-header {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    margin-top: -15px;
}

/* --- HISTORIA --- */
.history-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: #f4f6ee;
    padding: 35px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
}

.history-content-left {
    text-align: left;
}

.history-text {
    margin-bottom: 12px;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- IMÁGENES --- */
.item-image-placeholder {
    width: 100%;
    height: 140px;
    background-color: #e9ecef;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 12px;
    text-align: center;
    padding: 10px;
}

.item-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* --- FOOTER ORIGINAL --- */
.main-footer {
    text-align: center;
    padding: 35px 20px;
    background-color: var(--bg-color);
    border-top: 1px solid #ddd;
    margin-top: 30px;
}

.main-footer h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: normal;
    line-height: 1;
    margin-bottom: 4px;
}

.main-footer h2 a, 
.main-footer p a {
    color: inherit;
    text-decoration: none;
}

.main-footer p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.watermark {
    margin-top: 12px;
}

.watermark a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.watermark a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 850px) {
    .brand-hero-title h1 {
        font-size: 3.2rem;
    }
    .hero-nav {
        flex-direction: column;
        gap: 10px;
        border-radius: 20px;
        padding: 12px;
    }
    .hero-nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
    }
    .header-sticky-wrapper {
        top: 10px;
    }
    .hero-immersive {
        padding: 30px 15px;
        min-height: auto;
    }
    .menu-categories-bar {
        border-radius: 15px;
    }
    .menu-categories-bar ul {
        justify-content: flex-start;
    }
}