/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Variables principales - modo oscuro por defecto */
    --azul-principal: #60A5FA;
    --azul-claro: #1e3a5f;
    --verde-suave: #1e3d1e;
    --rosa-suave: #3d1e2a;
    --amarillo-suave: #3d3a1e;
    --morado-suave: #2e1e3d;
    --gris-texto: #E5E7EB;
    --gris-claro: #0A0E13;
    --gris-medio: #9CA3AF;
    --blanco: #111827;
    --sombra-suave: 0 2px 12px rgba(0, 0, 0, 0.3);
    --sombra-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
    --border-radius: 16px;
    --border-radius-small: 12px;

    /* Variables para modo oscuro - ahora principales */
    --fondo-principal-dark: #0A0E13;
    --fondo-card-dark: #111827;
    --texto-principal-dark: #E5E7EB;
    --texto-secundario-dark: #9CA3AF;
    --accent-primary-dark: #60A5FA;
    --border-color-dark: #374151;
    --azul-principal-dark: #60A5FA;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--texto-principal-dark) !important;
    background-color: var(--fondo-principal-dark) !important;
    background: var(--fondo-principal-dark) !important;
}

body.dark-mode,
.dark-mode {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
}

body.dark-mode *,
.dark-mode * {
    color: inherit;
}

#app {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
    min-height: 100vh !important;
}

#home-page {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
}

#auth-page {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* PÁGINA PRINCIPAL */

/* Header moderno - modo oscuro */
.hero {
    background: var(--fondo-card-dark);
    color: var(--texto-principal-dark);
    padding: 1rem 0;
    box-shadow: var(--sombra-suave);
    border-bottom: 1px solid var(--border-color-dark);
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo modernizado */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 35px;
}

.cloud-icon {
    width: 45px;
    height: 28px;
    background: var(--accent-primary-dark);
    border-radius: 20px;
    position: relative;
}

.cloud-icon::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 8px;
    width: 16px;
    height: 16px;
    background: var(--accent-primary-dark);
    border-radius: 50%;
}

.cloud-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    right: 6px;
    width: 12px;
    height: 12px;
    background: var(--accent-primary-dark);
    border-radius: 50%;
}

.lightning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #FFD700;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--texto-principal-dark);
}

.logo-text span {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
    color: var(--texto-secundario-dark);
}

.nav-btn {
    background: var(--accent-primary-dark);
    color: white;
    border: 1px solid var(--accent-primary-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #3A7BD5;
    border-color: #3A7BD5;
    transform: translateY(-1px);
}

/* Hero Content moderno - modo oscuro */
.hero-content {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

.cta-btn {
    background: var(--accent-primary-dark);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--sombra-suave);
}

.cta-btn:hover {
    background: #3A7BD5;
    transform: translateY(-2px);
    box-shadow: var(--sombra-hover);
}

/* Secciones modernas */
section {
    padding: 4rem 0;
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
}

/* ¿Qué es? */
.what-is {
    background: var(--fondo-card-dark) !important;
    text-align: center;
    color: var(--texto-principal-dark) !important;
}

.what-is .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary-dark);
}

.what-is h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--texto-principal-dark);
    font-weight: 600;
}

.what-is p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--texto-secundario-dark);
    line-height: 1.7;
}

/* Cards de beneficios estilo salud */
.benefits {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
}

.benefits h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--texto-principal-dark);
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--fondo-card-dark);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color-dark);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

.benefit-card:nth-child(1) {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
}

.benefit-card:nth-child(2) {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f0f23 100%);
    border: 1px solid #4338ca;
}

.benefit-card:nth-child(3) {
    background: linear-gradient(135deg, #365314 0%, #1a2e05 100%);
    border: 1px solid #65a30d;
}

.benefit-card:nth-child(4) {
    background: linear-gradient(135deg, #0c4a6e 0%, #082f49 100%);
    border: 1px solid #0284c7;
}

.benefit-card:nth-child(5) {
    background: linear-gradient(135deg, #7c2d12 0%, #431407 100%);
    border: 1px solid #ea580c;
}

.benefit-card:nth-child(6) {
    background: linear-gradient(135deg, #881337 0%, #4c0519 100%);
    border: 1px solid #e11d48;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--texto-principal-dark);
    font-weight: 600;
}

.benefit-card p {
    color: var(--texto-secundario-dark);
    line-height: 1.6;
}

/* Pasos estilo cards */
.how-it-works {
    background: var(--fondo-card-dark) !important;
    color: var(--texto-principal-dark) !important;
}

.how-it-works h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--texto-principal-dark);
    font-weight: 600;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    counter-reset: step-counter;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--fondo-principal-dark);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color-dark);
    position: relative;
}

.step::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--accent-primary-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.4);
    border: 4px solid var(--fondo-principal-dark);
    z-index: 10;
}

.step:hover::before {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.6);
}

.step h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    color: var(--texto-principal-dark);
    font-weight: 600;
}

.step p {
    color: var(--texto-secundario-dark);
    line-height: 1.6;
}

/* Audiencia estilo cards */
.target-audience {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
}

.target-audience h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--texto-principal-dark);
    font-weight: 600;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.audience-card {
    background: var(--fondo-card-dark);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color-dark);
}

.audience-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--texto-principal-dark);
    font-weight: 600;
}

.audience-card p {
    color: var(--texto-secundario-dark);
    line-height: 1.5;
}

