:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7fa;
    min-height: 100vh;
}

/* Sección de Encuestas Privadas */
.private-surveys-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.private-surveys-cta .icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.private-surveys-cta .use-case-item {
    transition: all 0.3s ease;
    background: #ffffff !important;
}

.private-surveys-cta .use-case-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    border-color: rgba(25, 135, 84, 0.3) !important;
}

.private-surveys-cta .btn-success {
    background-color: #198754;
    border-color: #198754;
    transition: all 0.3s ease;
}

.private-surveys-cta .btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.private-surveys-cta .btn-outline-success {
    color: #198754;
    border-color: #198754;
    transition: all 0.3s ease;
}

.private-surveys-cta .btn-outline-success:hover {
    background-color: #198754;
    border-color: #198754;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

@media (max-width: 768px) {
    .private-surveys-cta h2 {
        font-size: 1.75rem !important;
    }
    
    .private-surveys-cta .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Botones de compartir en redes sociales */
.share-buttons {
    margin-top: 0.5rem;
}

.share-buttons .btn {
    transition: all 0.3s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.share-buttons .btn i {
    font-size: 1rem;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.card {
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.main-survey-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.vote-option {
    cursor: pointer;
    transition: var(--transition);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    background: #fff;
    margin-bottom: 0.75rem;
}

.vote-option:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
    transform: translateX(5px);
}

.vote-option.selected {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
}

.vote-option input[type="radio"] {
    cursor: pointer;
    width: 1.25rem;
    height: 1.25rem;
}

.chart-container {
    position: relative;
    /* Eliminar height fijo para evitar desbordamiento */
    min-height: 300px;
    margin: 1.5rem 0;
    padding: 0 10px;
}

/* Canvas dentro del contenedor con tamaño específico */
.chart-container canvas {
    max-height: 350px !important;
    width: 100% !important;
}

/* El título dentro del contenedor no afecta el espacio del canvas */
.chart-container h5 {
    margin-bottom: 1rem;
}

/* Mejorar el espacio del gráfico en móviles */
@media (max-width: 576px) {
    .chart-container {
        min-height: 350px; /* Más alto para acomodar labels rotados a 45° */
        padding: 0 5px;
    }
    
    .chart-container canvas {
        max-height: 400px !important;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .chart-container {
        min-height: 350px; /* También en tablets pequeñas */
        padding: 0 8px;
    }
    
    .chart-container canvas {
        max-height: 400px !important;
    }
}

/* Desktop mantiene altura normal con labels verticales */
@media (min-width: 769px) {
    .chart-container {
        min-height: 300px;
    }
    
    .chart-container canvas {
        max-height: 350px !important;
    }
}

.survey-card {
    height: 100%;
    transition: var(--transition);
}

.survey-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.input-group-text {
    background: #fff;
    border-right: none;
}

.form-control {
    border-left: none;
    transition: var(--transition);
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.form-control:focus + .input-group-text {
    border-color: var(--primary-color);
}

.opinion-card {
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.opinion-card:hover {
    border-left-color: var(--primary-color);
    background: #f8f9fa;
}

.opinion-clickable {
    cursor: pointer;
}

.opinion-clickable .opinion-text-content {
    cursor: pointer;
}

/* Survey Context Card con mini gráfico */
.survey-context-card {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.05) 0%, rgba(13, 110, 253, 0.05) 100%) !important;
    border: 1px solid rgba(13, 110, 253, 0.2) !important;
    transition: all 0.3s ease;
}

.survey-context-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.mini-chart-container {
    max-width: 180px;
    margin: 0 auto;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mini-chart-container canvas {
    max-width: 100%;
    height: auto !important;
}

@media (max-width: 768px) {
    .mini-chart-container {
        max-width: 140px;
    }
}

.quoted-opinion {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
}

.reply-item-detail {
    border-left: 2px solid #e9ecef;
}

.reply-item-detail:hover {
    background-color: #f8f9fa;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.opinion-actions button {
    transition: var(--transition);
    border: none;
    background: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.opinion-actions button:hover {
    background: #f8f9fa;
}

.opinion-actions .liked {
    color: var(--danger-color);
}

/* Botones de like en respuestas */
.like-reply-btn {
    transition: var(--transition);
    border: none;
    background: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--secondary-color);
    text-decoration: none;
}

.like-reply-btn:hover {
    background: #f8f9fa;
}

.like-reply-btn.liked {
    color: var(--danger-color);
}

.reply-clickable {
    transition: var(--transition);
}

.reply-clickable:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

/* ============================================
   ESTILOS PARA RESPUESTAS
   ============================================ */

.reply-btn {
    color: var(--primary-color);
}

.reply-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
}

.replies-section {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.replies-container {
    max-height: 400px;
    overflow-y: auto;
}

.reply-item {
    background: white;
    transition: var(--transition);
}

.reply-item:last-child {
    border-bottom: none !important;
}

.reply-item:hover {
    background: #f8f9fa;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.reply-form-container {
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
}

.reply-text {
    resize: none;
    border: 1px solid #dee2e6;
}

.reply-text:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.delete-reply-btn {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.delete-reply-btn:hover {
    opacity: 1;
}

.reply-to-reply-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.reply-to-reply-btn:hover {
    text-decoration: underline;
}

.replying-to-indicator {
    border-left: 3px solid var(--primary-color);
}

.replying-to-indicator .btn-close-sm {
    font-size: 0.7rem;
}

.comment-item {
    padding: 1rem;
    border-left: 3px solid #e9ecef;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.comment-item:hover {
    border-left-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.time-ago {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

footer {
    margin-top: auto;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .chart-container {
        height: 250px;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.progress-bar {
    transition: width 0.6s ease;
}

.alert {
    border-radius: var(--border-radius);
    border: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #0a58ca;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.5;
}

.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.text-primary {
    color: #667eea !important;
}

.border-primary {
    border-color: #667eea !important;
}

/* Header Decorative Charts */
.header-chart-container {
    position: absolute;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.header-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.header-chart-left {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    animation: float 6s ease-in-out infinite, glow 3s ease-in-out infinite;
}

.header-chart-right {
    top: 20%;
    right: 5%;
    width: 180px;
    height: 180px;
    animation: float 7s ease-in-out infinite 1s, glow 3s ease-in-out infinite 1.5s;
}

.header-chart-center {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    opacity: 0.25;
    animation: float 8s ease-in-out infinite 2s, glow 3s ease-in-out infinite 0.5s;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

/* Animations for charts */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.6));
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .header-chart-left,
    .header-chart-right,
    .header-chart-center {
        width: 150px;
        height: 150px;
        opacity: 0.25;
    }
}

@media (max-width: 768px) {
    .header-chart-left,
    .header-chart-right {
        width: 100px;
        height: 100px;
        opacity: 0.2;
    }
    
    .header-chart-center {
        display: none;
    }
}

@media (max-width: 576px) {
    .header-chart-left,
    .header-chart-right {
        opacity: 0.15;
    }
}

/* ============================================
   Filtros de opiniones - Estilo Twitter/X
   ============================================ */

/* NOTA: Estilos antiguos removidos - Ver filtros estilo X.com más abajo en línea ~1300 */

/* ============================================
   Modal de eliminación personalizado
   ============================================ */

#deleteOpinionModal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

#deleteOpinionModal .modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

#deleteOpinionModal .bi-trash3 {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

#deleteOpinionModal .btn-danger:hover {
    background-color: #bb2d3b;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

#deleteOpinionModal .btn-outline-secondary:hover {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* ============================================
   Barra de Navegación Inferior Móvil (Estilo X.com)
   ============================================ */

/* Barra de navegación inferior - solo móvil */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom); /* Soporte para notch de iPhone */
}

/* Ocultar cuando se hace scroll hacia abajo */
.bottom-nav.hidden {
    transform: translateY(100%);
}

/* Mostrar solo en móviles */
@media (max-width: 991.98px) {
    .bottom-nav {
        display: block;
    }
    
    /* Agregar padding al body para compensar la barra inferior */
    body {
        padding-bottom: 65px;
    }
    
    /* Ocultar navbar expandido en móvil - ahora usamos la barra inferior */
    .navbar-collapse {
        display: none !important;
    }
    
    .navbar-toggler {
        display: none !important;
    }
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #536471;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 12px;
    flex: 1;
    max-width: 80px;
    position: relative;
}

.bottom-nav-item:hover {
    background-color: rgba(13, 110, 253, 0.08);
    color: var(--primary-color);
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.bottom-nav-item:active i {
    transform: scale(0.9);
}

.bottom-nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Indicador activo */
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 0 0 3px 3px;
}

/* Badge de notificaciones */
.bottom-nav-item .badge {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--danger-color);
    color: white;
    border: 2px solid white;
}

/* Animación suave de entrada */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bottom-nav {
    animation: slideUp 0.3s ease-out;
}

/* Modo oscuro (opcional para futuro) */
@media (prefers-color-scheme: dark) {
    .bottom-nav {
        background: #16181c;
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    .bottom-nav-item {
        color: #8b98a5;
    }
    
    .bottom-nav-item:hover {
        background-color: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }
    
    .bottom-nav-item.active {
        color: #1d9bf0;
    }
}

/* ============================================
   Estilos para Encuestas Finalizadas
   ============================================ */

/* Barras de progreso mejoradas para resultados */
.progress {
    background-color: #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: width 0.6s ease;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* Asegurar que el gradiente se muestre correctamente */
#survey-options .progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
}

/* Clase personalizada para barras de resultados */
.progress-bar-custom {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Animación de aparición para las barras */
@keyframes slideInProgress {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.progress-bar {
    animation: slideInProgress 1s ease-out;
}

/* Estilos para el mensaje de encuesta finalizada */
.alert-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.alert-secondary .bi-lock-fill {
    color: #6c757d;
    opacity: 0.6;
}

/* Mejorar el diseño de las opciones con resultados */
.mb-3 .fw-medium {
    font-size: 1rem;
    color: #212529;
}

.mb-3 .badge.bg-primary {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

/* Hover en las barras de resultados */
.progress:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Badge de estado de encuesta */
#survey-status {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#survey-status.bg-success::before {
    content: '●';
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

#survey-status.bg-secondary::before {
    content: '●';
    font-size: 1.2rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .progress {
        height: 30px !important;
    }
    
    .progress-bar {
        font-size: 0.75rem;
    }
    
    /* Mantener el badge a la derecha incluso en móviles */
    #survey-options .fw-medium,
    #main-survey-options .fw-medium {
        font-size: 0.9rem;
        max-width: 60%;
    }
    
    #survey-options .badge.bg-primary,
    #main-survey-options .badge.bg-primary {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
        white-space: nowrap;
    }
}

/* ============================================
   Filtros horizontales estilo X.com
   ============================================ */

.filter-tabs-wrapper {
    position: relative;
    background: white;
    border-bottom: 1px solid #e9ecef;
    margin: 0 -15px;
    margin-bottom: 1.5rem;
}

.filter-tabs-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    position: relative;
    padding: 0 15px;
}

.filter-tabs-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.filter-tabs {
    display: flex;
    gap: 0;
    min-width: min-content;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
    position: relative;
}

.category-pill:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #212529;
}

.category-pill.active {
    color: #0d6efd !important;
    border-bottom-color: #0d6efd;
    background: transparent;
}

.category-pill i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.category-pill.active i {
    opacity: 1;
}

/* Gradiente de desvanecimiento en los bordes - estilo X.com */
.filter-tabs-wrapper::before,
.filter-tabs-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 1px;
    width: 30px;
    pointer-events: none;
    z-index: 2;
}

.filter-tabs-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.filter-tabs-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

/* Animación suave al hacer scroll */
.filter-tabs-container {
    scroll-behavior: smooth;
}

/* Responsive */
@media (min-width: 992px) {
    .filter-tabs-wrapper {
        margin: 0;
    }
    
    .filter-tabs-container {
        padding: 0;
    }
    
    .filter-tabs-wrapper::before,
    .filter-tabs-wrapper::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .category-pill {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
    
    .category-pill i {
        font-size: 1rem;
    }
    
    .filter-tabs-wrapper::before,
    .filter-tabs-wrapper::after {
        width: 20px;
    }
}
