/* =========================================
    1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --color-malbec: #722F37;
    --color-malbec-dark: #5a242b;
    --texto-oscuro: #2d2d2d;
    --texto-gris: #555555;
    --blanco-puro: #ffffff;
    --fondo-crema: #fdfaf8;
    --shadow-suave: 0 2px 10px rgba(0,0,0,0.05);
}

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

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--texto-oscuro);
    background-color: var(--blanco-puro);
    padding-top: 70px;
    overflow-x: hidden;
}

body.home-page {
    padding-top: 0;
}

/* =========================================
    2. NAVEGACIÓN Y HEADER GLOBAL
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    z-index: 2000;
    box-shadow: var(--shadow-suave);
    padding: 0 4%; /* Espaciado lateral pedido */
}

.navbar {
    display: flex;
    justify-content: space-between; /* Logo a un lado, botones al otro */
    align-items: center;
    width: 100%; 
    max-width: 100%; 
}

.logo { 
    display: flex;
    align-items: center;
    gap: 1px; /* Espacio entre imagen y texto */
    font-size: 32px; 
    font-weight: 700; 
    color: var(--texto-oscuro); 
    text-decoration: none; 
}

.logo span { color: var(--color-malbec); }

.logo-img {
    height: 100px; /* Tamaño optimizado */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px; /* Más espacio entre botones */
}

.nav-links li a { 
    text-decoration: none; 
    color: var(--texto-oscuro); 
    padding: 10px 15px;
    font-size: 15px; 
    text-transform: uppercase; 
    font-weight: 600;
    transition: 0.3s;
}

.nav-links li a:hover { color: var(--color-malbec); }

.btn-vip { 
    background: var(--color-malbec) !important; 
    color: white !important; 
    padding: 8px 18px !important; 
    border-radius: 10px;
    font-weight: 700 !important;
}

.btn-vip:hover { background: var(--color-malbec-dark) !important; }

/* --- Herramientas (Campana) --- */
.header-tools {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.noti-bell {
    position: relative;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.noti-bell:hover { transform: scale(1.1); }

/* =========================================
    3. SECCIONES HERO Y CONTENIDO
   ========================================= */
.hero-top {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1655580849551-ba305b631ac0?q=80&w=1170&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 { 
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem; 
    margin: 20px 0; 
}

.tagline { 
    color: var(--color-malbec); 
    background: white; 
    padding: 6px 18px; 
    border-radius: 30px; 
    font-size: 12px; 
    font-weight: 700; 
    text-transform: uppercase; 
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary { background: var(--color-malbec); color: white; }
.btn-secondary { background: white; color: var(--texto-oscuro); }

.seccion-texto, .seccion-relato { 
    padding: 80px 10%; 
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.seccion-texto h2, .seccion-relato h2 { 
    font-family: 'Playfair Display', serif;
    color: var(--color-malbec); 
    font-size: 2.5rem; 
    margin-bottom: 25px; 
}

.texto-inspirador {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--texto-oscuro);
    text-align: left;
}

.cita-premium {
    font-style: italic;
    color: var(--color-malbec);
    border-left: 4px solid var(--color-malbec);
    padding: 20px 30px;
    margin: 40px 0;
    background: var(--fondo-crema);
}

/* =========================================
    4. COMPONENTES (BOLETÍN, MODAL, CARDS)
   ========================================= */
.boletin-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100vh;
    background: var(--blanco-puro);
    z-index: 10001;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px;
}

.boletin-sidebar.active { right: 0; }

.boletin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--fondo-crema);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.btn-cerrar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--texto-gris);
}

.widget-clima {
    background: var(--fondo-crema);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

/* --- Notificaciones --- */
.dot-alerta {
    position: absolute;
    background-color: #ff4757;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid white;
}

.noti-bell .dot-alerta { top: -2px; right: -2px; }

/* --- Guía de Actividades --- */
.seccion-guias { 
    padding: 80px 5%; 
    background-color: var(--fondo-crema); 
    text-align: center;
}

.grid-actividades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card-actividad {
    background: white;
    padding: 40px;
    border-radius: 15px;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.card-actividad:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--color-malbec);
}

/* --- Modal de Edad --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.btn-principal {
    background: var(--color-malbec);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    width: 100%;
}

/* =========================================
    5. FORMULARIO Y FOOTER
   ========================================= */
.seccion-contacto { padding: 80px 5%; background-color: var(--fondo-crema); }

.contenedor-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.campo { margin-bottom: 20px; text-align: left; }
.campo input, .campo textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px;
}

.btn-enviar-final {
    width: 100%; background: var(--color-malbec); color: white;
    padding: 18px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
}

.alcohol-warning { 
    background: #000; color: #fff; text-align: center; padding: 15px; font-size: 0.8rem; font-weight: 600;
}

.main-footer { background: #1a1a1a; color: #fff; padding: 60px 5% 20px; }

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links a { color: #aaa; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--color-malbec); }

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.8rem;
}

/* =========================================
    6. RESPONSIVE Y ANIMACIONES
   ========================================= */
.menu-toggle { display: none; }

@media (max-width: 768px) {
    .header-tools { display: none !important; }
    .hero-content h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    
    .menu-toggle {
        display: flex;
        position: fixed; 
        bottom: 35px; 
        right: 25px; 
        width: 60px; height: 60px;
        background-color: white;
        border-radius: 50%;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        border: 1.5px solid var(--color-malbec);
        cursor: pointer;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 110px;
        right: 35px;
        gap: 15px;
        z-index: 9998;
    }

    .nav-links.active li a {
        background: white;
        color: var(--color-malbec);
        padding: 10px 15px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        min-width: 160px;
        text-align: center;
        border: 1px solid #eee;
    }
}

.wine-icon { font-size: 24px; transition: transform 0.4s ease; }

.nav-links.active ~ .menu-toggle .wine-icon {
    transform: rotate(-45deg) !important;
}

.menu-toggle:active .wine-icon { transform: rotate(-20deg); }

@keyframes balanceo {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
}

@keyframes cargaLenta {
    from { width: 0%; }
    to { width: 65%; }
}

/* =========================================
    7. CLUB TUR PROXIMAMENTE
   ========================================= */
.proximamente-body { background: var(--fondo-crema); height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; flex-direction: column; }
.proximamente-body .logo { display: block; margin-bottom: 20px; font-size: 28px; text-align: center; }

.loader-copa { font-size: 60px; animation: balanceo 2s ease-in-out infinite; display: inline-block; }
.progress-bar-wrapper { width: 100%; max-width: 300px; height: 8px; background: #e0e0e0; border-radius: 10px; overflow: hidden; margin: 20px auto 40px; }
.progress-bar-fill { width: 65%; height: 100%; background: var(--color-malbec); animation: cargaLenta 3s ease-in-out; }

.volver-link { text-decoration: none; color: var(--color-malbec); font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.volver-link:hover { color: var(--texto-oscuro); }

@media (min-width: 769px) {
    .btn-boletin-nav { display: none !important; }
}

.menu-toggle .dot-alerta { 
    top: 5px; 
    right: 5px; 
}