/* =========================================
    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);
}
html {
scroll-behavior: smooth;
}
* {
    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);
    background-image: linear-gradient(180deg, #fdf8f5 0, #fdf8f5 460px, #ffffff 460px, #ffffff 100%);
    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%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
}

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

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

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.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); }
.nav-links li a[aria-current="page"] {
    color: var(--color-malbec);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #b38b60;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
    text-shadow: 0 0 14px rgba(114, 47, 55, .15);
}
.nav-links li a:focus-visible { outline: 2px solid #b38b60; outline-offset: 5px; border-radius: 4px; }

/* Botón VIP / Club Tur */
.btn-vip { 
    background: var(--color-malbec) !important; 
    color: white !important; 
    padding: 8px 18px !important; 
    border-radius: 10px;
    font-weight: 700 !important;
}

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

.noti-bell {
    position: relative;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s;
    color: var(--texto-oscuro);
}

/* =========================================
    3. SECCIONES HERO Y CONTENIDO
   ========================================= */
.hero-top {
    min-height: 360px;
    height: auto;
    padding: 85px 20px 50px;
    background: #fdf8f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content { text-align: center; color: var(--texto-oscuro); padding: 0 20px; }
.hero-content h1 { font-family: 'Playfair Display', serif; color: var(--color-malbec); font-size: 3.5rem; margin: 20px 0; }
.hero-content p { color: var(--texto-gris); }

.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 Y MODALES)
   ========================================= */
.boletin-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 380px;
    height: 100vh;
    background: var(--blanco-puro);
    z-index: 11000; /* Aumentado para estar por encima de la copa */
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px;
}

/* Forzar apertura */
.boletin-sidebar.active { 
    right: 0 !important; 
}

