/* ==========================================
   ESTILOS UNIFICADOS: NAVBAR Y FOOTER
   ========================================== */

/* --- NAVBAR PRINCIPAL --- */
#main-header {
    transition: all 0.4s ease-in-out;
    padding: 1rem 0;
}

/* --- ESTADO TRANSPARENTE (INICIAL) --- */
.header-transparent {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Textos e Iconos en Transparente */
.header-transparent .nav-link {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.header-transparent .nav-link.active::after {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.header-transparent #mobile-menu-btn {
    color: white;
}

.header-transparent .logo-img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.header-transparent .social-nav-link {
    color: white;
}

.header-transparent .social-nav-link:hover {
    color: var(--color-wine); /* Vino al hover */
    background-color: white;
}

/* --- ESTADO SCROLLED (AL BAJAR) --- */
/* Se activa vía JS cuando window.scrollY > 50 */
#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98); /* Blanco casi opaco */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0; /* Navbar más compacto */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Textos e Iconos en Scrolled */
#main-header.scrolled .nav-link {
    color: #4b5563; /* Gris oscuro */
    text-shadow: none;
}

#main-header.scrolled .nav-link:hover,
#main-header.scrolled .nav-link.active {
    color: var(--color-wine);
}

#main-header.scrolled .nav-link.active::after {
    background-color: var(--color-wine);
}

#main-header.scrolled #mobile-menu-btn {
    color: var(--color-wine);
}

#main-header.scrolled .logo-img {
    filter: none; /* Quita sombra */
}

#main-header.scrolled .social-nav-link {
    color: #4b5563;
}

#main-header.scrolled .social-nav-link:hover {
    color: var(--color-wine);
    background-color: #f3f4f6;
}

/* --- ELEMENTOS COMUNES NAVBAR --- */
.nav-link {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    transition: width 0.3s ease;
}

.nav-link.active::after {
    width: 100%;
}

.logo-link {
    display: block;
    line-height: 0;
}

/* MODIFICADO: Logo más grande (Antes 80px) */
.logo-img {
    height: 110px; /* Tamaño base aumentado */
    width: auto;
    transition: all 0.3s ease;
}

/* En scrolled, reducimos un poco el logo, pero sigue siendo más grande que antes */
#main-header.scrolled .logo-img {
    height: 85px;
}

#main-header.scrolled .rif-text {
    color: #6A1B1F !important;
    text-shadow: none !important;
}

/* --- BOTONES DE ACCIÓN (Navbar) --- */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-wine);
    color: white;
    box-shadow: 0 4px 10px rgba(106, 27, 31, 0.3);
}

.btn-primary:hover {
    background-color: #5a161a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 27, 31, 0.4);
}

/* --- MENÚ MÓVIL --- */
#mobile-menu {
    border-top: 1px solid #e5e7eb;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #4b5563;
    font-weight: 600;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: #fff1f2; /* Fondo vino muy suave */
    color: var(--color-wine);
}

/* --- FOOTER --- */
.site-footer {
    background-color: #1a1a1a;
    color: white;
    padding-top: 4rem;
    padding-bottom: 2rem;
    text-align: center;
    border-top: 4px solid var(--color-wine);
}

/* Sticky Bar (Móvil) para Reservas/WhatsApp */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 1024px) {
    .mobile-sticky-bar { display: none; }
}

.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sticky-whatsapp {
    background-color: #f9fafb;
    color: #25D366;
}
.sticky-reservar {
    background-color: var(--color-wine);
    color: white;
}