/* ===== Variables ===== */
:root {
    --color-primary: #2d5016;
    --color-secondary: #c8102e;
    --color-accent: #009246;
    --color-white: #ffffff;
    --color-cream: #faf8f3;
    --color-gold: #d4af37;
    --color-text: #2c2c2c;
    --color-text-light: #666;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ===== Reset y Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header & Navigation ===== */
.header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    font-weight: 700;
    margin: 0;
}

.logo .tagline {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 500;
    margin-top: -5px;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--color-secondary);
}

.btn-reserva {
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reserva:hover {
    background: #a00d26;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(200, 16, 46, 0.3);
}

/* ===== Hamburger Menu ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* ===== Overlay ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* ===== Hero Section ===== */
.hero {
    margin-top: 80px;
    height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1600') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #a00d26;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

/* ===== About Section ===== */
.about {
    padding: 5rem 0;
    background: var(--color-cream);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-secondary);
    margin: 1rem auto 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* ===== Menu Section ===== */
.menu {
    padding: 5rem 0;
    background: var(--color-white);
}

.menu-category {
    margin-bottom: 4rem;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
}

.category-note {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.menu-item {
    background: var(--color-cream);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left-color: var(--color-accent);
}

.menu-item.highlight {
    background: linear-gradient(135deg, #fff9e6 0%, var(--color-cream) 100%);
    border: 2px solid var(--color-gold);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.item-header h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 600;
    flex: 1;
}

.price {
    font-size: 1.2rem;
    color: var(--color-secondary);
    font-weight: 700;
    white-space: nowrap;
    margin-left: 1rem;
}

.menu-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== Contact Section ===== */
.contact {
    padding: 5rem 0;
    background: var(--color-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

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

.info-item h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.info-item a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--color-primary);
}

/* ===== Reserva Form ===== */
.reserva-form {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.reserva-form h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.reserva-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reserva-form input,
.reserva-form button {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
}

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

.reserva-info {
    text-align: center;
    padding: 2rem;
}

.reserva-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.reserva-info p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-brand .tagline {
    font-size: 0.9rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.social-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-icons a {
    transition: transform 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    transform: scale(1.2);
}

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 2rem;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

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

    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
        text-align: left;
        width: 100%;
    }

    .nav-menu li {
        border-bottom: 1px solid #eee;
        padding-bottom: 1rem;
    }

    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }

    .btn-reserva {
        width: 100%;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }

    .hero {
        height: 400px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

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

/* ===== StickyWork Widget - Z-index Fix ===== */
.stickywork-modal {
    z-index: 99999 !important;
    pointer-events: auto !important;
}

.stickywork-widget,
.stickywork-form {
    z-index: 99999 !important;
    pointer-events: auto !important;
}

.stickywork-calendar-dropdown {
    position: relative !important;
    z-index: 100000 !important;
}

.stickywork-calendar-trigger {
    z-index: 100001 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.stickywork-calendar-dropdown-content {
    z-index: 100002 !important;
    pointer-events: auto !important;
}

.stickywork-custom-select {
    position: relative !important;
    z-index: 100000 !important;
}

.stickywork-custom-select-trigger {
    z-index: 100001 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.stickywork-custom-select-dropdown {
    z-index: 100002 !important;
    pointer-events: auto !important;
}

.stickywork-custom-select-option {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Asegurar que NADA bloquee el widget */
.overlay.active {
    pointer-events: none !important;
}

/* Forzar visibilidad del calendario cuando esté activo */
.stickywork-calendar-dropdown.active .stickywork-calendar-dropdown-content,
.stickywork-calendar-dropdown-content.active,
.stickywork-calendar-dropdown-content[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100003 !important;
    pointer-events: auto !important;
}

/* Forzar visibilidad del dropdown de horas cuando esté activo */
.stickywork-custom-select.active .stickywork-custom-select-dropdown,
.stickywork-custom-select-dropdown.active,
.stickywork-custom-select-dropdown[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100003 !important;
    pointer-events: auto !important;
}