.emergencias-panel { margin-top: 24px; padding: 20px; border: 1px solid #eadbdd; border-radius: 16px; background: #fcf7f5; }
.emergencias-panel h4 { margin: 0 0 8px; color: var(--color-malbec); font-family: 'Playfair Display', serif; font-size: 1.2rem; }
.emergencias-panel > p { margin: 0 0 14px; font-size: .8rem; line-height: 1.5; }
.emergencia-contacto { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 12px; border: 1px solid #eadbdd; border-radius: 12px; background: #fff; color: #722f37; text-decoration: none; }
.emergencia-contacto span { min-width: 0; }
.emergencia-contacto strong { display: block; font-size: .82rem; }
.emergencia-contacto small { display: block; margin-top: 3px; font-size: .7rem; line-height: 1.4; color: #666; }
.emergencia-contacto b { font-size: 1.4rem; flex-shrink: 0; }
.emergencias-extra { margin-top: 14px; border-top: 1px solid #eadbdd; padding-top: 12px; }
.emergencias-extra summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; color: #722f37; font-size: .82rem; font-weight: 600; min-height: 44px; }
.emergencias-extra summary::-webkit-details-marker { display: none; }
.emergencias-mas { display: block; position: relative; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #eadbdd; color: #722f37; transform: rotate(0deg); transition: transform .25s ease; }
.emergencias-mas::before, .emergencias-mas::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.emergencias-mas::after { transform: translate(-50%, -50%) rotate(90deg); }
.emergencias-extra[open] .emergencias-mas { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .emergencias-mas { transition: none; } }
.emergencias-extra summary:focus-visible { outline: 3px solid #b38b45; outline-offset: 3px; border-radius: 8px; }
.emergencia-principal { background: #722f37; color: #fff; border-color: #722f37; }
.emergencia-principal small { color: #f5e6e8; }
.emergencia-contacto:focus-visible { outline: 3px solid #b38b45; outline-offset: 3px; }
.emergencias-panel .emergencias-nota { margin: 14px 0 8px; font-size: .72rem; }
.emergencias-fuente { color: #722f37; font-size: .68rem; text-underline-offset: 3px; }

.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.8rem; cursor: pointer; color: var(--texto-gris); }

.bell-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 40px; vertical-align: middle; }
.bell-icon img { display: block; width: 30px; height: 34px; object-fit: contain; }
#mobile-menu .wine-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 48px; }
.wine-icon img { display: block; width: 40px; height: 46px; object-fit: contain; }

#contenedor-deptos { scrollbar-width: none; -ms-overflow-style: none; }
#contenedor-deptos::-webkit-scrollbar { display: none; }
.inicio-carrusel-controles { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-bottom: 20px; }
.inicio-flecha { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dac7c5; border-radius: 50%; background: #fff; color: #722f37; font-size: 1.4rem; cursor: pointer; }
.inicio-flecha:hover:not(:disabled) { background: #722f37; color: #fff; }
.inicio-flecha:disabled { opacity: .35; cursor: default; }
.inicio-flecha:focus-visible, #contenedor-deptos:focus-visible { outline: 3px solid #b38b60; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { #contenedor-deptos { scroll-behavior: auto !important; } }

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

/* Modal 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%; }

/* =========================================
    5. FORMULARIO Y FOOTER (ORDENADO)
   ========================================= */
.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); }

.alcohol-warning { 
    background: #000; color: #fff; text-align: center; 
    padding: 5px; font-size: 0.75rem; font-weight: 600; 
    letter-spacing: 2px; width: 100%;
}

.main-footer { 
    background: #111; color: #fff; 
    padding: 5px 5% 30px; 
    border-top: 5px solid var(--color-malbec);
    width: 100%;
}

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

.footer-brand { flex: 1; min-width: 250px; }
.footer-brand .logo { color: white; margin-bottom: 15px; }

.footer-nav-col { flex: 0.5; min-width: 150px; }
.footer-links { list-style: none; padding: 0; }
.footer-links a { color: #aaa; text-decoration: none; transition: 0.3s; font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-malbec); }

.footer-bottom {
    width: 100%;
    margin-top: 5px;
    padding-top: 25px;
    border-top: 5px solid var(--color-malbec);

    /* Esto es lo que faltaba para centrar */
    display: flex;
    flex-direction: column-reverse;
    align-items: center; 
    text-align: center;
}

.social-credits {
    display: flex;
    justify-content: center; /* Centra el icono de Instagram */
    gap: 20px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.social-credits a { color: #fff; text-decoration: none; transition: 0.3s; }
.social-credits a:hover { color: var(--color-malbec); }

.dev-credits {
    font-size: 0.7rem; color: #555;
    text-transform: uppercase; letter-spacing: 1px;
}
.dev-credits a { color: #888; text-decoration: none; font-weight: bold; }

/* Distribución del menú de escritorio: marca a la izquierda y navegación a la derecha */
@media (min-width: 769px) {
    .navbar {
        justify-content: flex-start;
    }

    .nav-links {
        margin-left: auto;
    }

    .header-tools {
        margin-left: 20px;
    }
}
/* =========================================
    6. RESPONSIVE Y COPA (SELECTOR REFORZADO)
   ========================================= */
.menu-toggle { display: none; }

@media (max-width: 768px) {
    /*Ocultamos el botón sobrante de Mendoza Hoy si aún aparece */
    .nav-links li.btn-boletin-nav { display: none !important; }

    /* Contenedor del Menú (Alineación a la derecha) */
    #nav-links.nav-links {
        display: none; /* Se activa con JS */
        flex-direction: column;
        position: fixed; 
        bottom: 100px; /* Separación de la copa */
        right: 25px;   /* Alineado con el borde del botón de la copa */
        gap: 5px;     /* Espacio uniforme entre botones */
        z-index: 9999;
        width: auto;
        align-items: flex-end; /* Alinea los botones al borde derecho */
    }

    #nav-links.nav-links.active {
        display: flex !important;
    }

    /* 3. Estilización Uniforme de los Botones */
    .nav-links li a {
        background: white !important;
        color: var(--color-malbec) !important;
        
        /* Tamaño uniforme (El secreto de la simetría) */
        width: 130px !important; 
        display: block !important;
        text-align: center !important;
        
        /* Suavizado de bordes y estética */
        padding: 3px 0 !important;
        border-radius: 5px !important; /* Bordes redondeados suaves */
        font-weight: 800 !important;
        text-transform: uppercase;
        font-size: 14px;
        letter-spacing: 1px;
        
        /* Sombra premium sutil */
        box-shadow: 0 1px 1px rgba(0,0,0,0.1) !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
        transition: 0.3s ease;
    }

    /* 4. Botón Club Tur (Diferenciado pero con el mismo tamaño) */
    .nav-links li a.btn-vip, 
    .nav-links li:last-child a {
        background: var(--color-malbec) !important;
        color: white !important;
        border: none !important;
    }

    /* Esto agranda el emoji dentro del círculo blanco */
.menu-toggle {
    font-size: 40px !important; /* Ajustá este número hasta que te guste el tamaño */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

    /* 5. Ajuste de simetría en el botón de la Copa */
    .menu-toggle {
        display: flex !important;
        position: fixed !important;
        bottom: 30px !important; 
        right: 25px !important; 
        width: 65px !important; 
        height: 65px !important;
        
        border-radius: 50% !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
        z-index: 10000 !important;
        justify-content: center !important;
        align-items: center !important;
        border: 2px solid var(--color-malbec) !important;
        padding: 0 !important;
    }
}

/* =========================================
    7. CLUB TUR PROXIMAMENTE
   ========================================= */
.proximamente-body { background: var(--fondo-crema); height: 100vh; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.loader-copa { font-size: 60px; animation: balanceo 2s infinite; display: inline-block; }

/* =========================================
    8. TIENDAS LOCALES PREMIUM - REPARADO
   ========================================= */

.grid-tiendas { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 40px; 
    padding: 20px 0; 
}

/* La Tarjeta */
.card-tienda {
    background: #fff; 
    border-radius: 20px; 
    overflow: visible; /* PERMITE QUE EL LOGO FLOTE AFUERA */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease; 
    border: 1px solid #f0f0f0;
    position: relative; 
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.card-tienda:hover { transform: translateY(-5px); }

/* Contenedor de Imagen */
.tienda-img-container { 
    position: relative; 
    height: 220px; 
    background: #eee; 
    border-radius: 20px 20px 0 0; 
    /* IMPORTANTE: No usar overflow: hidden aquí para que el logo respire */
}

.carrusel-img { 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; 
    opacity: 0; 
    transition: opacity 1s ease; 
    border-radius: 20px 20px 0 0; 
}
.carrusel-img.active { opacity: 1; }

.foto-credito {
    position: absolute;
    z-index: 4;
    left: 10px;
    bottom: 9px;
    max-width: calc(100% - 20px);
    padding: 4px 7px;
    border-radius: 8px;
    background: rgba(24, 24, 24, 0.72);
    color: #fff;
    font-size: 0.62rem;
    line-height: 1.25;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* El Logo Circular (Estilo Cebando Arte) */
.tienda-perfil {
    position: absolute; 
    bottom: -35px; /* Lo saca del contenedor de imagen */
    right: 20px;
    width: 80px; 
    height: 80px; 
    border-radius: 50% !important;
    border: 5px solid white; 
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
    z-index: 20; 
    object-fit: cover;
}

/* Información de la Tienda */
.tienda-info { 
    padding: 45px 20px 20px; /* 45px arriba para no chocar con el logo que baja */
}

.tienda-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--color-malbec);
    margin-bottom: 8px;
}

.tienda-info p {
    font-size: 0.9rem;
    color: #666;
    height: 3.6em; /* Altura fija para 2 líneas */
    overflow: hidden;
    margin-bottom: 15px;
}

.categoria-tag { 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    background: var(--color-malbec); 
    color: white; 
    padding: 5px 12px; 
    border-radius: 30px; 
    font-size: 0.65rem; 
    font-weight: 700; 
    z-index: 15; 
    text-transform: uppercase;
}

/* Footer de la tarjeta y Botones de Contacto */
.tienda-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.ubicacion { font-size: 0.8rem; color: #888; font-weight: 600; }

.menu-contacto-container { position: relative; }

.btn-contacto-master {
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-contacto-master:hover { background: var(--color-malbec); color: white; }

.redes-desplegables {
    position: absolute;
    bottom: 45px;
    right: 0;
    display: flex;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    transform: translateY(10px);
}

.menu-contacto-container.open .redes-desplegables {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.sub-btn {
    width: 35px; height: 35px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-wa { background: #25d366; }
.btn-ig { background: #e1306c; }
.btn-fb { background: #1877f2; }
.tienda-perfil {
    /* ... lo que ya tenías ... */
    object-fit: cover; /* Esto evita que la imagen se estire */
    object-position: center;
}
.tienda-img-container {
    background-color: #f0f0f0; /* Color gris suave de fondo */
    background-image: url('img/logo-remove.png'); /* Opcional: tu logo muy clarito de fondo */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
}
/* =========================================
    9. EXPLORAR DEPARTAMENTOS (CARRUSEL) INDEX
   ========================================= */

#contenedor-deptos {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px 40px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.card-depto {
    min-width: 300px;
    flex: 0 0 auto;
    background: #fff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: default !important;
    transition: all 0.5s ease;
    /* Eliminamos el overflow: hidden para evitar conflictos de capas */
}

/* El contenedor de imagen ahora NO anula los eventos */
.card-depto .tienda-img-container {
    position: relative;
    height: 220px;
    z-index: 1; 
    pointer-events: auto; /* IMPORTANTE: Permite interactuar en PC */
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

/* El secreto está aquí: Elevamos el footer */
.depto-footer {
    position: relative;
    z-index: 10; /* Mucho más alto que la imagen */
    padding: 20px 15px;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #eee;
    border-radius: 0 0 20px 20px;
}

/* Botón con máxima prioridad */
.btn-explorar-depto {
    position: relative;
    z-index: 20; /* La capa más alta de todas */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8f8f8; 
    border: 1px solid #ddd;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--texto-oscuro);
    cursor: pointer !important; /* Mano en PC */
    transition: all 0.3s ease;
}

/* Hover solo para computadoras */
@media (hover: hover) {
    .card-depto:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(114, 47, 55, 0.15);
    }
    .btn-explorar-depto:hover {
        background: var(--color-malbec) !important;
        color: white !important;
        border-color: var(--color-malbec) !important;
    }
}

/* Ajuste específico para táctil (Móvil) */
@media (max-width: 768px) {
    .btn-explorar-depto {
        padding: 15px 30px; /* Más grande para el dedo */
        width: 90%;
        border-color: var(--color-malbec);
        /* En móvil el hover no existe, así que le damos el color Malbec directo 
           o lo dejamos gris para que resalte al tocarlo */
    }
}
.contenedor-filtros-premium {
    padding: 18px 20px 24px;
    display: flex;
    justify-content: center;
}

.filtros-wrapper {
    width: min(100%, 850px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    background: #fff;
    border: 1px solid #eae4e1;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(65, 42, 38, 0.07);
    padding: 8px 12px;
}

.filtro-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 8px 20px;
    border-right: 1px solid #eee9e6;
}

.filtro-item:last-of-type { border-right: none; }

.filtro-item > i {
    grid-column: 1;
    grid-row: 1 / span 2;
    color: var(--color-malbec);
    font-size: 0.95rem;
    text-align: center;
}

.filtro-item label {
    grid-column: 2;
    color: #8a7d78;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.filtro-item select {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    color: #302b29;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.84rem;
    padding: 3px 18px 0 0;
}

.filtro-item select:focus-visible,
.btn-limpiar:focus-visible {
    outline: 2px solid rgba(114, 47, 55, 0.35);
    outline-offset: 3px;
    border-radius: 6px;
}

.btn-limpiar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-left: 8px;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #827773;
    font-family: 'Poppins', sans-serif;
    font-size: 0.76rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-limpiar:hover {
    background: #f8f4f2;
    color: var(--color-malbec);
}

/* Ajuste móvil */
@media (max-width: 600px) {
    .contenedor-filtros-premium { padding: 14px 18px 20px; }
    .filtros-wrapper {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 8px 12px;
        border-radius: 14px;
    }
    .filtro-item {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee9e6;
        padding: 10px 8px;
    }
    .filtro-item:last-of-type { border-bottom: none; }
    .btn-limpiar { justify-self: end; margin: 2px 0 0; }
}
.search-box {
    width: min(100%, 680px);
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 8px 7px 20px;
    background: #fff;
    border: 1px solid #eae4e1;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(65, 42, 38, 0.07);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
    border-color: rgba(114, 47, 55, 0.35);
    box-shadow: 0 8px 26px rgba(114, 47, 55, 0.1);
}

.search-icon { color: var(--color-malbec); font-size: 0.95rem; }

.search-box input {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border: none;
    outline: none;
    background: transparent;
    color: #302b29;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.search-box input::placeholder { color: #9a908c; }

.lupa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 11px;
    background: var(--color-malbec);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lupa-btn:hover { background: var(--color-malbec-dark); }
.widget-clima {
    padding: 20px;
    background: #fdfdfd;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

/* Evitar que el texto del boletín se pegue a los bordes */
.boletin-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}
/* Descripciones completas en las tarjetas de Destinos sin alterar Tiendas */
.destinos-info {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.destinos-info p {
    height: auto;
    overflow: visible;
}

.destinos-info .tienda-footer {
    margin-top: auto;
}
/* Documento legal: lectura clara y adaptable */
.legal-documento {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: clamp(24px, 5vw, 52px);
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-suave);
    color: #444;
    line-height: 1.75;
}
.legal-encabezado { margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid #eee; }
.legal-etiqueta { color: var(--color-malbec); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.legal-encabezado h1 { margin: 8px 0; color: var(--color-malbec); font: 700 clamp(2rem, 5vw, 2.7rem) 'Playfair Display', serif; line-height: 1.2; }
.legal-encabezado p { margin: 8px 0 0; color: #777; font-size: .9rem; }
.legal-introduccion { font-size: 1.04rem; }
.legal-aviso { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--color-malbec); border-radius: 8px; background: #fbf6f4; }
.legal-seccion { margin-top: 30px; }
.legal-seccion h2 { margin: 0 0 10px; color: var(--color-malbec); font: 700 1.35rem 'Playfair Display', serif; }
.legal-seccion p { margin: 10px 0; }
.legal-documento a { color: var(--color-malbec); text-decoration: underline; text-underline-offset: 3px; }
.legal-pie { margin-top: 30px; padding-top: 18px; border-top: 1px solid #eee; color: #666; font-size: .92rem; }
.legal-volver { margin-top: 28px; text-align: center; }
.legal-volver .btn-primary { display: inline-block; padding: 12px 28px; color: #fff; text-decoration: none; font-size: 1rem; line-height: 1.5; }
.contacto-consentimiento-legal { display: grid; gap: 12px; }
.contacto-consentimiento-legal > div { display: flex; align-items: flex-start; gap: 10px; }
.contacto-consentimiento-legal input { flex: 0 0 auto; margin-top: 5px; }
.contacto-consentimiento-legal label { line-height: 1.55; }
@media (max-width: 600px) {
    .legal-documento { margin: 96px 14px 36px; padding: 24px 20px; }
}

.aceptacion-terminos-modal {
    margin: 0 0 14px;
    color: #666;
    font-size: 0.76rem;
    line-height: 1.5;
}
.aceptacion-terminos-modal a {
    color: #722F37;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cta-emprendimientos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 860px;
    margin: 24px auto 0;
    padding: 18px 22px;
    border: 1px solid #eadfdb;
    border-radius: 14px;
    background: #fbf6f3;
    color: #5e514d;
    text-align: left;
}
.cta-emprendimientos p { margin: 0; line-height: 1.55; }
.cta-emprendimientos-boton {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 9px;
    background: var(--color-malbec);
    color: #fff;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.cta-emprendimientos-boton:hover { background: var(--color-malbec-dark, #5f252c); transform: translateY(-1px); }
.cta-emprendimientos-destinos { margin-top: 28px; }
@media (max-width: 640px) {
    .cta-emprendimientos { flex-direction: column; align-items: stretch; text-align: center; }
}
/* Selector de aportes voluntarios */
.footer-links .footer-apoyo-link{appearance:none;border:0;background:none;padding:0;color:#aaa;font:inherit;font-size:0.9rem;font-weight:400;text-align:inherit;cursor:pointer;transition:0.3s}
.footer-links .footer-apoyo-link:hover{color:var(--color-malbec)}
.footer-apoyo-link:focus-visible,.apoyo-dialog a:focus-visible,.apoyo-cerrar:focus-visible{outline:2px solid #b7865c;outline-offset:4px}
.apoyo-dialog{box-sizing:border-box;width:min(92vw,480px);max-height:85vh;overflow:auto;margin:auto;padding:36px 28px;border:1px solid #eaded9;border-radius:20px;background:#fffdfb;color:#333;font-family:'Poppins',sans-serif}
.apoyo-dialog::backdrop{background:rgba(20,12,14,.55)}
.apoyo-dialog h2{font-family:'Playfair Display',serif;color:#722f37;margin:0 28px 18px 0}
.apoyo-dialog p{line-height:1.7;margin:14px 0}
.apoyo-dialog .apoyo-cerrar{float:right;border:0;background:none;color:#722f37;font-size:28px;cursor:pointer;min-width:40px;min-height:40px}
.apoyo-medios{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}
.apoyo-medios a{flex:1;text-align:center;padding:12px 16px;background:#722f37;border-radius:10px;color:white;text-decoration:none;white-space:nowrap}
.apoyo-dialog .apoyo-nota{font-size:.8rem;color:#666}

/* Tiendas: tarjetas iguales y descripción completa con desplazamiento. */
.tiendas-page #contenedor-tiendas {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    align-items: start;
}

.tiendas-page #contenedor-tiendas .card-tienda {
    min-width: 0;
}

.tiendas-page #contenedor-tiendas .tienda-img-container {
    flex: 0 0 220px;
}

.tiendas-page #contenedor-tiendas .tienda-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    /* Dos líneas de título, cuatro de descripción y el pie de contacto. */
    grid-template-rows: 3.64rem 5.76rem 3.6rem;
    gap: 12px;
    min-width: 0;
}

.tiendas-page #contenedor-tiendas .tienda-info h4 {
    margin: 0;
    line-height: 1.3;
    overflow-y: auto;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
}

.tiendas-page #contenedor-tiendas .tienda-descripcion {
    display: block;
    height: 100%;
    max-height: none;
    min-height: 0;
    margin: 0;
    padding-right: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-wrap: anywhere;
    white-space: normal;
    -webkit-line-clamp: unset;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #a76b72 #f5eeee;
}

.tiendas-page #contenedor-tiendas .tienda-descripcion::-webkit-scrollbar {
    width: 6px;
}

.tiendas-page #contenedor-tiendas .tienda-descripcion::-webkit-scrollbar-track {
    background: #f5eeee;
    border-radius: 10px;
}

.tiendas-page #contenedor-tiendas .tienda-descripcion::-webkit-scrollbar-thumb {
    background: #a76b72;
    border-radius: 10px;
}

.tiendas-page #contenedor-tiendas .tienda-descripcion:focus-visible {
    outline: 2px solid var(--color-malbec);
    outline-offset: 3px;
    border-radius: 4px;
}

.tiendas-page #contenedor-tiendas .tienda-footer {
    gap: 12px;
    min-width: 0;
    padding-top: 12px;
}

.tiendas-page #contenedor-tiendas .ubicacion {
    flex: 1;
    min-width: 0;
    max-height: 100%;
    line-height: 1.5;
    overflow-y: auto;
    overflow-wrap: anywhere;
}

.tiendas-page #contenedor-tiendas .menu-contacto-container {
    flex: 0 0 auto;
}

.tiendas-page #contenedor-tiendas .btn-contacto-master {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    white-space: nowrap;
}
