/* Global Variables & Reset */
:root {
    --color-bg-dark: hsl(220, 15%, 8%);
    --color-bg-panel: hsl(220, 12%, 12%);
    --color-bg-input: hsl(220, 10%, 16%);
    --color-primary: hsl(25, 100%, 50%); /* Warm Amber Orange */
    --color-primary-hover: hsl(25, 100%, 43%);
    --color-accent: hsl(40, 100%, 60%); /* Glow Gold */
    --color-text-main: hsl(60, 10%, 96%); /* Cream off-white */
    --color-text-muted: hsl(60, 5%, 65%);
    --color-border: hsl(220, 8%, 20%);
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Components / Buttons */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(230, 92, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 92, 0, 0.5);
    background: var(--color-primary-hover);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background: var(--color-border);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

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

/* Header & Navigation */
.main-header {
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
    background: transparent;
    transition: all var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.fire-icon {
    font-size: 1.5rem;
    animation: flicker 1.5s infinite alternate;
}

.brand-name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.75rem;
    background: var(--color-primary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 2px;
}

.navbar {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-fast);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    z-index: 110;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-main);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.9)), url('images/hero.jpg') no-repeat center center/cover;
    transform: scale(1.05);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

/* Features / Nosotros Section */
.features-section {
    padding: 100px 0;
    background-color: var(--color-bg-dark);
}

.features-header, .menu-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.features-header h2, .menu-header h2, .reservation-info h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.features-header p, .menu-header p, .reservation-info p {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

/* Interactive Menu Section */
.menu-section {
    padding: 100px 0;
    background-color: var(--color-bg-panel);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.menu-tab {
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.menu-tab:hover, .menu-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

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

.menu-card {
    background-color: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(230, 92, 0, 0.4);
}

.menu-img-box {
    width: 100%;
    height: 200px;
    background-color: var(--color-bg-panel);
    position: relative;
    overflow: hidden;
}

.menu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.menu-card:hover .menu-img {
    transform: scale(1.08);
}

.menu-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-accent);
    color: #000000;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.menu-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.menu-item-title {
    font-size: 1.15rem;
    font-weight: 700;
}

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

.menu-item-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Reservation & Form Section */
.reservation-section {
    padding: 100px 0;
    background-color: var(--color-bg-dark);
}

.reservation-box {
    background-color: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.reservation-info {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.info-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: var(--color-bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
}

.info-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.info-item p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.reservation-form-container {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 60px 40px;
    border-left: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity var(--transition-fast) var(--transition-fast);
}

.booking-form.hide {
    opacity: 0;
    pointer-events: none;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    background-color: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--color-text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: none;
    height: 80px;
}

/* Success Screen state */
.success-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all var(--transition-normal);
}

.success-screen.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.success-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

.success-circle {
    stroke-width: 2;
    stroke: var(--color-primary);
    stroke-miterlimit: 10;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
    transform-origin: 50% 50%;
    stroke-width: 3;
    stroke: var(--color-primary);
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.success-screen h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.success-msg {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.ticket-details {
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    width: 100%;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 8px;
}

.ticket-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ticket-row span {
    color: var(--color-text-muted);
}

.ticket-row strong {
    color: var(--color-accent);
}

/* Footer styling */
.main-footer {
    background-color: hsl(220, 15%, 5%);
    border-top: 1px solid var(--color-border);
    padding: 40px 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Animations */
@keyframes flicker {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255, 153, 51, 0.3)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 6px rgba(255, 153, 51, 0.6)); }
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

/* Mobile responsive media queries */
@media (max-width: 900px) {
    .reservation-box {
        flex-direction: column;
    }
    
    .reservation-form-container {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding: 50px 20px;
    }
    
    .reservation-info {
        padding: 50px 20px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 20px;
    }
    
    .navbar, .header-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Mobile Drawer */
    .mobile-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-bg-panel);
        border-left: 1px solid var(--color-border);
        z-index: 99;
        display: flex;
        flex-direction: column;
        padding: 100px 30px;
        transition: right var(--transition-normal);
    }
    
    .mobile-drawer.open {
        right: 0;
    }
    
    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    .mobile-link {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--color-text-muted);
    }
    
    .mobile-link:hover {
        color: var(--color-text-main);
    }
    
    /* Animation state for hamburger button */
    .mobile-menu-btn.open .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-btn.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