.audience-card:nth-child(1) {
    background: linear-gradient(135deg, #0c4a6e 0%, #082f49 100%);
    border: 1px solid #0284c7;
}

.audience-card:nth-child(2) {
    background: linear-gradient(135deg, #365314 0%, #1a2e05 100%);
    border: 1px solid #65a30d;
}

.audience-card:nth-child(3) {
    background: linear-gradient(135deg, #581c87 0%, #3b0764 100%);
    border: 1px solid #a855f7;
}

.audience-card:nth-child(4) {
    background: linear-gradient(135deg, #881337 0%, #4c0519 100%);
    border: 1px solid #e11d48;
}

.audience-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Tecnología moderna */
.tech-security {
    background: var(--fondo-card-dark) !important;
    color: var(--texto-principal-dark) !important;
}

.tech-security h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--texto-principal-dark);
    font-weight: 600;
}

.tech-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.tech-column {
    background: var(--fondo-principal-dark);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.tech-column h4 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--texto-principal-dark);
    font-weight: 600;
}

.tech-column li {
    padding: 0.75rem 0;
    color: var(--texto-secundario-dark);
    border-bottom: 1px solid var(--border-color-dark);
    line-height: 1.5;
}

/* Footer moderno */
footer {
    background: var(--fondo-principal-dark);
    color: var(--texto-principal-dark);
    padding: 3rem 0;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-primary-dark);
    font-weight: 600;
}

.footer-section p {
    color: var(--texto-secundario-dark);
}

/* PÁGINA DE AUTENTICACIÓN */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--azul-principal-dark) 0%, #5BA3F5 100%);
    padding: 2rem;
}

.auth-card {
    background: var(--fondo-card-dark);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.logo-icon-small {
    width: 35px;
    height: 25px;
}

.cloud-icon-small {
    width: 30px;
    height: 18px;
    background: var(--azul-principal-dark);
    border-radius: 15px;
    position: relative;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--texto-principal-dark);
    font-weight: 700;
}

.auth-header h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary-dark);
    font-weight: 600;
}

.auth-header p {
    color: var(--texto-secundario-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.email-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--texto-principal-dark);
    font-size: 0.9rem;
    text-align: left;
}

.auth-form input {
    padding: 1rem;
    border: 2px solid var(--border-color-dark);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--fondo-principal-dark);
    color: var(--texto-principal-dark);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-primary-dark);
    background: var(--fondo-principal-dark);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.auth-btn {
    background: var(--accent-primary-dark);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: #3A7BD5;
    transform: translateY(-1px);
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent-primary-dark);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.link-btn:hover {
    text-decoration: underline;
}

/* APLICACIÓN ESTILO SALUD */
.app-header {
    background: var(--fondo-card-dark) !important;
    color: var(--texto-principal-dark) !important;
    padding: 1rem 0;
    box-shadow: var(--sombra-suave);
    border-bottom: 1px solid var(--border-color-dark);
}

.app-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text-app h2 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
    color: var(--accent-primary-dark) !important;
}

.logo-text-app span {
    font-size: 0.8rem;
    color: var(--texto-secundario-dark) !important;
    font-weight: 500;
}

.logout-btn {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
    border: 1px solid var(--border-color-dark) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.logout-btn:hover {
    background: var(--fondo-card-dark) !important;
}

/* Layout principal moderno */
.app-content {
    padding: 0;
    min-height: calc(100vh - 80px);
    background: var(--fondo-principal-dark) !important;
    position: relative;
}

.app-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    position: relative;
    background: var(--fondo-principal-dark) !important;
}

/* Botón hamburger removido - sidebar siempre visible */

/* Sidebar siempre visible */
.sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    background: var(--fondo-card-dark) !important;
    border-right: 1px solid var(--border-color-dark);
    height: calc(100vh - 80px);
    overflow-y: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* Overlay removido - sidebar siempre visible */

.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color-dark);
    background: var(--fondo-card-dark) !important;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--texto-principal-dark) !important;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    color: var(--texto-secundario-dark);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--azul-claro);
    color: var(--accent-primary-dark);
    border-left-color: var(--accent-primary-dark);
}

.nav-item.active {
    background: var(--azul-claro);
    color: var(--accent-primary-dark);
    border-left-color: var(--accent-primary-dark);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

/* Contenido principal */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 2rem;
    background: var(--fondo-principal-dark) !important;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

/* Secciones de contenido */
.content-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header h2 {
    margin: 0 0 0.5rem 0;
    color: var(--texto-principal-dark);
    font-size: 2rem;
    font-weight: 700;
}

.section-header p {
    margin: 0;
    color: var(--texto-secundario-dark);
    font-size: 1.1rem;
}

/* Cards estilo salud para la app */
.filter-section,
.filters-section {
    background: var(--fondo-card-dark);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--sombra-suave);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color-dark);
}

/* Formulario moderno */
.filter-form {
    max-width: 1000px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--texto-principal-dark);
    font-size: 0.9rem;
}

.form-group select,
.form-group input {
    padding: 0.875rem;
    border: 2px solid var(--border-color-dark);
    border-radius: var(--border-radius-small);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary-dark);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
}

.form-group input[readonly] {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-secundario-dark) !important;
}

/* Forzar estilos para todos los inputs y selects */
input, select, textarea {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
    border: 2px solid var(--border-color-dark) !important;
}

input:focus, select:focus, textarea:focus {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
    border-color: var(--accent-primary-dark) !important;
}

/* Específicamente para campos de email */
input[type="email"] {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
    border: 2px solid var(--border-color-dark) !important;
}

/* Forzar estilos para elementos específicos que se ven en blanco */
.filter-email-display {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
    border: 1px solid var(--border-color-dark) !important;
}

/* Badges de filtros */
.filter-badges-container .filter-badge {
    background: var(--fondo-principal-dark) !important;
    color: var(--texto-principal-dark) !important;
    border: 1px solid var(--border-color-dark) !important;
}

.filter-badges-container .filter-badge.causa {
    background: var(--fondo-card-dark) !important;
    color: var(--accent-primary-dark) !important;
    border: 1px solid var(--accent-primary-dark) !important;
}

.filter-badges-container .filter-badge.nivel-rojo {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #ff6b6b !important;
    border: 1px solid #dc3545 !important;
}

.filter-badges-container .filter-badge.nivel-naranja {
    background: rgba(255, 167, 38, 0.2) !important;
    color: #ffa726 !important;
    border: 1px solid #fd7e14 !important;
}

