/* =========================================
   1. DISCOVERY FEED (Marketing Cards)
   ========================================= */
.discover-header { 
    padding: 0 24px 25px 24px; 
    text-align: left; 
    display: flex;
    align-items: center;
    gap: 10px;
}

.greeting-title {
    font-size: 32px; 
    font-weight: 900; 
    margin: 0; 
    letter-spacing: -1px;
    color: #fff; 
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.vertical-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-bottom: 80px;
}

.feed-card {
    width: 94%; 
    border-radius: 12px; 
    position: relative;
    overflow: hidden;
    background-color: transparent; 
    box-shadow: var(--shadow-deep);
    transform: translateZ(0);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feed-card:active { 
    transform: scale(0.98); 
}

.feed-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2200 / 1024; 
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* Badges sobre las imágenes */
.marketing-badge {
    position: absolute; 
    top: auto;
    bottom: 20px; 
    left: 20px; 
    background: var(--primary); 
    color: white;
    font-size: 10px; 
    padding: 6px 12px; 
    border-radius: 10px; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(227,0,27,0.5);
    z-index: 2;
}

.marketing-badge.gold { 
    background: var(--accent); 
    color: black; 
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5); 
}

/* =========================================
   2. HERO VIDEO SECTION
   ========================================= */
.video-wrapper { 
    padding: 0 20px; 
    margin-bottom: 20px; 
    display: flex; 
    justify-content: center; 
}

.video-hero-container { 
    position: relative; 
    width: 100%; 
    max-width: 580px; 
    height: 240px; 
    border-radius: var(--radius-xl); 
    overflow: hidden; 
    box-shadow: var(--shadow-deep); 
    background: black; 
}

.video-bg { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.9; 
}

.video-overlay { 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    padding: 20px; 
    z-index: 2; 
}

.deal-badge { 
    background: var(--primary); 
    color: white; 
    font-size: 10px; 
    font-weight: 800; 
    text-transform: uppercase; 
    padding: 4px 10px; 
    border-radius: 12px; 
    align-self: flex-start; 
    margin-bottom: 5px; 
    letter-spacing: 1px; 
}

.deal-text { 
    color: white; 
    font-size: 22px; 
    font-weight: 800; 
    line-height: 1.1; 
    margin: 0; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
}

/* =========================================
   3. SHOP LAYOUT & CATEGORIES (MODO SLIM 60px)
   ========================================= */
.shop-layout { 
    display: flex; 
    align-items: flex-start; 
    width: 100%; 
    max-width: 600px; 
    margin: 0 auto; 
}

.category-sidebar { 
    /* AQUÍ ESTABA EL PROBLEMA: Reducimos la barra contenedora */
    width: 60px; 
    min-width: 60px; 
    position: sticky; 
    top: 0; 
    padding: 10px 0 10px 5px; /* Reducimos padding para pegar más a la izquierda */
    display: flex; 
    flex-direction: column; 
    gap: 10px; /* Menos hueco entre botones */
}

.cat-btn { 
    background: var(--glass-bg); 
    backdrop-filter: blur(15px); 
    border-radius: 12px; 
    
    /* CAMBIOS PARA HACERLO FINO */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    width: 100%;           /* Ocupa el ancho de la sidebar (60px) */
    padding: 8px 0;        /* CERO relleno lateral */
    
    font-size: 9px;        /* Letra pequeña estilo "app" */
    font-weight: 700; 
    line-height: 1.1;      /* Líneas muy juntas */
    word-wrap: break-word; /* Rompe palabras largas */
    white-space: normal;
    
    color: #555; 
    transition: 0.2s; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    cursor: pointer; 
    border: 1px solid var(--glass-border); 
    box-sizing: border-box; /* Asegura que el borde no aumente el tamaño */
}

.cat-btn.active { 
    background: white; 
    color: var(--primary); 
    border-color: var(--primary); 
    box-shadow: 0 8px 20px rgba(227, 0, 27, 0.2); 
    transform: scale(1.02); /* Efecto de escala más sutil para no chocar */
}

