/* Premium Cards & Recommendations - Modern Native App Style */

/* ==========================================================================
   CAROUSEL CONTAINERS
   ========================================================================== */
.featured-biz-section {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 10px; /* Reducido de 30px a 10px para equilibrar el espacio con el banner inferior */
}

.featured-biz-header {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.featured-biz-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-biz-title-glow-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.8), 0 0 20px rgba(37, 99, 235, 0.4);
    animation: activeRadarPulse 2s infinite;
}

.featured-biz-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin: 0;
    background: linear-gradient(135deg, #1e293b 30%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
    border-left: 4px solid #3b82f6;
}

[data-theme="dark"] .featured-biz-title {
    background: linear-gradient(135deg, #ffffff 40%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.featured-biz-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: -0.1px;
}

.featured-biz-carousel-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.featured-biz-carousel-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(to left, transparent, #f8fafc);
    pointer-events: none;
    z-index: 5;
}

.featured-biz-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(to right, transparent, #f8fafc);
    pointer-events: none;
    z-index: 5;
}

[data-theme="dark"] .featured-biz-carousel-wrapper::before {
    background: linear-gradient(to left, transparent, #090d16);
}

[data-theme="dark"] .featured-biz-carousel-wrapper::after {
    background: linear-gradient(to right, transparent, #090d16);
}

.featured-biz-carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 8px 4px 24px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scroll-snap-type: x mandatory;
}

.featured-biz-carousel::-webkit-scrollbar {
    display: none;
}

/* Indicador de Progreso del Carrusel 2026 */
.carousel-progress-container {
    display: none !important; /* Oculto para ergonomía visual (swipe nativo) */
    width: 15%;
    min-width: 60px;
    max-width: 120px;
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    margin: 0 auto 10px auto;
    overflow: hidden;
    position: relative;
}
[data-theme="dark"] .carousel-progress-container {
    background: rgba(255, 255, 255, 0.1);
}

.carousel-progress-bar {
    height: 100%;
    width: 20%; /* Calculado vía JS */
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 4px;
    transition: width 0.15s ease-out;
}

/* ==========================================================================
   FEATURED BUSINESS CARD (Glassmorphism Native Style)
   ========================================================================== */
.featured-biz-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 16px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    min-width: 140px;
    max-width: 155px;
    height: auto;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: start;
    align-items: center;
    text-align: center;
}

.featured-biz-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 1);
}

/* Badge Abierto/Cerrado (Esquina Superior Izquierda, Minimalista) */
.biz-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    z-index: 10;
}

.biz-status-dot-inline {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.biz-status-badge.open .biz-status-dot-inline { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.biz-status-badge.closed .biz-status-dot-inline { background: #ef4444; }

/* Follow Button (Top Right) */
.featured-biz-btn-follow {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #64748b;
    transition: all 0.2s;
}

.featured-biz-btn-follow:hover {
    transform: scale(1.1);
    color: #3b82f6;
}

.featured-biz-btn-follow.following {
    color: #3b82f6;
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* Main Link Wrapper */
.featured-biz-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 18px;
}

/* Circular Avatar Logo Container - CLEAN */
.featured-biz-logo-container {
    position: relative;
    margin: 0 auto 8px auto;
}

.featured-biz-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Efecto Glow 2026: Cada tarjeta proyecta su propio color (Solo en dispositivos con mouse) */
@media (hover: hover) and (pointer: fine) {
    .featured-biz-card:hover .featured-biz-logo {
        transform: scale(1.08) translateZ(0);
    }
    .featured-biz-card:nth-child(3n+1):hover .featured-biz-logo {
        box-shadow: 0 12px 25px rgba(59, 130, 246, 0.35), inset 0 0 0 1px rgba(0,0,0,0.03);
    }
    .featured-biz-card:nth-child(3n+2):hover .featured-biz-logo {
        box-shadow: 0 12px 25px rgba(245, 158, 11, 0.35), inset 0 0 0 1px rgba(0,0,0,0.03);
    }
    .featured-biz-card:nth-child(3n):hover .featured-biz-logo {
        box-shadow: 0 12px 25px rgba(16, 185, 129, 0.35), inset 0 0 0 1px rgba(0,0,0,0.03);
    }
}

/* Retroalimentación táctil activa para móviles */
.featured-biz-card:active .featured-biz-logo {
    transform: scale(0.95);
}


.featured-biz-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-biz-fallback-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
}

.featured-biz-card:nth-child(2n) .featured-biz-fallback-avatar {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.featured-biz-card:nth-child(3n) .featured-biz-fallback-avatar {
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
}

/* Business Name & Verified Check */
.featured-biz-name {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: inline;
    text-align: center;
    word-break: break-word;
}

.verified-icon-inline {
    display: inline-block;
    vertical-align: text-top;
}

/* Meta Row (Category & Rating bottom grouped) */
.featured-biz-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    margin-bottom: 4px;
}

.featured-biz-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 800;
    color: #b45309;
}

.featured-biz-meta-dot {
    color: #cbd5e1;
    font-size: 10px;
}

/* Categoría */
.featured-biz-cat {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0px;
}

/* Actions Bottom */
.featured-biz-actions {
    width: 100%;
    margin-top: auto;
}

.featured-biz-btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.featured-biz-btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

/* Dark Mode Support */
[data-theme="dark"] .featured-biz-card {
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .featured-biz-name {
    color: #f8fafc;
}

[data-theme="dark"] .featured-biz-badge,
[data-theme="dark"] .featured-biz-btn-follow {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255,255,255,0.1);
    color: #f8fafc;
}

[data-theme="dark"] .featured-biz-rating {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .featured-biz-verified-badge {
    background: rgba(59, 130, 246, 0.2);
}

/* ============================
   RESPONSIVE — DESKTOP
   ============================ */
@media (min-width: 992px) {
    .featured-biz-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        justify-content: center;
        overflow: visible;
        gap: 24px;
        padding: 10px 0;
    }
    
    .featured-biz-carousel-wrapper::before,
    .featured-biz-carousel-wrapper::after {
        display: none;
    }
    
    .featured-biz-card {
        max-width: 100%;
        min-width: auto;
    }
}