.filter-badges-container .filter-badge.nivel-amarillo {
    background: rgba(255, 202, 40, 0.2) !important;
    color: #ffca28 !important;
    border: 1px solid #ffc107 !important;
}

.create-btn {
  background: linear-gradient(145deg, #60A5FA 0%, #3B82F6 100%);
  color: white;
  border: none;
  padding: 1.25rem 2.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.create-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.create-btn:hover::before {
  left: 100%;
}

.create-btn:hover {
  background: linear-gradient(145deg, #3B82F6 0%, #2563EB 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(96, 165, 250, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.create-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

/* Cards de avisos estilo salud */
.rss-alerts-section {
  background: var(--fondo-card-dark);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--sombra-suave);
  border: 1px solid var(--border-color-dark);
}

/* Cards de avisos AEMET - DISEÑO ELEGANTE Y MODERNO */
.rss-alert-card {
  background: var(--fondo-card-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--sombra-suave);
  position: relative;
}

.rss-alert-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
  border-color: var(--accent-primary-dark);
}

/* Bordes elegantes según nivel */
.rss-alert-card.nivel-rojo {
  border-left: 4px solid #e53e3e;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1b1f 100%);
  box-shadow: 0 4px 20px rgba(229, 62, 62, 0.15);
}

.rss-alert-card.nivel-naranja {
  border-left: 4px solid #fd8500;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2518 100%);
  box-shadow: 0 4px 20px rgba(253, 133, 0, 0.15);
}

.rss-alert-card.nivel-amarillo {
  border-left: 4px solid #ffa000;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2b18 100%);
  box-shadow: 0 4px 20px rgba(255, 160, 0, 0.15);
}

/* Vista resumida elegante */
.rss-alert-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.rss-alert-summary:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(96, 165, 250, 0.03) 100%);
  border-bottom-color: rgba(96, 165, 250, 0.2);
}

.summary-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
}

.alert-badge {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-badge.nivel-rojo {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  box-shadow: 0 3px 15px rgba(255, 107, 107, 0.3);
  border-color: rgba(255, 107, 107, 0.3);
}

.alert-badge.nivel-naranja {
  background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
  color: white;
  box-shadow: 0 3px 15px rgba(255, 167, 38, 0.3);
  border-color: rgba(255, 167, 38, 0.3);
}

.alert-badge.nivel-amarillo {
  background: linear-gradient(135deg, #ffca28 0%, #ffc107 100%);
  color: #1a1a1a;
  box-shadow: 0 3px 15px rgba(255, 202, 40, 0.3);
  border-color: rgba(255, 202, 40, 0.3);
  font-weight: 700;
}

.summary-info {
  flex: 1;
  min-width: 0;
}

.summary-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--texto-principal-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.summary-time {
  font-size: 0.9rem;
  color: var(--texto-secundario-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-time::before {
  content: "📅";
  font-size: 0.8rem;
}

.expand-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent-primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 80px;
  text-align: center;
}

.expand-indicator:hover {
  background: rgba(96, 165, 250, 0.1);
  transform: scale(1.05);
}

.expand-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.rss-alert-card.expanded .expand-icon {
  transform: rotate(180deg);
}

.expand-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contenido detallado (colapsado por defecto) */
.rss-alert-details {
  border-top: 1px solid var(--border-color-dark);
  background: var(--fondo-principal-dark);
}

.rss-alert-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color-dark);
  background: linear-gradient(135deg, var(--fondo-card-dark) 0%, var(--fondo-principal-dark) 100%);
}

.alert-level-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.alert-phenomenon {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--texto-principal-dark);
  flex: 1;
}

.alert-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--texto-secundario-dark);
}

.alert-date,
.alert-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.alert-date::before {
  content: "📅";
}

.alert-time::before {
  content: "🕐";
}

.rss-alert-content {
  padding: 1.5rem;
}

.alert-zone-header {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  border-radius: var(--border-radius-small);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.alert-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.zone-icon {
  font-size: 1.3rem;
}

.zone-name {
  flex: 1;
}

/* Estados temporales elegantes */
.alert-time-status {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--border-radius-small);
  border: 1px solid #334155;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.status-simple {
  margin-bottom: 1.5rem;
}

.status-indicator {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.status-main-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.status-icon-large {
  font-size: 2rem;
  animation: pulse 2s infinite;
}

.status-info {
  flex: 1;
}

.status-text {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-description {
  font-size: 0.9rem;
  color: var(--texto-secundario-dark);
  font-weight: 500;
}

.status-probability-column {
  min-width: 120px;
  text-align: center;
}

.probability-loading,
.probability-info,
.probability-error {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color-dark);
  background: var(--fondo-principal-dark);
}

.probability-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--texto-secundario-dark);
}

.probability-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary-dark);
}

.probability-value.no-data {
  color: var(--texto-secundario-dark);
  font-style: italic;
  font-weight: 500;
}

.load-probability-btn,
.retry-btn-small {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.load-probability-btn:hover,
.retry-btn-small:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Cronómetro visual */
.cronometro-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--fondo-principal-dark);
  border-radius: var(--border-radius-small);
  border: 1px solid var(--border-color-dark);
}

.tiempo-item {
  text-align: center;
  flex: 1;
}

