/* 
=============================================
CUBANS BODEGA RESTAURANT - STYLE SYSTEM
=============================================
*/

:root {
    --color-bg-main: #12100E;
    --color-bg-secondary: #1F1B18;
    --color-bg-card: #2A2521;
    --color-primary: #D4AF37;
    --color-accent: #D73C2C;
    --color-accent-hover: #E84D3D;
    --color-text-title: #FFFFFF;
    --color-text-main: #EAE6DF;
    --color-text-muted: #AFA89D;
    --color-border: rgba(212, 175, 55, 0.15);
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-main);
    background-image: linear-gradient(to bottom, rgba(18, 16, 14, 0.75), rgba(18, 16, 14, 0.95)), url('./img/background/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER & NAVIGATION */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(18, 16, 14, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    transition: var(--transition-smooth);
}

header.scrolled .header-container {
    padding: 1rem 2rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition-fast);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--color-text-title);
}

/* HERO / ESPECIAL DEL DIA */
.especial-dia {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--color-bg-secondary);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18,16,14,0.4) 0%, rgba(18,16,14,0.9) 100%);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
}

.especial-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1.2s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

.badge {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(215, 60, 44, 0.4);
}

.especial-content h2 {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text-title);
    text-shadow: 2px 4px 10px rgba(0,0,0,0.8);
}

.especial-content p {
    font-size: 1.4rem;
    color: var(--color-text-main);
    margin-bottom: 3rem;
    font-weight: 300;
    text-shadow: 1px 2px 5px rgba(0,0,0,0.8);
    max-width: 700px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-bg-main);
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-smooth);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

/* NAVIGATION ARROWS & ANIMATIONS */
.especial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 16, 14, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    animation: pulseBorder 2.5s infinite;
}

.especial-nav-btn:hover {
    background: var(--color-primary);
    color: var(--color-bg-main);
    transform: translateY(-50%) scale(1.1);
    animation: none;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.prev-btn {
    left: 3rem;
}

.next-btn {
    right: 3rem;
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* TRANSITIONS CONTENT */
.fade-out {
    opacity: 0 !important;
    transform: translateX(-30px);
    transition: all 0.4s ease-out;
}
.fade-in {
    animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* CLASSIC MENU SECTION */
.menu-estandar {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-image: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(215, 60, 44, 0.03) 0%, transparent 40%);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-text-title);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-primary);
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-decorator {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 2rem auto 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 4rem;
}

.menu-category h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.menu-list {
    list-style: none;
}

.menu-list li {
    display: flex;
    align-items: stretch;
    padding: 0;
    height: 280px;
    background: rgba(31, 27, 24, 0.85); /* Semi-transparent secondary */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-bg-card);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    gap: 0;
}

.menu-list li:hover {
    border-left-color: var(--color-accent);
    background: rgba(42, 37, 33, 0.95); /* Semi-transparent card */
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.menu-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.menu-list li:hover::before {
    transform: translateX(100%);
}

.menu-item-img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
    border: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.menu-list li:hover .menu-item-img {
    transform: scale(1.02);
}

.menu-item-info {
    width: 50%;
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    border-left: 1px solid var(--color-border);
}

.menu-item-info h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-title);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.menu-item-info p {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .menu-list li {
        flex-direction: column;
        height: auto;
        min-height: 400px;
    }
    
    .menu-item-img {
        width: 100%;
        height: 200px;
        border-radius: 8px 8px 0 0;
    }
    
    .menu-item-info {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding: 1.5rem;
    }
}

/* FOOTER */
footer {
    background-color: rgba(31, 27, 24, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 6rem 2rem 2rem;
    border-top: 1px solid var(--color-border);
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.logo-footer {
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-content h4 {
    color: var(--color-text-title);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-content p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    line-height: 1.6;
}

.footer-content i {
    color: var(--color-primary);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ANIMATIONS & RESPONSIVE */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleBackground {
    from { background-size: 105%; }
    to   { background-size: 115%; }
}

@media (max-width: 992px) {
    .especial-content h2 { font-size: 4rem; }
    .menu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header { background: rgba(18, 16, 14, 0.95); }
    
    .header-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem !important;
    }
    
    nav ul {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .especial-content h2 { font-size: 3rem; }
    .especial-content p { font-size: 1.1rem; }
    .badge { font-size: 0.75rem; }
    
    .section-header h2 { font-size: 2.5rem; }
    .menu-estandar { padding: 5rem 1.5rem; }

    .especial-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    .prev-btn { left: 1rem; }
    .next-btn { right: 1rem; }
}

@media (max-width: 480px) {
    .especial-content h2 { font-size: 2.5rem; }
}