.cat-icon { 
    /* Icono ajustado al nuevo tamaño */
    width: 24px; 
    height: 24px; 
    object-fit: contain; 
    display: block; 
    margin-bottom: 4px; 
    margin-right: 0;
}

/* =========================================
   4. PRODUCT GRID & CARDS
   ========================================= */
.product-feed { 
    flex-grow: 1; 
    padding: 0 15px 40px 10px; 
}

.product-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
}

.product-card { 
    background: rgba(255,255,255,0.8); 
    backdrop-filter: blur(20px); 
    border-radius: var(--radius-m); 
    padding: 10px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    box-shadow: var(--shadow-soft); 
    transition: transform 0.2s; 
    border: 1px solid rgba(255,255,255,0.4); 
}

.product-card:active { 
    transform: scale(0.96); 
}

.p-image-container { 
    width: 100%; 
    height: 110px; 
    margin-bottom: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.p-image-container img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)); 
}

.p-info { 
    width: 100%; 
    text-align: left; 
}

.p-name { 
    font-size: 13px; 
    font-weight: 600; 
    margin-bottom: 4px; 
    color: var(--text-main); 
    line-height: 1.2; 
}

.p-price { 
    font-size: 14px; 
    color: var(--primary); 
    font-weight: 800; 
}

.btn-add { 
    width: 100%; 
    margin-top: 8px; 
    padding: 8px; 
    background: rgba(0,0,0,0.05); 
    color: var(--text-main); 
    border: none; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 10px; 
    cursor: pointer; 
}