.tiempo-label {
  font-size: 0.8rem;
  color: var(--texto-secundario-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tiempo-valor {
  font-size: 0.9rem;
  color: var(--texto-principal-dark);
  font-weight: 700;
}

.tiempo-separador {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 1rem;
}

.linea-tiempo {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.linea-tiempo.activo {
  background: linear-gradient(90deg, #28a745 0%, #dc3545 100%);
  animation: pulse 2s infinite;
}

.linea-tiempo.futuro {
  background: #ffc107;
}

.linea-tiempo.finalizado {
  background: #6c757d;
}

.estado-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.estado-badge.activo {
  background: #dc3545;
  color: white;
}

.estado-badge.futuro {
  background: #ffc107;
  color: #000;
}

.estado-badge.finalizado {
  background: #6c757d;
  color: white;
}

/* Barra de progreso mejorada */
.progreso-mejorado {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--fondo-principal-dark);
  border-radius: var(--border-radius-small);
  border: 1px solid var(--border-color-dark);
}

.progreso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progreso-titulo {
  font-size: 0.9rem;
  color: var(--texto-principal-dark);
  font-weight: 600;
}

.progreso-porcentaje {
  font-size: 1rem;
  color: var(--accent-primary-dark);
  font-weight: 700;
}

.progreso-barra-container {
  position: relative;
  margin-bottom: 0.5rem;
}

.progreso-barra {
  width: 100%;
  height: 8px;
  background: var(--border-color-dark);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progreso-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progreso-fill.activo {
  background: linear-gradient(90deg, #28a745 0%, #ffc107 50%, #dc3545 100%);
  animation: progress-glow 2s infinite;
}

.progreso-fill.futuro {
  background: #ffc107;
}

.progreso-fill.finalizado {
  background: #6c757d;
}

.progreso-indicador-ahora {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 12px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
  animation: blink 1s infinite;
}

.progreso-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--texto-secundario-dark);
}

@keyframes progress-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(40, 167, 69, 0.5); }
  50% { box-shadow: 0 0 15px rgba(220, 53, 69, 0.7); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Detalles del aviso */
.alert-details {
  margin-top: 1.5rem;
}

.alert-description {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--fondo-card-dark);
  border-radius: var(--border-radius-small);
  border-left: 4px solid var(--accent-primary-dark);
}

.alert-description p {
  margin: 0;
  line-height: 1.6;
  color: var(--texto-principal-dark);
}

.alert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color-dark);
}

.alert-source {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.source-badge {
  background: linear-gradient(135deg, var(--accent-primary-dark) 0%, #5BA3F5 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(96, 165, 250, 0.3);
}

.alert-id {
  font-family: 'Courier New', monospace;
  background: var(--fondo-principal-dark);
  color: var(--texto-secundario-dark);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  border: 1px solid var(--border-color-dark);
}

.alert-link {
  color: var(--accent-primary-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-primary-dark);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.alert-link:hover {
  background: var(--accent-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(96, 165, 250, 0.3);
}

.rss-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.95) 0%, 
    rgba(30, 41, 59, 0.9) 100%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.4),
    0 8px 32px rgba(96, 165, 250, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  backdrop-filter: blur(20px);
}

.rss-controls::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(96, 165, 250, 0.6) 20%, 
    rgba(168, 85, 247, 0.4) 50%,
    rgba(96, 165, 250, 0.6) 80%, 
    transparent);
  border-radius: 20px 20px 0 0;
}

.last-update-info {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.15) 0%, 
    rgba(59, 130, 246, 0.1) 100%);
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 15px rgba(96, 165, 250, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.last-update-info:hover {
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.2) 0%, 
    rgba(59, 130, 246, 0.15) 100%);
  transform: translateY(-1px);
  box-shadow: 
    0 6px 20px rgba(96, 165, 250, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.rss-alerts-container {
  width: 100%;
}

.rss-alerts-header {
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-primary-dark) 0%, #5BA3F5 100%);
  border-radius: 12px;
  color: white;
  text-align: center;
  box-shadow: var(--sombra-suave);
}

.rss-alerts-header h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.rss-source {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
  display: block;
  margin-bottom: 1rem;
}

.filters-active-display {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.filters-active-display .filter-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.rss-alerts-list {
  margin-top: 1rem;
}

/* Dashboard profesional moderno - Filtros AEMET mejorado */
.alerts-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  border-radius: 20px;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 6px 20px rgba(96, 165, 250, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  position: relative;
  backdrop-filter: blur(20px);
}

/* Contenedor para filtros principales en paralelo */
.main-filters-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: stretch;
  flex-direction: row;
}

.alerts-tabs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(96, 165, 250, 0.6) 20%, 
    rgba(168, 85, 247, 0.4) 50%,
    rgba(96, 165, 250, 0.6) 80%, 
    transparent);
  border-radius: 24px 24px 0 0;
}

.alerts-tabs::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.3) 0%, 
    rgba(168, 85, 247, 0.2) 50%, 
    rgba(96, 165, 250, 0.3) 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, 
    rgba(51, 65, 85, 0.6) 0%, 
    rgba(30, 41, 59, 0.8) 100%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  margin-bottom: 0.5rem;
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 200px;
}

.filter-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(96, 165, 250, 0.05), 
    transparent);
  transition: left 0.6s ease;
}

.filter-group:hover::before {
  left: 100%;
}

.filter-group:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(96, 165, 250, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-color: rgba(96, 165, 250, 0.4);
}

.filter-group-title {
  font-weight: 700;
  font-size: 0.85rem;
  background: linear-gradient(135deg, 
    #e2e8f0 0%, 
    #cbd5e1 30%, 
    #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'Inter', -apple-system, sans-serif;
  text-align: center;
  margin-bottom: 0.25rem;
}

/* Contenedor de botones para cada grupo */
.filter-buttons-container {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

/* Layout para grupos en paralelo */
.filter-groups-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tab-btn {
  background: linear-gradient(135deg, 
    rgba(51, 65, 85, 0.8) 0%, 
    rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  letter-spacing: 0.2px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  font-family: 'Inter', -apple-system, sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.08), 
    transparent);
  transition: left 0.6s ease;
}

.tab-btn:hover::before {
  left: 100%;
}

.tab-btn:hover {
  border-color: rgba(96, 165, 250, 0.6);
  color: #f1f5f9;
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.15) 0%, 
    rgba(59, 130, 246, 0.1) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(96, 165, 250, 0.3),
    0 0 20px rgba(96, 165, 250, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tab-btn.active {
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.9) 0%, 
    rgba(59, 130, 246, 0.95) 50%,
    rgba(37, 99, 235, 1) 100%);
  color: white;
  border-color: rgba(96, 165, 250, 0.8);
  font-weight: 700;
  box-shadow: 
    0 8px 30px rgba(96, 165, 250, 0.5),
    0 0 40px rgba(96, 165, 250, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px) scale(1.02);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.9), 
    transparent);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.tab-btn.has-alerts {
  position: relative;
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 
    0 0 25px rgba(96, 165, 250, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.3);
  animation: professional-glow 4s ease-in-out infinite;
}

