:root {
    --bg-dark: #0a0a0a;
    --bg-light-dark: #141414;
    --text-light: #f5f5f0;
    --text-muted: #a0a0a0;
    --accent-red: #8b0000;
    --accent-red-hover: #b30000;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
}

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

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

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: all 0.4s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 90px;
    width: auto;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}

.navbar.scrolled .logo img {
    height: 60px;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-links a:hover {
    color: var(--accent-red);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    letter-spacing: 5px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.8);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-style: italic;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-red);
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--accent-red);
    color: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
}

/* General Sections */
.section {
    padding: 6rem 5%;
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-align: inherit;
}

.text-center {
    text-align: center;
}

.separator {
    height: 2px;
    width: 60px;
    background-color: var(--accent-red);
    margin-bottom: 2rem;
}

.separator.center {
    margin: 0 auto 2rem auto;
}

/* La Familia Section */
.familia {
    background-color: var(--bg-light-dark);
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.text-content {
    flex: 1;
}

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.image-content {
    flex: 1;
}

.frame-container {
    padding: 15px;
    background: #111;
    box-shadow: 0 0 30px rgba(0,0,0,0.8), inset 0 0 10px rgba(255,255,255,0.1);
    border: 2px solid #222;
    transition: transform 0.5s ease;
}

.frame-container:hover {
    transform: scale(1.02);
}

.framed-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(80%) contrast(120%);
    transition: filter 0.5s ease;
}

.frame-container:hover .framed-image {
    filter: grayscale(20%) contrast(110%);
}

/* Menu Section */
.menu-section {
    background-color: var(--bg-dark);
}

.menu-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 3rem;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.tab-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -1px;
    left: 0;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.tab-btn.active {
    color: var(--text-light);
}

.tab-btn.active::after {
    width: 100%;
}

.menu-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

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

.menu-item {
    background-color: var(--bg-light-dark);
    border: 1px solid #222;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: #333;
}

.item-img {
    height: 220px;
    overflow: hidden;
}

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

.menu-item:hover .item-img img {
    transform: scale(1.05);
}

.item-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-info.full {
    padding: 2rem;
}

.item-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.item-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.price {
    font-family: var(--font-heading);
    color: var(--accent-red);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Footer / Contact */
.footer {
    background-color: #050505;
    padding: 4rem 5% 2rem;
    text-align: center;
    border-top: 1px solid #111;
}

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

.contact-info {
    margin: 2rem 0;
    color: var(--text-muted);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #555;
}

/* Redes Section */
.redes-section {
    background-color: var(--bg-light-dark);
}
.redes-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}
.redes-card {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 3rem 4rem;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.4s ease;
    flex: 1;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.redes-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.2);
}
.redes-icon {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    transition: color 0.4s ease;
}
.redes-card:hover .redes-icon {
    color: var(--text-light);
}
.redes-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}
.redes-card p {
    color: var(--text-muted);
}

/* Reserva App */
.reserva-app {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto;
}
.reserva-card {
    background: var(--bg-light-dark);
    border: 1px solid #222;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.reserva-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}
.reserva-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.reserva-input {
    background: #0a0a0a;
    border: 1px solid #333;
    color: var(--text-light);
    padding: 0.8rem 1rem;
    border-radius: 5px;
    font-family: var(--font-body);
    width: 100%;
    transition: border-color 0.3s ease;
}
.reserva-input:focus {
    outline: none;
    border-color: var(--accent-red);
}
::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}
.full-width {
    grid-column: span 2;
}
.btn-secondary {
    background-color: #222;
    color: var(--text-light);
    border: 1px solid #444;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s;
    border-radius: 5px;
}
.btn-secondary:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.calendar-nav {
    background: #222;
    border: none;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}
.calendar-nav:hover {
    background: var(--accent-red);
}
.calendar-month {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    text-transform: capitalize;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}
.cal-day-header {
    font-weight: bold;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.cal-cell {
    background: #0a0a0a;
    border: 1px solid #222;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s;
    overflow: hidden;
}
.cal-cell:hover {
    border-color: var(--accent-red);
}
.cal-cell span {
    position: relative;
    z-index: 10;
}
.search-flex {
    display: flex;
    gap: 1rem;
}
.flex-grow {
    flex-grow: 1;
}

/* Tooltip & Modals */
.reserva-tooltip {
    position: absolute;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--accent-red);
    color: var(--text-light);
    padding: 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.reserva-tooltip.hidden {
    opacity: 0;
    display: none;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s;
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-content {
    background: var(--bg-light-dark);
    border: 1px solid #333;
    padding: 2.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border-top: 3px solid var(--accent-red);
}
.modal-content h3 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--text-light);
}
.modal-body {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Animations */
.reveal-text, .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-text.active, .reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .split-layout { flex-direction: column; }
    .nav-links { display: none; }
    .menu-tabs { flex-direction: column; gap: 1rem; align-items: center; }
    .redes-grid { flex-direction: column; align-items: center; }
    .reserva-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .search-flex { flex-direction: column; }
}