/* wishlist heart overlay (no counter) */
.btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    padding: 4px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: rgba(0,0,0,0.28);
    transition: transform 0.16s ease, color 0.16s ease, text-shadow 0.16s ease;
    z-index: 12;
}
.btn-wishlist:hover { transform: translateY(-2px) scale(1.05); color: rgba(227,0,27,0.9); }
.btn-wishlist.active { color: #E3001B; text-shadow: 0 6px 18px rgba(227,0,27,0.18); transform: scale(1.06); }
.btn-wishlist:focus { outline: none; }

/* Product modal content styles */
.product-modal-content { text-align: left; font-family: inherit; color: var(--text-main); }
.product-modal-content .pm-top { display:flex; gap:12px; align-items:center; }
.product-modal-content .pm-top img { width:96px; height:96px; object-fit:contain; border-radius:12px; background:white; box-shadow: var(--shadow-soft); }
.product-modal-content .pm-meta h3 { margin:0; font-size:18px; font-weight:900; }
.product-modal-content .pm-price { color:var(--primary); font-weight:900; margin-top:6px; }
.product-modal-content .pm-sections { margin-top:12px; display:flex; flex-direction:column; gap:12px; }
.product-modal-content .pm-section h4 { margin:0 0 8px 0; font-size:13px; font-weight:800; }
.nutrition-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:8px; background: rgba(0,0,0,0.03); padding:8px; border-radius:8px; }
.nutrition-grid div { text-align:center; font-size:13px; }
.ingredient-list { margin:0; padding-left:18px; color:#444; }
.product-info { color:#666; font-size:13px; }

@media (min-width:900px) {
    .product-modal-content .pm-top img { width:120px; height:120px; }
}

/* =========================================
   5. CART & CHECKOUT
   ========================================= */
/* Ajuste específico para la vista del carrito */
#view-cart {
    padding-bottom: 260px !important; 
}

.cart-container { 
    padding: 20px; 
    max-width: 600px; 
    margin: 0 auto; 
}

.cart-header-title { 
    font-size: 28px; 
    font-weight: 900; 
    margin-bottom: 20px; 
    color: #FF8C00; 
}

.empty-cart-msg { 
    text-align: center; 
    margin-top: 50px; 
    color: #888; 
    font-size: 16px; 
}

/* Cart Item Row */
.cart-item { 
    background: rgba(255,255,255,0.85); 
    backdrop-filter: blur(20px);
    border-radius: 16px; 
    padding: 15px; 
    margin-bottom: 15px;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cart-item-left { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.cart-img { 
    width: 60px; 
    height: 60px; 
    object-fit: contain; 
}

.cart-details h4 { 
    margin: 0 0 5px 0; 
    font-size: 14px; 
    color: var(--text-main); 
}

.cart-details span { 
    font-weight: 800; 
    color: var(--primary); 
    font-size: 14px; 
}

/* Controls (+/-) */
.cart-controls { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: rgba(0,0,0,0.05); 
    padding: 5px 10px; 
    border-radius: 20px; 
}

.qty-btn { 
    background: white; 
    border: none; 
    width: 25px; 
    height: 25px; 
    border-radius: 50%; 
    font-weight: bold; 
    color: var(--primary); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.qty-display { 
    font-weight: 600; 
    font-size: 14px; 
    width: 20px; 
    text-align: center; 
}

/* Floating Checkout Footer */
.cart-footer {
    position: fixed; 
    bottom: 115px; /* Encima del TabBar */
    left: 15px; 
    right: 15px; 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(30px);
    padding: 20px;
    border-radius: 24px; 
    border: 1px solid rgba(255,255,255,0.5);
    display: flex; 
    flex-direction: column; 
    gap: 15px;
    z-index: 2000; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cart-total-row { 
    display: flex; 
    justify-content: space-between; 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--text-main); 
}

.btn-checkout { 
    width: 100%; 
    padding: 16px; 
    background: var(--primary); 
    color: white; 
    border: none; 
    border-radius: 16px; 
    font-weight: 800; 
    font-size: 16px; 
    box-shadow: 0 8px 20px rgba(227, 0, 27, 0.4); 
    cursor: pointer; 
}

.btn-checkout:active { 
    transform: scale(0.98); 
}
.discover-wrapper {

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    min-height: 100vh;
    width: 100%;
    padding-bottom: 100px;
}

.discover-header {
    padding: 20px 24px;
}
.greeting-title {
    color: #FF8C00; /* Marrón oscuro Idilia */
    text-shadow: none; /* Quitamos sombra anterior */
}

/* --- LOYALTY DASHBOARD (LA TARJETA GRANDE) --- */
.loyalty-dashboard {
    width: 92%;
    max-width: 500px;
    margin: 0 auto 30px auto;
    background: transparent;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(74, 59, 50, 0.15);
    overflow: hidden;
    position: relative;
    /* Doble de alto visualmente gracias al contenido */
}

/* Parte Superior (Split) */
.loyalty-main-card {
    display: flex;
    background: #e6e2d8; /* Beige oscuro tipo la imagen */
    min-height: 320px; /* Forzamos altura */
}

/* Columna Izquierda */
.loyalty-info {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255,255,255,0.3);
}

.lb-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #4a3b32;
    margin-bottom: 5px;
    display: flex; 
    align-items: center; 
    gap: 6px;
    letter-spacing: 1px;
}

.lb-amount {
    font-size: 32px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 8px;
}

.lb-points {
    font-size: 32px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1;
}
.lb-points span { font-size: 14px; color: #666; }

.lb-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
    margin-bottom: 12px;
}

/* Botones Negros Estilo Mahou */
.btn-black-action {
    background: #111;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-black-action:active { transform: scale(0.95); }

.loyalty-points-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Columna Derecha (Imagen y Nivel) */
.loyalty-visual {
    flex: 1;
    background: linear-gradient(135deg, #fffbf5 0%, #f0ebe0 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 10px;
    overflow: hidden;
}

/* Círculo decorativo de fondo */
.loyalty-visual::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 140px;
    height: 140px;
    background: rgba(227, 0, 27, 0.1); /* Rojo Idilia muy suave */
    border-radius: 50%;
    z-index: 0;
}

.lv-image-bg {
    z-index: 1;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-products {
    max-height: 100%;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
    transform: rotate(5deg);
}

.level-badge {
    z-index: 1;
    text-align: center;
    color: #E3001B; /* Rojo Idilia */
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 10px;
}
.lvl-name { display: block; font-size: 16px; color: #111; }

.activity-link {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    margin-top: auto;
    cursor: pointer;
}

/* --- REWARDS ACCORDION (Parte inferior) --- */
.rewards-accordion {
    background: #fdf9f4;
    border-top: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    transition: background 0.2s;
}
.rewards-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rh-left { display: flex; align-items: center; gap: 12px; }
.rh-icon { font-size: 24px; }
.rh-text { display: flex; flex-direction: column; text-align: left; }
.rh-text strong { font-size: 13px; color: #111; }
.rh-text span { font-size: 10px; color: #888; }
.rh-arrow { color: #888; font-size: 10px; transition: 0.3s; }

/* Estado abierto */
.rewards-accordion.open .rh-arrow { transform: rotate(180deg); }
.rewards-accordion.open .rewards-content { display: block; }

.rewards-content {
    display: none; /* Oculto por defecto */
    padding: 0 20px 20px 20px;
    border-top: 1px dashed #eeeeee;
}
.reward-item {
    display: flex; justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 12px; color: #555;
}
.r-pts { font-weight: 800; color: #E3001B; }

/* --- CAMBIO CRÍTICO: CONTENEDOR DEL MAPA --- */
.map-section-container {
    position: relative;
    z-index: 10;
    clear: both;
    
    max-width: 900px;
    
    /* 1. Margen reducido drásticamente para pegarlo a la tarjeta de arriba */
    margin: 0 auto 40px auto !important; 
    
    /* 2. Forzamos transparencia total y quitamos sombras */
    background: transparent !important; 
    box-shadow: none !important; 
    border: none !important;
    
    /* 3. Quitamos rellenos internos que puedan crear espacio blanco */
    padding: 10px 20px !important; 
    
    text-align: center;
}

/* El marco del mapa (lo de adentro) se mantiene bonito */
.map-frame {
    position: relative;
    width: 100%;
    height: 350px; 
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
    background-color: #eee;
    margin-bottom: 20px;
    border: 2px solid #fff; 
}
.section-title {
    font-size: 34px;
    font-weight: 900;
    color: #f72c2c;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}
.section-subtitle {
    font-size: 17px;
    color: #fae0cb;
    margin: 0 0 15px 0;
}


.map-placeholder {
    width: 100%; height: 150%; position: relative;
}
/* Estilos generales para esta sección */
    .map-section-container {
        font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        text-align: center;
        max-width: 900px;
        margin: 40px auto;
        padding: 40px 20px;
        background: linear-gradient(145deg, #ffffff, #f9f9f9);
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        color: #333;
    }


    /* El div donde Google inyecta el mapa */
    #google-map {
        width: 100%;
        height: 150%;
    }

    /* --- Estilos de los Pines Animados (Overlay) --- */
    /* Estas clases controlan el HTML que inyectamos dentro del mapa */
    .custom-map-pin {
        position: absolute;
        cursor: pointer;
        /* Centramos para que la punta toque la coordenada exacta */
        transform: translate(-50%, -100%); 
    }

    /* El círculo blanco con el icono */
    .pin-icon {
        width: 40px;
        height: 40px;
        background-color: #fff;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.2rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        border: 3px solid #e85d04; /* Color corporativo */
        position: relative;
        z-index: 2;
        transition: transform 0.2s ease;
    }

    .custom-map-pin:hover .pin-icon {
        transform: scale(1.15); /* Efecto hover */
        border-color: #d04e00;
    }

    /* El triángulo (flecha) abajo */
    .pin-arrow {
        width: 0; 
        height: 0; 
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 8px solid #e85d04;
        margin: -1px auto 0;
        position: relative;
        z-index: 1;
    }

    /* Animación de Pulso (Ondas) */
    .pin-pulse {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 2px solid #e85d04;
        opacity: 0;
        z-index: 0;
        animation: pulse-animation 2s infinite;
    }

    @keyframes pulse-animation {
        0% { width: 100%; height: 100%; opacity: 0.8; }
        100% { width: 250%; height: 250%; opacity: 0; }
    }

    /* --- Botón de Acción --- */
    .btn-map-action {
        display: inline-block;
        margin-top: 25px;
        background: #333;
        color: white;
        text-decoration: none;
        padding: 12px 30px;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 50px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .btn-map-action:hover {
        background: #e85d04;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(232, 93, 4, 0.25);
    }

/* --- ESTILOS PARA LAS ENCUESTAS (POLLS) --- */

.polls-wrapper {
    margin-top: 30px;
    padding-bottom: 40px;
}

.polls-header-line {
    text-align: center;
    border-top: 1px solid #e0e0e0;
    line-height: 0.1em;
    margin: 20px 0 30px 0;
}

.polls-header-line span {
    background: #f4f4f4; /* Mismo color que el fondo de tu app */
    padding: 0 10px;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.poll-block {
    margin-bottom: 20px;
}

.poll-title {
    font-size: 16px;
    font-weight: 800;
    color: #333;
    margin: 0 0 5px 0;
}

.poll-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px 0;
}

/* Tarjeta de Opción */
.poll-option {
    background: white;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/* Estado Seleccionado (Estilo Rojo/Rosa) */
.poll-option.selected {
    background: #FFF0F2; /* Fondo rosado claro */
    border: 2px solid #E3001B; /* Borde Rojo Idilia */
}

/* Icono/Imagen cuadrada a la izquierda */
.poll-img-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.poll-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.poll-info strong {
    font-size: 14px;
    color: #333;
    font-weight: 700;
}

.poll-info span {
    font-size: 12px;
    color: #777;
}

/* Checkmark rojo */
.poll-check {
    width: 24px;
    height: 24px;
    background: #E3001B;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    display: none; /* Oculto por defecto */
}

.poll-option.selected .poll-check {
    display: flex; /* Visible solo si está seleccionado */
}

/* Icono de Play Separador */
.play-icon-separator {
    width: 30px;
    height: 30px;
    background: #666;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    padding-left: 2px; /* Ajuste óptico del triángulo */
}

/* --- Estilos para el Carrito Vacío --- */

/* Contenedor principal del estado vacío */
.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.5s ease-out;
}

/* El icono (Bolsa) */
.empty-icon svg {
    width: 80px;
    height: 80px;
    stroke: #d1d5db; /* Color gris suave */
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Título (Grande y oscuro) */
.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827; /* Casi negro */
    margin: 0 0 10px 0;
}

/* Subtítulo (Más pequeño y gris) */
.empty-subtitle {
    font-size: 1rem;
    color: #6b7280; /* Gris medio */
    margin-bottom: 30px;
    max-width: 250px;
    line-height: 1.5;
}

/* Botón de acción (Opcional, pero recomendado) */
.btn-continue-shopping {
    background-color: #000; /* Negro o tu color corporativo */
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px; /* Bordes redondeados modernos */
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-continue-shopping:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Animación suave de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}







#google-map {
    width: 100%;
    height: 100%;
}

/* Estilos de los pines y botón */
.custom-map-pin { position: absolute; cursor: pointer; transform: translate(-50%, -100%); }
.pin-icon { width: 40px; height: 40px; background: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.3); border: 3px solid #e85d04; position: relative; z-index: 2; transition: transform 0.2s ease; }
.custom-map-pin:hover .pin-icon { transform: scale(1.15); border-color: #d04e00; }
.pin-arrow { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #e85d04; margin: -1px auto 0; position: relative; z-index: 1; }
.pin-pulse { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; border-radius: 50%; border: 2px solid #e85d04; opacity: 0; animation: pulse-animation 2s infinite; }
@keyframes pulse-animation { 0% { width: 100%; height: 100%; opacity: 0.8; } 100% { width: 250%; height: 250%; opacity: 0; } }

.btn-map-action {
    display: inline-block;
    background: #333;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-map-action:hover { background: #e85d04; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232, 93, 4, 0.25); }

/* Contenedor principal: Margen superior grande para que no choque */
.map-section-container {
    position: relative;
    z-index: 10;
    clear: both; /* Evita choques con elementos flotantes anteriores */
    
    max-width: 900px;
    /* 100px arriba para bajarlo y separarlo del contenido anterior */
    margin: 100px auto 40px auto; 
    
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
}


#google-map {
    width: 100%;
    height: 100%;
}

/* Contenedor principal */
.wishlist-container-modern {
    padding: 20px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Cabecera */
.modern-header {
    display: flex;
    align-items: center;
    padding: 0 20px 20px 20px;
}

.modern-header h2 {
    margin: 0 0 0 15px;
    font-size: 22px;
    font-weight: 800;
    color: #333;
}

.btn-back-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 18px;
    color: #333;
}

/* SCROLL HORIZONTAL */
.wishlist-horizontal-feed {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 20px 40px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch;

    /* --- NUEVO: ESTO LO CENTRA VERTICALMENTE --- */
    margin-top: auto;    /* Empuja desde arriba */
    margin-bottom: auto; /* Empuja desde abajo */
    /* El resultado es que se queda flotando en el centro */
}

.wishlist-horizontal-feed::-webkit-scrollbar { display: none; }

/* Tarjeta de Producto en Wishlist */
.w-card {
    min-width: 160px;
    max-width: 160px;
    background-color: #f3d1a441; /* Tu color transparente */
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 15px;
    box-shadow: none; 
    scroll-snap-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.w-card:active {
    transform: scale(0.98);
}

.w-image-box {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.w-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.w-info {
    text-align: left;
}

.w-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.w-price {
    font-size: 16px;
    font-weight: 800;
    color: #000;
}

/* Botón Corazón */
.w-heart-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 16px;
    color: #E3001B; /* Rojo Idilia */
    cursor: pointer;
    z-index: 2;
}



/* --- VISTA SPLIT (DEFAULT) --- */
.loyalty-split-layout {
    display: flex;
    height: 100%;
    width: 100%;
}

.loyalty-info {
    width: 50%;
    padding: 25px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loyalty-visual {
    width: 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa; /* Fondo muy suave para diferenciar */
}

/* Botón "See Activity" en la home */
.activity-trigger {
    margin-top: 15px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}
.activity-trigger:hover {
    color: #E3001B;
    font-weight: 600;
}

/* Emblema Container */
.emblem-container {
    width: 100px; 
    height: 100px; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    margin: 10px 0;
}

/* --- VISTA EXPANDIDA (ACTIVITY) --- */
.full-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff; /* Fondo blanco limpio */
    z-index: 100;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Transiciones de entrada */
.hidden-view {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.full-overlay:not(.hidden-view) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cabecera Actividad */
.act-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}
.act-title-box h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.5px;
}
.act-title-box p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #888;
}
.btn-close-activity {
    background: #f0f2f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #555;
    transition: background 0.2s;
}
.btn-close-activity:hover {
    background: #e4e6eb;
    color: #000;
}

/* Barra de Progreso Aesthetic */
.act-progress-container {
    margin-bottom: 30px;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}
.current-pts { color: #222; font-size: 16px; }
.next-milestone { color: #E3001B; font-size: 13px; background: rgba(227, 0, 27, 0.08); padding: 4px 10px; border-radius: 12px; }

.aesthetic-progress-track {
    width: 100%;
    height: 12px;
    background: #eceff1;
    border-radius: 10px;
    position: relative;
    overflow: visible; /* Para que se vean los marcadores si sobresalen */
}
.aesthetic-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF8F00, #E3001B); /* Gradiente Naranja a Rojo */
    border-radius: 10px;
    position: relative;
    box-shadow: 0 2px 8px rgba(227, 0, 27, 0.3);
    transition: width 1s ease-out;
}
/* Marcadores */
.prog-marker {
    position: absolute;
    top: -2px;
    width: 4px;
    height: 16px;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 2;
}
.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
}

/* Grid de Estadísticas */
.act-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.stat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.stat-icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
}
/* Colores de iconos */
.color-blue { background: #E3F2FD; color: #1E88E5; }
.color-green { background: #E8F5E9; color: #43A047; }
.color-orange { background: #FFF3E0; color: #FB8C00; }

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #222;
}
.stat-label {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}