.tab-btn.has-alerts:not(.active) {
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.2) 0%, 
    rgba(59, 130, 246, 0.15) 100%);
  color: #dbeafe;
  font-weight: 700;
  border-color: rgba(96, 165, 250, 0.5);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(96, 165, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

@keyframes professional-glow {
  0% { 
    box-shadow: 
      0 0 25px rgba(96, 165, 250, 0.4),
      0 4px 15px rgba(0, 0, 0, 0.3),
      0 0 0 0 rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.7);
  }
  50% { 
    box-shadow: 
      0 0 40px rgba(96, 165, 250, 0.6),
      0 6px 20px rgba(0, 0, 0, 0.4),
      0 0 0 4px rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.9);
  }
  100% { 
    box-shadow: 
      0 0 25px rgba(96, 165, 250, 0.4),
      0 4px 15px rgba(0, 0, 0, 0.3),
      0 0 0 0 rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.7);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Pestañas de filtros más compactas para móvil */
    .alerts-tabs {
      padding: 1rem;
      margin: 1rem 0;
      background: var(--fondo-card-dark);
      gap: 0.75rem;
    }

    /* En móvil, mantener layout horizontal pero más compacto */
    .main-filters-row {
      flex-direction: row;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .filter-groups-row {
      gap: 0.75rem;
    }

    .filter-group {
      padding: 0.75rem;
      background: var(--fondo-principal-dark);
    }

    .filter-group-title {
      font-size: 0.8rem;
      font-weight: 700;
      text-align: center;
      padding: 0.4rem;
      background: var(--accent-primary-dark);
      color: white !important;
      -webkit-text-fill-color: white !important;
      border-radius: 12px;
      margin-bottom: 0.5rem;
    }

    .filter-buttons-container {
      gap: 0.4rem;
      flex-wrap: wrap;
    }

    .tab-btn {
      padding: 0.4rem 0.7rem;
      font-size: 0.75rem;
      border-radius: 10px;
      text-align: center;
      min-height: 32px;
      font-weight: 600;
      white-space: nowrap;
      flex: 0 0 auto;
    }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    /* MÓVIL - RESET COMPLETO Y DISEÑO ADAPTATIVO */
    body {
        margin: 0;
        padding: 0;
        width: 100vw;
        overflow-x: hidden;
        background: var(--fondo-principal-dark);
    }

    .container {
        max-width: 100%;
        padding: 0 1rem;
        margin: 0;
    }

    /* Header móvil - COMPACTO Y FUNCIONAL */
    .app-header {
        padding: 0.75rem 0;
        width: 100%;
        height: 70px;
        background: var(--fondo-card-dark);
        color: var(--texto-principal-dark);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin: 0;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1010;
        border-bottom: 1px solid var(--border-color-dark);
    }

    .app-header .container {
        padding: 0 1rem 0 70px; /* Espacio para el botón hamburger */
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    .logo-text-app h2 {
        font-size: 1.4rem;
        margin: 0;
        color: var(--accent-primary-dark);
        font-weight: 700;
    }

    .logo-text-app span {
        font-size: 0.8rem;
        color: var(--texto-secundario-dark);
        display: block;
        margin-top: -2px;
    }

    .logout-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        background: var(--fondo-principal-dark);
        color: var(--texto-principal-dark);
        border: 1px solid var(--border-color-dark);
        border-radius: 20px;
        font-weight: 500;
    }

    .logout-btn:hover {
        background: var(--fondo-card-dark);
    }

    /* Botón hamburger - SIEMPRE VISIBLE EN MÓVIL */
    .sidebar-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        background: var(--accent-primary-dark);
        color: white;
        border: none;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
        transition: all 0.3s ease;
        font-size: 1.4rem;
        font-weight: bold;
        z-index: 1020;
    }

    .sidebar-toggle:hover {
        background: #3A7BD5;
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(96, 165, 250, 0.4);
    }

    .sidebar-toggle.active {
        background: #6c757d;
        color: white;
    }

    /* Overlay - BLOQUEO COMPLETO DE PANTALLA */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    /* App content - AJUSTE PERFECTO PARA HEADER */
    .app-content {
        padding-top: 70px;
        margin: 0;
        width: 100vw;
        min-height: 100vh;
        background: var(--fondo-principal-dark);
        overflow-x: hidden;
    }

    /* Layout - CONTENEDOR PRINCIPAL MÓVIL */
    .app-layout {
        display: flex;
        width: 100%;
        min-height: calc(100vh - 70px);
        margin: 0;
        padding: 0;
        background: var(--fondo-principal-dark);
        position: relative;
    }

    /* Sidebar - OCULTO EN MÓVIL */
    .sidebar {
        display: none;
    }

    /* Header del sidebar - ELEGANTE Y CLARO */
    .sidebar-header {
        padding: 2rem 1.5rem 1.5rem;
        border-bottom: 1px solid var(--border-color-dark);
        background: linear-gradient(135deg, var(--accent-primary-dark) 0%, #5BA3F5 100%);
        color: white;
        position: sticky;
        top: 0;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .sidebar-header h3 {
        color: white;
        font-size: 1.2rem;
        margin: 0;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    /* Navegación - BOTONES TÁCTILES GRANDES */
    .sidebar-nav {
        display: block;
        padding: 1rem 0 2rem;
        background: var(--fondo-card-dark);
        width: 100%;
        margin: 0;
    }

    /* Items de navegación - EXPERIENCIA TÁCTIL OPTIMIZADA */
    .nav-item {
        width: 100%;
        height: auto;
        min-height: 60px;
        padding: 1.25rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 1.25rem;
        border: none;
        border-left: 4px solid transparent;
        border-radius: 0;
        font-size: 1rem;
        background: var(--fondo-card-dark);
        margin: 0;
        transition: all 0.25s ease;
        font-weight: 500;
        color: var(--texto-secundario-dark);
        text-align: left;
        cursor: pointer;
    }

    .nav-item:hover {
        background: var(--azul-claro);
        border-left-color: var(--accent-primary-dark);
        color: var(--accent-primary-dark);
        transform: translateX(6px);
    }

    .nav-item.active {
        background: var(--azul-claro);
        border-left-color: var(--accent-primary-dark);
        color: var(--accent-primary-dark);
        font-weight: 600;
        transform: translateX(6px);
    }

    .nav-icon {
        font-size: 1.4rem;
        width: 28px;
        text-align: center;
        flex-shrink: 0;
    }

    .nav-text {
        font-size: 1rem;
        font-weight: inherit;
        line-height: 1.3;
        flex: 1;
    }

    /* Contenido principal - OPTIMIZADO PARA MÓVIL */
    .main-content {
        padding: 1.5rem 1rem;
        width: 100%;
        box-sizing: border-box;
        background: var(--fondo-principal-dark);
        min-height: calc(100vh - 70px);
        margin: 0;
        max-width: 100vw;
        overflow-x: hidden;
        transition: none;
    }

    .main-content.sidebar-open {
        margin-left: 0;
    }

    /* Ajustes para secciones internas */
    .content-section {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .section-header {
        margin-bottom: 1rem;
        text-align: left;
        padding: 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
        margin: 0 0 0.5rem 0;
        color: var(--texto-principal-dark);
    }

    .section-header p {
        font-size: 1rem;
        margin: 0;
        color: var(--texto-secundario-dark);
    }

    /* Cards ocupan todo el ancho */
    .filter-section,
    .filters-section,
    .rss-alerts-section {
        width: 100%;
        box-sizing: border-box;
        margin: 0 0 1rem 0;
        padding: 1rem;
        border-radius: 12px;
        background: var(--fondo-card-dark);
        border: 1px solid var(--border-color-dark);
    }

    /* Formularios móviles optimizados */
    .form-grid {
        display: block;
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
        width: 100%;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        box-sizing: border-box;
        padding: 0.75rem;
        font-size: 1rem;
    }

    /* Controles de RSS más compactos */
    .rss-controls {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        padding: 1rem;
        background: var(--fondo-principal-dark);
    }

    .last-update-info {
        text-align: center;
        font-size: 0.85rem;
    }

    .create-btn {
        width: 100%;
        padding: 0.875rem;
        font-size: 1rem;
    }

    /* Pestañas de filtros más compactas */
    .alerts-tabs {
      padding: 1.5rem;
      margin: 1.5rem 0;
      background: var(--fondo-card-dark);
      gap: 1rem;
    }

    .filter-group {
      flex-direction: column;
      align-items: stretch;
      gap: 0.5rem;
      padding: 0.75rem;
      background: var(--fondo-principal-dark);
      flex: 1;
      min-width: 120px;
    }

    .filter-group-title {
      width: 100%;
      margin-bottom: 0.75rem;
      font-size: 1rem;
      font-weight: 700;
      text-align: center;
      padding: 0.5rem;
      background: var(--accent-primary-dark);
      color: white;
      border-radius: 20px;
    }

    .tab-btn {
      padding: 0.875rem 1rem;
      font-size: 0.9rem;
      border-radius: 25px;
      min-width: 120px;
      text-align: center;
      min-height: 48px;
      font-weight: 600;
    }

    /* Cards de avisos optimizadas */
    .rss-alert-card {
        width: 100%;
        margin-bottom: 1rem;
        border-radius: 12px;
        overflow: hidden;
    }

    .rss-alert-summary {
        padding: 1rem;
    }

    .summary-main {
        gap: 0.75rem;
    }

    .summary-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .summary-time {
        font-size: 0.8rem;
    }

    .expand-indicator {
        font-size: 0.8rem;
    }

    /* Contenido detallado de cards */
    .rss-alert-header {
        padding: 1rem;
    }

    .rss-alert-content {
        padding: 1rem;
    }

    /* Multiseleccon móvil */
    .multiselect-container {
        width: 100%;
    }

    .multiselect-options {
        max-height: 200px;
    }

    .multiselect-option {
        padding: 0.75rem;
    }
}

/* Multiselección - opciones desplegadas */
.multiselect-options {
    background: white !important;
    border: 2px solid var(--accent-primary-dark) !important;
    border-radius: 0 0 6px 6px !important;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
}

.multiselect-option {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e9ecef;
    background: white !important;
    color: #333 !important;
}

.multiselect-option:hover {
    background: #f8f9fa !important;
    color: #000 !important;
}

.multiselect-option input[type="checkbox"] {
    margin: 0 !important;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary-dark);
}

.multiselect-option span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333 !important;
    line-height: 1.4;
}

.multiselect-option:hover span {
    color: #000 !important;
}

.multiselect-option.select-all {
    background: #f0f8ff !important;
    border-bottom: 2px solid var(--accent-primary-dark);
    font-weight: 600;
}

.multiselect-option.select-all span {
    color: var(--accent-primary-dark) !important;
}

/* Estilos para tags de multiselección */
.multiselect-tag {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--accent-primary-dark) !important;
    color: white !important;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.125rem;
    transition: all 0.2s ease;
}

