/* --- VARIABLES GLOBALES --- */
:root {
    --primary: #0f172a;    /* Azul Oscuro Principal */
    --secondary: #1e293b;  /* Slate 800 */
    --accent: #3b82f6;     /* Azul Accent */
    --danger-color: #dc3545; /* Rojo para acciones peligrosas */
    --bg: #f8fafc;         /* Fondo de página */
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* --- RESET Y BASE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Contenedor de fondo animado - Doble capa para transición suave */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    will-change: opacity;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.15;
    transition: opacity 2.5s ease-in-out;
    will-change: opacity;
}

body.bg-visible::after {
    opacity: 0.15;
}

/* --- MODAL DE PROGRESO --- */
.modal-progreso {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-progreso.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-progreso-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-progreso-header {
    margin-bottom: 1.5rem;
}

.modal-progreso-header h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.modal-progreso-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-progreso-mensaje {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.modal-progreso-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-progreso-bar {
    flex: 1;
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.modal-progreso-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.modal-progreso-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modal-progreso-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    min-width: 45px;
    text-align: right;
}

.modal-progreso-etapa {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* --- MODAL DE SELECCIÓN DE FORMATO --- */
.modal-seleccion {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-seleccion.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-seleccion-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 0;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

.modal-seleccion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.modal-seleccion-header h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-seleccion-body {
    padding: 2rem;
}

.modal-seleccion-mensaje {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.opciones-formato {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.opcion-formato {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.opcion-formato:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.opcion-icono {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
}

.opcion-contenido {
    flex: 1;
}

.opcion-contenido h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
}

.opcion-contenido p {
    font-size: 1rem;
    color: var(--text-main);
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.opcion-contenido small {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}

.modal-seleccion-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    background: var(--bg);
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .modal-seleccion-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .modal-seleccion-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-seleccion-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-seleccion-body {
        padding: 1.5rem;
    }
    
    .opcion-formato {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .opcion-icono {
        font-size: 2.5rem;
    }
    
    .modal-seleccion-footer {
        padding: 1rem 1.5rem;
    }
}

/* --- MODAL DE ÉXITO --- */
.modal-exito {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-exito.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-exito-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-exito-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-exito-header h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.modal-exito-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.modal-exito-mensaje {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
    width: 100%;
}

.modal-exito-body .btn {
    min-width: 120px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- HEADER AZUL OSCURO --- */
.header {
    background: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.6rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar {
    width: 100%;
    position: relative;
}

/* Contenedor del Brand (Logo + Texto) */
.nav-brand {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: block;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

/* Link del usuario en el header */
.user-link {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: block;
}

.user-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

/* Estilos básicos para botones */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Inter', sans-serif;
}

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

/* Botones profesionales para formularios */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35), 0 2px 4px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn-primary::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.5s;
}

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

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4), 0 4px 8px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3), 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.form-register-professional .btn-block {
    margin-top: 1.25rem;
}

/* --- CONTENIDO --- */
.main-content { padding: 3rem 0; }

.page { 
    display: none; 
    animation: slideUp 0.4s ease-out; 
}

.page.active { display: block; }

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

/* --- LOADING SPINNER GRANDE --- */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 300px;
}

.spinner-large {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: 0s;
    border-top-color: var(--accent);
}

.spinner-ring:nth-child(2) {
    animation-delay: 0.2s;
    border-top-color: #60a5fa;
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
}

.spinner-ring:nth-child(3) {
    animation-delay: 0.4s;
    border-top-color: #93c5fd;
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.05em;
    animation: pulse 2s ease-in-out infinite;
}

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

h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    line-height: 1.2;
}

#page-proponer h2 {
    line-height: 1.1;
}

.page-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* --- FORMULARIOS --- */
.form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* --- FILTROS --- */
.filtros-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* --- BUSCADOR GENERAL: secciones y opciones --- */
.buscar-intro {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.buscar-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.buscar-seccion {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.buscar-seccion:last-of-type {
    border-bottom: none;
}

.buscar-seccion-titulo {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.buscar-seccion-titulo::before {
    content: '';
    width: 4px;
    height: 1.1em;
    background: var(--accent);
    border-radius: 2px;
}

.buscar-seccion-desc {
    margin: -0.5rem 0 1rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.buscar-seccion-query .form-group {
    margin-bottom: 0;
}

.buscar-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.buscar-input-query {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.buscar-input-query:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.buscar-seccion-filtros .form-group {
    margin-bottom: 0;
}

.buscar-seccion-filtros label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}

.buscar-seccion-filtros input[type="text"],
.buscar-seccion-filtros input[type="date"],
.buscar-seccion-filtros select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
}

.buscar-opciones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.buscar-opcion-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fafbfc;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.buscar-opcion-item:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.buscar-opcion-item:has(input:checked) {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.06);
    box-shadow: 0 0 0 1px var(--accent);
}

.buscar-opcion-item input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.buscar-opcion-texto {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.buscar-opcion-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.buscar-submit-wrap {
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.btn-buscar-submit {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .buscar-filtros-grid {
        grid-template-columns: 1fr;
    }
    
    .buscar-opciones-grid {
        grid-template-columns: 1fr;
    }
}

/* Resultados de búsqueda: cards clicables */
.buscar-resultado-card[data-recurso-id]:hover {
    background: #f8fafc !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.buscar-ir-recurso {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* --- CONTENEDOR DE RECURSOS --- */
.recursos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    column-gap: 2rem;
    row-gap: 4rem;
    margin-top: 2rem;
}

/* Contenedores del módulo de monitoreo: cards ocupan todo el ancho */
#page-monitoreo .recursos-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

#page-monitoreo .recursos-container .recurso-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Botones dentro de las cards del módulo de monitoreo */
#page-monitoreo .recurso-card > div[style*="display: flex"] {
    flex-wrap: wrap;
    gap: 0.75rem !important;
}

#page-monitoreo .recurso-card button,
#page-monitoreo .recurso-card a.btn {
    min-width: 0;
    flex: 1 1 auto;
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: normal;
}

/* Tarjetas estadísticas del módulo de monitoreo */
.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.estadistica-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.estadistica-numero {
    font-size: 2.5rem;
    font-weight: bold;
}

.estadistica-label {
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.estadisticas-seccion {
    margin-bottom: 2rem;
}

.estadisticas-seccion h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.estadisticas-lista {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.estadistica-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.estadistica-item-numero {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Márgenes laterales para móvil en página de recursos */
@media (max-width: 600px) {
    #page-recursos,
    #page-activismo {
        padding: 0 1rem;
    }
    
    #page-recursos h2,
    #page-activismo h2 {
        padding: 0 0.5rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    .recursos-container {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Módulo de monitoreo: mantener cards a ancho completo en móvil */
    #page-monitoreo .recursos-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Botones en cards del módulo de monitoreo en móvil */
    #page-monitoreo .recurso-card > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    #page-monitoreo .recurso-card button,
    #page-monitoreo .recurso-card a.btn {
        width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 100% !important;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        box-sizing: border-box;
    }
    
    /* Tarjetas estadísticas en móvil */
    .estadisticas-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .estadistica-card {
        padding: 0.75rem 0.5rem !important;
        border-radius: 6px !important;
    }
    
    .estadistica-numero {
        font-size: 1.75rem !important;
    }
    
    .estadistica-label {
        font-size: 0.75rem !important;
        margin-top: 0.25rem !important;
    }
    
    .estadisticas-seccion {
        margin-bottom: 1rem !important;
    }
    
    .estadisticas-seccion h4 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .estadisticas-lista {
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
    }
    
    .estadistica-item {
        padding: 0.75rem 0.5rem !important;
        border-radius: 6px !important;
        font-size: 0.85rem !important;
    }
    
    .estadistica-item-numero {
        font-size: 1rem !important;
    }
    
    /* Tabs de monitoreo en móvil */
    .monitoreo-tabs {
        flex-wrap: nowrap !important;
        gap: 0.4rem !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.5rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .monitoreo-tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .monitoreo-tab {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
        min-width: fit-content !important;
        border-radius: 8px 8px 0 0 !important;
    }
    
    .badge-alerta {
        padding: 1px 4px !important;
        font-size: 0.6rem !important;
        margin-left: 0.25rem !important;
    }
    
    .filtros-card {
        margin-left: 0;
        margin-right: 0;
        padding: 1rem;
    }
    
    /* Márgenes laterales para el contenedor principal en móvil */
    .container {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
}

/* --- FICHAS DE RECURSOS --- */
.recurso-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 20px !important;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recurso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.recurso-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.recurso-card p {
    margin: 0;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

.recurso-card p strong {
    color: var(--text-muted);
    font-weight: 600;
}

.recurso-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.recurso-card .badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    background: var(--bg);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.recurso-card .badge.propuesto {
    background: #e2e3e5;
    color: #383d41;
    border-color: #d6d8db;
}

.recurso-card .badge.procesado {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.recurso-card .badge.transcrito {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.recurso-card .badge.descargado {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.recurso-card .badge.listo_para_descarga {
    background: #cce5ff;
    color: #004085;
    border-color: #99ccff;
}

.recurso-card .meta a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.recurso-card .meta a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.recurso-card .meta span:not(.badge) {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-group { margin-bottom: 1.5rem; }

/* Formularios profesionales de Login y Registro - Diseño Premium */
.form-login-professional {
    max-width: 480px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.form-register-professional {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.form-login-professional::before,
.form-register-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

.form-group-inline {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.form-register-professional .form-group-inline {
    margin-bottom: 0.875rem;
    gap: 0.875rem;
}

.form-group-inline label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
    padding-top: 0.875rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.form-group-inline input[type="text"],
.form-group-inline input[type="email"],
.form-group-inline input[type="password"] {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-size: 0.95rem;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    font-weight: 400;
}

.form-register-professional .form-group-inline input[type="text"],
.form-register-professional .form-group-inline input[type="email"],
.form-register-professional .form-group-inline input[type="password"] {
    padding: 0.75rem 1rem;
}

.form-group-inline input[type="text"]:hover,
.form-group-inline input[type="email"]:hover,
.form-group-inline input[type="password"]:hover {
    border-color: #cbd5e1;
    background: #fafbfc;
}

.form-group-inline input[type="text"]:focus,
.form-group-inline input[type="email"]:focus,
.form-group-inline input[type="password"]:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), 0 2px 8px rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

.form-group-inline input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.help-text {
    font-size: 0.75rem;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    margin-top: 0.25rem;
    font-weight: 400;
    line-height: 1.4;
}

.form-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.form-register-professional .form-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.form-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.form-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.form-footer a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Mensajes de resultado profesionales */
.resultado {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
    border: 2px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-register-professional .resultado {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
}

/* ===========================================
   Tabs de Monitoreo
   =========================================== */
.monitoreo-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.monitoreo-tab {
    padding: 0.875rem 1.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px 10px 0 0;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: none;
    position: relative;
    bottom: -2px;
}

.monitoreo-tab:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.monitoreo-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.monitoreo-tab.active:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    transform: translateY(-2px);
}

.badge-alerta {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Range Input Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    transition: background 0.3s;
}

input[type="range"]:hover {
    background: #cbd5e1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    transition: all 0.3s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.6);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    transition: all 0.3s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.6);
}

/* Contenedores de resultado ocultos por defecto */
#resultado-login,
#resultado-register,
#resultado-proponer {
    display: none;
    min-height: 0;
}

/* Mostrar contenedor solo cuando tiene contenido */
#resultado-login:not(:empty),
#resultado-register:not(:empty),
#resultado-proponer:not(:empty) {
    display: block;
}

.resultado.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border-color: #fca5a5;
}

.resultado.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border-color: #86efac;
}

.resultado.info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-color: #93c5fd;
}

/* Títulos de formularios */
#page-login h2,
#page-register h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

#page-login > div,
#page-register > div {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Responsive para formularios */
@media (max-width: 600px) {
    .form-group-inline {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .form-group-inline label {
        text-align: left;
        padding-top: 0;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .form-login-professional,
    .form-register-professional {
        padding: 2rem 1.5rem;
    }
    
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    #page-login h2,
    #page-register h2 {
        font-size: 1.75rem;
    }
}

.form-label-modern {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

input[type="text"], input[type="url"], textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #fcfcfd;
    font-size: 1rem;
    color: var(--primary);
    transition: 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Selector Tipo de Fuente */
.source-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.source-type-card {
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: 0.3s;
    background: white;
}

.source-type-radio { display: none; }

.source-type-radio:checked + .source-type-card {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.03);
    transform: translateY(-3px);
}

.intelligence-section {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    margin: 2rem 0;
}

.btn-modern-submit {
    width: 100%;
    padding: 1.25rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-modern-submit:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* --- FOOTER AZUL OSCURO --- */
.footer {
    margin-top: 4rem;
    padding: 4rem 0 2rem;
    background: var(--primary);
    background-image: url('../images/batcul_footer.webp');
    background-repeat: repeat;
    background-position: top left;
    color: var(--text-white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

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

.footer-logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-logo h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
    margin: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer-links a { 
    text-decoration: none; 
    color: rgba(255, 255, 255, 0.7); 
    transition: 0.2s; 
}
.footer-links a:hover { color: var(--text-white); }

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-text {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- RESPONSIVE --- */
/* Botón hamburguesa para móvil */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-white);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 600px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 1rem 1.5rem;
        width: 100%;
        display: block;
    }
    
    .logo-text { 
        font-size: 1.3rem; 
    }
    
    .navbar .container {
        position: relative;
    }
    
    /* Márgenes laterales para página de detalle en móvil */
    #page-detalle > div[style*="margin-bottom: 20px"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    #page-detalle #detalle-recurso-content {
        padding: 0 0.5rem;
    }
    
    #page-detalle #detalle-recurso-content > div {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Márgenes laterales para título y subtítulo en página Proponer Post */
    #page-proponer h2,
    #page-proponer .page-subtitle {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Márgenes laterales para página de perfil en móvil */
    #page-perfil {
        padding: 0 1rem;
    }
    
    #page-perfil h2 {
        padding-left: 0;
        padding-right: 0;
    }
    
    #page-perfil .form-card {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Ajustar spinner grande en móvil */
    .spinner-large {
        width: 60px;
        height: 60px;
    }
    
    .loading-container {
        padding: 3rem 1rem;
        min-height: 250px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    /* Navegación de secciones en una línea con scroll horizontal */
    #nav-secciones {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 12px 15px !important;
        margin-bottom: 20px !important;
    }
    
    #nav-secciones::-webkit-scrollbar {
        height: 4px;
    }
    
    #nav-secciones::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }
    
    #nav-secciones::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }
    
    #nav-secciones .btn-seccion {
        padding: 8px 14px !important;
        font-size: 0.9rem !important;
        flex-shrink: 0;
    }
    
    /* Navegación de subsecciones de activismo también en una línea */
    #nav-subsecciones-activismo {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    #nav-subsecciones-activismo::-webkit-scrollbar {
        height: 4px;
    }
    
    #nav-subsecciones-activismo::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
    
    #nav-subsecciones-activismo::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    #nav-subsecciones-activismo .btn-subseccion-activismo {
        padding: 6px 12px !important;
        font-size: 0.85em !important;
        flex-shrink: 0;
    }
}

/* Estilos para tablet (600px - 768px) */
@media (min-width: 600px) and (max-width: 768px) {
    /* Optimización del Header en tablet */
    .header {
        padding: 0.5rem 0;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .logo-text {
        font-size: 1.35rem;
    }
    
    .nav-menu {
        gap: 0.35rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.45rem 0.85rem;
    }
    
    .user-link {
        font-size: 0.9rem;
        padding: 0.45rem 0.85rem;
    }
    
    /* Optimización del cuerpo en tablet */
    .main-content {
        padding: 2.5rem 1.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Márgenes laterales para título y subtítulo en página Proponer Post en tablet */
    #page-proponer h2,
    #page-proponer .page-subtitle {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Márgenes laterales para página de perfil en tablet */
    #page-perfil {
        padding: 0 1.5rem;
    }
    
    #page-perfil h2 {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Optimización del grid de recursos en tablet */
    .recursos-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        column-gap: 1.5rem;
        row-gap: 3rem;
    }
    
    /* Módulo de monitoreo: mantener cards a ancho completo en tablet */
    #page-monitoreo .recursos-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Márgenes laterales para páginas de recursos y activismo en tablet */
    #page-recursos,
    #page-activismo {
        padding: 0 1.25rem;
    }
    
    #page-recursos h2,
    #page-activismo h2 {
        padding-left: 0;
        padding-right: 0;
    }
    
    .filtros-card {
        padding: 1.25rem;
    }
}

/* --- TOAST NOTIFICACIÓN PARA NOTICIAS NEGATIVAS --- */
.toast-notificacion {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    min-width: 350px;
    max-width: 500px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(220, 53, 69, 0.4);
    animation: slideInRight 0.4s ease-out;
    display: none;
}

.toast-notificacion.show {
    display: block;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    position: relative;
}

.toast-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-message strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.toast-message p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}