/* ================================================================
   MURO · BARRA DE SECCIONES + HISTORIAS (v2 Compacta)
   ================================================================ */

/* ===== BARRA DE SECCIONES DEL MURO ===== */
.muro-section-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin: 16px 0 12px 0;
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.muro-section-nav::-webkit-scrollbar { display: none; }

.muro-section-nav .sec-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
}
.muro-section-nav .sec-tab svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
}
.muro-section-nav .sec-tab:hover {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.28);
}
.muro-section-nav .sec-tab.active {
    color: #05080f;
    background: linear-gradient(135deg, #e8c84a 0%, #D4AF37 100%);
    border-color: #D4AF37;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4), 0 4px 18px rgba(212, 175, 55, 0.35);
}
.muro-section-nav .sec-tab.active svg { stroke: #05080f; opacity: 1; }

.muro-section-nav .sec-tab.live-tab .live-badge {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #FF3B5C;
    box-shadow: 0 0 0 2px rgba(255, 59, 92, 0.25), 0 0 8px rgba(255, 59, 92, 0.9);
    animation: livePulse 1.6s ease-in-out infinite;
    margin-left: 2px;
}
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.85); } }

/* ===== SUB-MENÚ DE FILTROS ===== */
.muro-filter-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    margin: 0 0 14px 0;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.muro-filter-nav::-webkit-scrollbar { display: none; }
.muro-filter-nav .filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 9px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.muro-filter-nav .filter-tab:hover {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.22);
}
.muro-filter-nav .filter-tab.active {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.18);
    font-weight: 700;
}
.muro-filter-nav .filter-tab .dot-live {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #FF3B5C;
    box-shadow: 0 0 6px rgba(255, 59, 92, 0.9);
    animation: livePulse 1.6s ease-in-out infinite;
}

/* ===== TÍTULO Y HISTORIAS ===== */
.cs-social-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 18px 2px 9px;
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
}
.cs-social-section-title small {
    color: var(--text-muted, #999);
    font-size: 0.65rem;
    font-weight: 400;
}

/* 🔥 CORRECCIÓN QUIRÚRGICA: Contenedor adaptativo estilo WhatsApp */
.cs-story-strip {
    display: flex;
    gap: 13px;
    padding: 8px 0; /* Solo espacio arriba y abajo, no a los lados */
    margin-bottom: 14px;
    overflow-x: auto;
    background: transparent; /* Quitamos el fondo oscuro */
    border: none;            /* Quitamos el borde */
    
    /* Esto hace la magia: se encoge al tamaño de los círculos */
    width: fit-content;      
    max-width: 100%;
}

.cs-story-item {
    display: flex;
    flex: 0 0 66px;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.64rem;
    cursor: pointer;
    text-decoration: none;
}
.cs-story-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px; height: 58px;
    padding: 3px;
    border-radius: 50%;
    border: 2px solid #D4AF37;
    background: #10141c;
    color: #D4AF37;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
    overflow: hidden;
}
.cs-story-item:hover .cs-story-ring { transform: scale(1.06); }
.cs-story-ring.story-add { border-style: dashed; border-color: rgba(212, 175, 55, 0.7); color: #D4AF37; }
.cs-story-ring.story-live { border-color: #ff536b; color: #ff536b; }
.cs-story-ring.vista { border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.55); }

/* ===== VISOR DE HISTORIAS ===== */
#csHistoriaVisor {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.cs-historia-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
}
.cs-historia-card {
    position: relative;
    max-width: 420px;
    width: 92%;
    max-height: 90vh;
    background: #0a0d14;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 18px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}
.cs-historia-barras { display: flex; gap: 3px; }
.cs-historia-barra {
    flex: 1; height: 3px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    transition: background 0.3s;
}
.cs-historia-barra.activa { background: #D4AF37; }
.cs-historia-barra.completada { background: rgba(212, 175, 55, 0.6); }
.cs-historia-header {
    display: flex; justify-content: space-between; align-items: center;
    color: #fff; font-size: 0.82rem; font-weight: 600;
}
.cs-historia-cerrar { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; padding: 4px 8px; }
.cs-historia-media { display: flex; align-items: center; justify-content: center; background: #000; border-radius: 12px; overflow: hidden; min-height: 200px; }
.cs-historia-caption { color: #eee; font-size: 0.82rem; padding: 6px 4px; }
.cs-historia-nav { display: flex; justify-content: space-between; gap: 8px; }
.cs-historia-nav button {
    background: rgba(212, 175, 55, 0.12); border: 1px solid rgba(212, 175, 55, 0.4);
    color: #D4AF37; padding: 6px 18px; border-radius: 20px; font-size: 0.85rem; cursor: pointer; font-weight: 700;
}
.cs-historia-nav button:disabled { opacity: 0.35; cursor: not-allowed; }
.cs-historia-nav button:hover:not(:disabled) { background: rgba(212, 175, 55, 0.25); }