.multiselect-tag:hover {
    background: #bbdefb;
    transform: translateY(-1px);
}

.multiselect-tag .remove-tag {
    cursor: pointer;
    font-weight: bold;
    color: #d32f2f;
    padding: 0.125rem;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.multiselect-tag .remove-tag:hover {
    background: #ffcdd2;
    color: #c62828;
}

.multiselect-selected-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    max-width: 100%;
}

.multiselect-count {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: #ffc107;
    color: #000;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.multiselect-count:hover {
    background: #ffb300;
    transform: translateY(-1px);
}

/* Animaciones simples para cards */
.rss-alert-card {
    animation: fadeIn 0.5s ease-out;
}

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

/* Efectos especiales */
.benefit-card,
.audience-card,
.step,
.rss-alert-card {
    animation: fadeIn 0.6s ease-out;
}

/* Mejoras en accesibilidad */
.nav-item:focus,
.tab-btn:focus,
.create-btn:focus,
.auth-btn:focus {
    outline: 2px solid var(--accent-primary-dark);
    outline-offset: 2px;
}

/* Efectos hover mejorados */
.benefit-card:hover,
.audience-card:hover,
.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

.nav-item:hover {
    transform: translateX(4px);
}

/* Estados específicos */
.connection-status.online {
    color: #059669;
    font-weight: 600;
}

