/* --- Variables & Reset --- */
:root {
    --gold: #c5a059;
    --gold-light: #d4b572;
    --gold-dark: #a68545;
    --dark-bg: #0a0a0a;
    --dark-surface: #141414;
    --dark-surface-elevated: #1e1e1e;
    --text-primary: #f5f5f5;
    --text-secondary: #aaaaaa;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

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

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

h1, h2, h3, h4, .logo a {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

/* Typography styles */
.subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.divider {
    height: 2px;
    width: 60px;
    background: var(--gold);
    margin: 20px 0 40px;
}

/* --- Utilities --- */
.container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary.w-100 {
    width: 100%;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--gold);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--dark-bg);
}

.btn-primary:hover::before {
    left: 0;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    background: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: 15px 50px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo a {
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-slow);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-menu ul {
    text-align: center;
}

.mobile-menu li {
    margin-bottom: 30px;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--gold);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('./assets/hero-bg.png') center/cover no-repeat;
    background-color: var(--dark-bg); /* Fallback */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(10,10,10,0.95) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 10;
}

.hero h1 {
    font-size: 5.5rem;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    letter-spacing: 5px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 10;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* --- Experiencia Section --- */
.experiencia-text {
    flex: 1;
}

.experiencia-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.experiencia-image {
    flex: 1;
    position: relative;
}

.experiencia-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    z-index: -1;
    transition: var(--transition-slow);
}

.experiencia-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: var(--transition-slow);
}

.experiencia:hover .experiencia-image::before {
    top: 10px;
    left: -10px;
}

.experiencia:hover .experiencia-image img {
    transform: translate(-5px, 5px);
}

/* --- La Carta Section --- */
.carta {
    background-color: var(--dark-surface);
}

.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

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

.tab-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    border-color: rgba(197, 160, 89, 0.5);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gold);
    color: var(--dark-bg);
    border-color: var(--gold);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

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

.menu-category {
    background: var(--dark-surface-elevated);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.02);
    transition: transform 0.3s ease;
}

.menu-category:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 89, 0.2);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    padding-bottom: 15px;
}

.category-header i {
    color: var(--gold);
    font-size: 1.5rem;
}

.category-header h3 {
    font-size: 1.8rem;
    color: var(--gold);
}

.menu-item {
    margin-bottom: 25px;
}

.menu-item:last-child {
    margin-bottom: 0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.item-header h4 {
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.price {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
}

.price::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Galeria Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.gallery-item.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* --- Reservas Section --- */
.reservas {
    background-color: var(--dark-bg);
}

.reservas-form-wrapper {
    flex: 1;
    background: var(--dark-surface-elevated);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.reservas-text {
    flex: 1;
}

.reservas-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 15px;
}

.form-group {
    margin-bottom: 25px;
}

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

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background-color: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    border-radius: 4px;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.form-group input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.reservas-form .btn-primary i {
    margin-left: 10px;
    font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
    background-color: #050505;
    padding: 80px 0 0;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

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

.map-container {
    width: 100%;
    margin-bottom: -5px; /* fixes gap below iframe */
}

.map-container iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(80%) contrast(100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.map-container iframe:hover {
    opacity: 1;
}

.footer-brand h2 {
    color: var(--gold);
    margin-bottom: 5px;
}

.footer-brand p {
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-surface-elevated);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--gold);
    color: var(--dark-bg);
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer ul li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer ul li i {
    color: var(--gold);
    margin-top: 5px;
}

.footer-hours span {
    font-weight: 600;
    color: var(--text-primary);
    width: 80px;
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* --- WhatsApp Button --- */
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp .tooltip {
    position: absolute;
    right: 80px;
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-whatsapp .tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.btn-whatsapp:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease, transform 1s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- Media Queries --- */
@media (max-width: 992px) {
    .container-flex {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .reservas-form-wrapper {
        width: 100%;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .menu-category {
        padding: 25px;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .price::before {
        display: none;
    }
    
    .price {
        padding-left: 0;
    }
    
    .gallery-item.item-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
