:root {
    --color-primary: #D97736;
    --color-primary-dark: #B85D19;
    --color-dark: #1A1A1A;
    --color-dark-light: #2A2A2A;
    --color-light: #F9F8F6;
    --color-white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--color-dark); background-color: var(--color-light); line-height: 1.6; overflow-x: hidden; }
html { scroll-behavior: smooth; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-light { color: #ccc; }
.bg-dark { background-color: var(--color-dark); }
.mt-2 { margin-top: 20px; }
.max-w-700 { max-width: 700px; margin: 0 auto; }

/* Botones */
.btn { display: inline-block; padding: 12px 28px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: var(--transition); cursor: pointer; border: none; text-align: center; }
.btn-primary { background-color: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background-color: var(--color-primary-dark); transform: translateY(-2px); }
.btn-outline { background-color: transparent; border: 2px solid var(--color-white); color: var(--color-white); }
.btn-outline:hover { background-color: var(--color-white); color: var(--color-dark); }

/* Header */
header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: var(--transition); }
header.scrolled { background-color: rgba(26, 26, 26, 0.95); backdrop-filter: blur(10px); padding: 15px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { color: var(--color-white); font-family: var(--font-heading); font-size: 1.8rem; text-decoration: none; font-weight: 700; }
.nav-links a { color: var(--color-white); text-decoration: none; margin: 0 15px; font-size: 0.9rem; font-weight: 400; transition: var(--transition); }
.nav-links a:hover { color: var(--color-primary); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--color-white); font-size: 1.5rem; cursor: pointer; }

/* Hero Video */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background-color: var(--color-dark); }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.5), rgba(26,26,26,0.95)); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: var(--color-white); width: 100%; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.hero h1 span { color: var(--color-primary); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; }

/* Secciones Generales */
.section-title { font-size: 2.5rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background-color: var(--color-primary); }
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text p { margin-bottom: 15px; color: #555; }
.about-image img { width: 100%; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Menú & Tabs */
.menu-tabs-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 30px 0; }
.tab-btn { background: transparent; border: 1px solid #555; color: #ccc; padding: 8px 16px; border-radius: 30px; cursor: pointer; font-family: var(--font-body); font-weight: 600; transition: var(--transition); }
.tab-btn:hover { border-color: var(--color-primary); color: var(--color-white); }
.tab-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.menu-category { display: none; } /* Oculto por defecto para las tabs */
.menu-category.active { display: block; animation: fadeInTab 0.5s ease; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.menu-category h3 { color: var(--color-primary); font-size: 1.8rem; margin-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.menu-category p.cat-desc { color: #888; font-size: 0.9rem; margin-bottom: 20px; }
.menu-item { display: flex; justify-content: space-between; margin-bottom: 15px; color: var(--color-white); }
.menu-item-name { font-weight: 600; }
.menu-item-name.destacado { color: var(--color-primary); }
.menu-item-price { font-family: var(--font-body); color: #ccc; }

/* Galería & Lightbox */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.gallery-item img { width: 100%; height: 300px; object-fit: cover; display: block; transition: var(--transition); cursor: pointer; }
.gallery-item:hover img { transform: scale(1.05); opacity: 0.8; }

#lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: none; justify-content: center; align-items: center; z-index: 2000; cursor: pointer; }
#lightbox-overlay.active { display: flex; }
#lightbox-img { max-width: 90%; max-height: 90%; border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }

/* Reseñas */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.review-card { background: var(--color-white); padding: 30px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: left; }
.stars { color: #FFD700; margin-bottom: 15px; font-size: 1.2rem; }
.review-card p { font-style: italic; color: #555; margin-bottom: 15px; }
.review-card h4 { color: var(--color-dark); font-size: 1rem; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-list { list-style: none; margin-top: 20px; }
.contact-list li { margin-bottom: 15px; font-size: 1.1rem; }

/* Modal de Reservas */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 3000; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal.active { display: flex; animation: fadeInModal 0.3s; }
.modal-content { background: var(--color-light); padding: 40px; border-radius: 8px; width: 90%; max-width: 400px; position: relative; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; color: #555; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 5px; color: var(--color-dark); }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: var(--font-body); }
@keyframes fadeInModal { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* Footer y Flotantes */
footer { background-color: var(--color-dark); color: var(--color-white); padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: var(--color-primary); font-size: 1.5rem; margin-bottom: 15px; }
.footer-links a, .footer-social a { display: block; color: #ccc; text-decoration: none; margin-bottom: 10px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #888; font-size: 0.9rem; }

.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50%; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; box-shadow: 0px 4px 10px rgba(0,0,0,0.3); z-index: 1000; transition: var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); }
.mobile-sticky-bar { display: none; }

/* Animaciones de Scroll */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .nav-links, .nav-btn { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--color-dark); padding: 20px; text-align: center; }
    .nav-links.active a { margin: 15px 0; }
    .gallery-grid { grid-template-columns: 1fr; }
    
    /* Mostrar Sticky Bar y Ocultar botón flotante en móvil */
    .desktop-only { display: none; }
    .mobile-sticky-bar { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--color-dark-light); z-index: 2000; box-shadow: 0 -2px 10px rgba(0,0,0,0.2); }
    .mobile-sticky-bar .btn { padding: 15px 0; font-size: 1rem; }
    /* Dar espacio al final para que la barra no tape el footer */
    body { padding-bottom: 50px; }
}