.connection-status.offline {
    color: #DC2626;
    font-weight: 600;
}

/* Paginación simple */
.pagination-simple {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--fondo-card-dark);
  border-radius: var(--border-radius-small);
  box-shadow: var(--sombra-suave);
}

.pagination-btn {
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--border-color-dark);
  background: var(--fondo-principal-dark);
  color: var(--texto-principal-dark);
  border-radius: var(--border-radius-small);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--accent-primary-dark);
  color: var(--accent-primary-dark);
}

.pagination-btn.active {
  background: var(--accent-primary-dark);
  border-color: var(--accent-primary-dark);
  color: white;
  font-weight: 600;
}

.pagination-btn:disabled {
  background: var(--fondo-principal-dark);
  border-color: var(--border-color-dark);
  color: var(--texto-secundario-dark);
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-btn.prev,
.pagination-btn.next {
  font-weight: 600;
  padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
  .pagination-simple {
    gap: 0.25rem;
    padding: 0.75rem;
  }

  .pagination-btn {
    min-width: 32px;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .pagination-btn.prev,
  .pagination-btn.next {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Estilos para Mis Filtros Activos */
.avisos-view {
  width: 100%;
}

.mis-filtros-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--fondo-principal-dark);
  border-radius: 8px;
  border: 1px solid var(--border-color-dark);
}

.filtros-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filtros-activos-container {
  background: var(--fondo-card-dark) !important;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--sombra-suave);
  color: var(--texto-principal-dark) !important;
}

/* Dashboard profesional - Cards de filtros */
.filters-list-modern {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  background: transparent;
  padding: 0;
}

.filter-card-modern {
  background: linear-gradient(145deg, #1a1f2e 0%, #16213e 100%);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  backdrop-filter: blur(10px);
}

.filter-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #60A5FA, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-card-modern:hover::before {
  opacity: 1;
}

.filter-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(96, 165, 250, 0.2);
  border-color: rgba(96, 165, 250, 0.4);
}

.filter-card-modern.collapsed .filter-details {
  display: none;
}

.filter-card-modern.expanded .filter-details {
  display: block;
}

/* Vista resumida profesional */
.filter-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  position: relative;
}

.filter-summary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-summary:hover::after {
  opacity: 1;
}

.filter-summary:hover {
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.05) 0%, rgba(59, 130, 246, 0.03) 100%);
}

.summary-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.summary-info {
  flex: 1;
}

.summary-title {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  text-transform: capitalize;
}

.summary-emojis {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.summary-emojis .emoji-tooltip {
  padding: 0.25rem;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  transition: all 0.2s ease;
}

.summary-emojis .emoji-tooltip:hover {
  background: rgba(96, 165, 250, 0.2);
  transform: scale(1.1);
}

.summary-location {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-location::before {
  content: "📍";
  font-size: 0.8rem;
  opacity: 0.7;
}

.expand-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #60A5FA;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(96, 165, 250, 0.2);
  transition: all 0.3s ease;
  min-width: 80px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expand-indicator:hover {
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.expand-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.2rem;
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.filter-card-modern.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Contenido detallado profesional */
.filter-details {
  border-top: 1px solid rgba(96, 165, 250, 0.2);
  animation: expandDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.filter-card-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(96, 165, 250, 0.15);
  background: linear-gradient(145deg, rgba(15, 20, 25, 0.8) 0%, rgba(26, 31, 46, 0.6) 100%);
  backdrop-filter: blur(10px);
}

.filter-header-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.filter-number {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-name {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: capitalize;
}

.filter-card-content {
  padding: 2rem;
  background: linear-gradient(145deg, rgba(15, 20, 25, 0.4) 0%, rgba(26, 31, 46, 0.2) 100%);
}

.filter-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.05) 0%, rgba(59, 130, 246, 0.03) 100%);
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(135deg, #60A5FA 0%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.filter-badge.nivel-rojo {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.filter-badge.nivel-naranja {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2) 0%, rgba(234, 88, 12, 0.15) 100%);
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.4);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.2);
}

.filter-badge.nivel-amarillo {
  background: linear-gradient(135deg, rgba(255, 202, 40, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
  color: #fde68a;
  border-color: rgba(255, 202, 40, 0.4);
  box-shadow: 0 0 20px rgba(255, 202, 40, 0.2);
}

.filter-badge.causa {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
  color: #93C5FD;
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

.filter-badge-empty {
  color: var(--texto-secundario-dark);
  font-style: italic;
  font-size: 0.85rem;
}

.filter-location-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.location-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: var(--fondo-principal-dark);
  border-radius: 6px;
}

.location-label {
  font-weight: 600;
  color: var(--texto-principal-dark);
  font-size: 0.85rem;
}

.location-value {
  color: var(--texto-secundario-dark);
  font-size: 0.85rem;
  text-align: right;
}

.filter-email-display {
  padding: 0.75rem;
  background: var(--fondo-principal-dark) !important;
  border: 1px solid var(--accent-primary-dark) !important;
  border-radius: 6px;
  color: var(--accent-primary-dark) !important;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--texto-secundario-dark);
  padding-top: 1rem;
  border-top: 1px solid var(--border-color-dark);
  margin-top: 1rem;
}

.filter-created,
.filter-scope {
  font-weight: 500;
}

.filter-actions-bottom {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color-dark);
}

.btn-edit-bottom,
.btn-delete-bottom {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-edit-bottom {
  background: #3b82f6;
  color: white;
}

.btn-edit-bottom:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-delete-bottom {
  background: #ef4444;
  color: white;
}

.btn-delete-bottom:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.emoji-tooltip {
  cursor: help;
  transition: transform 0.2s ease;
}

.emoji-tooltip:hover {
  transform: scale(1.2);
}

.no-filters {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--texto-secundario-dark);
  background: var(--fondo-principal-dark);
  border-radius: var(--border-radius);
  border: 2px dashed var(--border-color-dark);
}

.no-filters p {
  font-size: 1.1rem;
  margin: 0;
}

.filtros-resumen-global {
  background: linear-gradient(135deg, var(--accent-primary-dark) 0%, #5BA3F5 100%) !important;
  color: white !important;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: var(--sombra-suave);
}

.filtros-resumen-global h4 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color: white !important;
}

.filtros-resumen-global * {
  color: white !important;
}

.resumen-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.15) !important;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: white !important;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9) !important;
}

.filtros-detalle-lista {
  display: grid;
  gap: 1.5rem;
  background: var(--fondo-principal-dark) !important;
}

.filtro-activo-card {
  background: var(--fondo-card-dark) !important;
  border: 2px solid var(--border-color-dark);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  color: var(--texto-principal-dark) !important;
}

.filtro-activo-card.con-avisos {
  border-color: #dc3545;
  background: linear-gradient(135deg, var(--fondo-card-dark) 0%, #2d1b1f 100%) !important;
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.15);
}

.filtro-activo-card.sin-avisos {
  border-color: #28a745;
  background: linear-gradient(135deg, var(--fondo-card-dark) 0%, #1a2e1a 100%) !important;
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.15);
}

.filtro-activo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.filtro-info h4 {
  margin: 0;
  color: var(--texto-principal-dark) !important;
  font-size: 1.1rem;
}

.filtro-ubicacion {
  margin: 0.25rem 0 0 0;
  color: var(--texto-secundario-dark) !important;
  font-size: 0.9rem;
}

.filtro-status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
}

.filtro-status.activo {
  background: #dc3545;
  color: white;
}

.filtro-status.inactivo {
  background: #28a745;
  color: white;
}

.filtro-criterios {
  margin-bottom: 1rem;
  background: var(--fondo-principal-dark) !important;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color-dark);
}

.criterio-grupo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.criterio-label {
  font-weight: 600;
  color: var(--texto-principal-dark) !important;
  min-width: 80px;
}

.criterio-badge {
  background: var(--fondo-principal-dark) !important;
  color: var(--texto-principal-dark) !important;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color-dark);
}

.avisos-coincidentes {
  background: var(--fondo-principal-dark) !important;
  border: 1px solid var(--accent-primary-dark);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  color: var(--texto-principal-dark) !important;
}

.avisos-coincidentes h5 {
  margin: 0 0 0.75rem 0;
  color: var(--accent-primary-dark) !important;
}

.avisos-resumen {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.nivel-count, .estado-count {
  background: var(--fondo-principal-dark) !important;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color-dark);
  color: var(--texto-principal-dark) !important;
}

.nivel-count.rojo { 
  border-color: #dc3545; 
  color: #ff6b6b !important; 
  background: linear-gradient(135deg, #2d1b1f 0%, var(--fondo-principal-dark) 100%) !important;
}
.nivel-count.naranja { 
  border-color: #fd7e14; 
  color: #ffa726 !important; 
  background: linear-gradient(135deg, #2d2518 0%, var(--fondo-principal-dark) 100%) !important;
}
.nivel-count.amarillo { 
  border-color: #ffc107; 
  color: #ffca28 !important; 
  background: linear-gradient(135deg, #2d2b18 0%, var(--fondo-principal-dark) 100%) !important;
}

.avisos-lista-mini {
  display: grid;
  gap: 0.5rem;
}

.aviso-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fondo-card-dark) !important;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--texto-principal-dark) !important;
  border: 1px solid var(--border-color-dark);
}

.aviso-nivel {
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  color: white;
}

.aviso-nivel.nivel-rojo { background: #dc3545; }
.aviso-nivel.nivel-naranja { background: #fd7e14; }
.aviso-nivel.nivel-amarillo { background: #ffc107; color: #000; }

.aviso-fenomeno {
  font-weight: 600;
  flex: 1;
}

.aviso-zona {
  color: var(--texto-secundario-dark);
  font-size: 0.8rem;
}

.avisos-mas {
  text-align: center;
  color: var(--texto-secundario-dark);
  font-style: italic;
  padding: 0.5rem;
  background: var(--fondo-principal-dark);
  border-radius: 4px;
}

.sin-avisos-message {
  background: var(--fondo-principal-dark) !important;
  border: 1px solid var(--accent-primary-dark);
  border-radius: 6px;
  padding: 1rem;
  color: var(--texto-principal-dark) !important;
}

.filtro-acciones {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color-dark);
  background: var(--fondo-principal-dark) !important;
  padding: 1rem;
  border-radius: 8px;
}

.filtro-email {
  color: var(--texto-secundario-dark) !important;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filtro-email::before {
  content: "📧";
  font-size: 1rem;
}

.btn-editar-mini {
  background: linear-gradient(135deg, var(--accent-primary-dark) 0%, #5BA3F5 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(96, 165, 250, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-editar-mini:hover {
  background: linear-gradient(135deg, #3A7BD5 0%, #4A90E2 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

.no-filters-active {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--texto-secundario-dark);
}

.filtros-error {
  background: #402127;
  border: 1px solid #721c24;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.filtros-error h4 {
  color: #f8d7da;
  margin: 0 0 1rem 0;
}

.filtros-error p {
  color: #f8d7da;
  margin-bottom: 1rem;
}

.connection-status.online {
  color: #28a745;
}

.connection-status.offline {
  color: #dc3545;
}