/* =============================================================================
   FOXWEB CSS - VARIABLES DEL TEMA
   Edita estos valores para personalizar colores y espaciados fácilmente
   ============================================================================= */

:root {
    /* Colores principales */
    --primary: #b34700;
    --primary-hover: #993800;
    --primary-light: rgba(179, 71, 0, 0.08);
    
    /* Colores de fondo */
    --bg-body: #0a0a0a;
    --bg-card: #121212;
    --bg-tab: #1a1a1a;
    --bg-header: rgba(18, 18, 18, 0.98);
    --bg-footer: #080808;
    
    /* Colores de texto */
    --text-main: #f0f0f0;
    --text-dim: #888;
    --text-muted: #666;
    --text-secondary: #aaa;
    
    /* Bordes */
    --border: #333;
    --border-light: #222;
    
    /* Colores de estado */
    --success: #2ea44f;
    --warning: #ffc107;
    --error: #dc3545;
    --info: #17a2b8;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.5);
    
    /* Radios de borde */
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-full: 20px;
    
    /* Espaciados */
    --space-xs: 3px;
    --space-sm: 6px;
    --space-md: 12px;
    --space-lg: 18px;
    --space-xl: 24px;
    
    /* Capas z-index */
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    
    /* Variables de tema oscuro */
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --text-shadow-color: rgba(0, 0, 0, 0.5);
    --p-text-color: var(--text-main);
    --dot-color-primary: rgba(255, 255, 255, 0.1);
    --dot-color-secondary: transparent;
    --dot-size: 2px;
    --dot-spacing: 20px;
}

[data-theme=light] {
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-tab: #f1f3f5;
    --bg-header: rgba(255, 255, 255, 0.98);
    --bg-footer: #e9ecef;
    --text-main: #212529;
    --text-dim: #6c757d;
    --text-muted: #adb5bd;
    --text-secondary: #666;
    --border: #dee2e6;
    --border-light: #e9ecef;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --bg-overlay: rgba(255, 255, 255, 0.6); /* Light overlay for light theme */
    --text-shadow-color: rgba(255, 255, 255, 0.8); /* Light shadow for dark text in light theme */
    --p-text-color: var(--text-main); /* Default p text color for light theme */
    --dot-color-primary: rgba(0, 0, 0, 0.1); /* Subtle black dots for light theme */
    --dot-color-secondary: transparent;
    --dot-size: 2px; /* Reverted dot size for subtlety */
    --dot-spacing: 20px;
}

/* =============================================================================
   ESTILOS BASE - Reset y configuración general
   ============================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: #0000
}

/* Estilos de focus para navegación por teclado (TAB) */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px
}

*:focus:not(:focus-visible) {
    outline: none
}

html {
    font-size: 14px;
    scroll-behavior: smooth
}

body {
    font-family: inter, -apple-system, BlinkMacSystemFont, segoe ui, Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

ul,
ol {
    list-style: none
}

a {
    color: inherit;
    text-decoration: none
}

a:focus-visible,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button {
    background: 0 0;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: none
}

button:disabled {
    cursor: not-allowed
}

input,
textarea,
select {
    font: inherit;
    color: inherit;
    background: 0 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md)
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary)
}

/* =============================================================================
   HEADER - Encabezado del sitio
   ============================================================================= */

/* Reserva de espacio para el header dinámico - evitar CLS */
#header-placeholder {
    min-height: 75px;
}

.main-header {
    z-index: var(--z-sticky);
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) 0;
    margin-bottom: 8px;
    position: relative
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    gap: var(--space-md)
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0
}

.main-logo {
    width: 36px;
    height: 36px;
    object-fit: contain
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1
}

.logo-text h1 span {
    color: var(--primary)
}

.logo-text p {
    font-size: .75rem;
    color: var(--text-dim);
    margin-top: 1px
}

/* Estilos específicos del panel de navegación */
.logo-text a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
    text-decoration: none;
    font-size: .95rem;
    padding: 8px 12px;
    border-radius: 8px;
}

.logo-text a:hover,
.logo-text a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm)
}

.btn-theme-toggle,
.btn-notification,
.btn-discord,
.btn-youtube,
.btn-about {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--bg-card);
    color: var(--text-dim);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.btn-notification:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.btn-discord { background: #5865F2; color: #fff; }
.btn-youtube { background: #FF0000; color: #fff; }
.btn-about { background: var(--bg-card); color: var(--text-dim); border: 1px solid var(--border); }
.btn-about:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.btn-theme-toggle { background: var(--bg-card); color: var(--text-dim); border: 1px solid var(--border); }
.btn-theme-toggle:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

.btn-theme-toggle:focus-visible,
.btn-notification:focus-visible,
.btn-discord:focus-visible,
.btn-youtube:focus-visible,
.btn-about:focus-visible,
.btn-theme-toggle:focus,
.btn-notification:focus,
.btn-discord:focus,
.btn-youtube:focus,
.btn-about:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    color: var(--primary);
}

.btn-discord:hover,
.btn-youtube:hover,
.btn-about:hover {
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--error);
    color: #fff;
    font-size: .65rem;
    font-weight: 600;
    min-width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px
}

/* =============================================================================
   NAVEGACIÓN - Pestañas y navegación principal
   ============================================================================= */
.main-nav {
    background-color: var(--bg-body);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: var(--z-sticky);
    top: 0
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md)
}

.tab-buttons {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-color: var(--bg-body);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    overflow: hidden;
    border: 1px solid var(--border)
}

.tab-buttons::-webkit-scrollbar {
    display: none
}

.tablink {
    flex: 1;
    min-width: 100px;
    min-height: 48px;
    padding: var(--space-md) var(--space-sm);
    background-color: var(--bg-body);
    color: var(--text-dim);
    font-weight: 600;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    white-space: nowrap;
    border: none;
    border-bottom: 2px solid #0000;
    position: relative
}

.tablink:focus-visible,
.tablink:focus {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    background-color: var(--bg-tab);
    color: var(--text-main);
}

.tablink.active {
    background-color: var(--bg-card);
    color: var(--primary);
    border-bottom-color: var(--primary)
}

.tablink i {
    font-size: .9rem
}

.tablink:not(.active) {
    background-color: var(--bg-body);
    color: var(--text-dim)
}

.tablink:not(.active):hover {
    background-color: var(--bg-tab);
    color: var(--text-main)
}

.search-section {
    padding: var(--space-md) 0;
    background-color: var(--bg-body);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-body);
}

.search-container-advanced {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md)
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm)
}

.search-icon {
    color: var(--text-dim);
    font-size: .9rem;
    flex-shrink: 0
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    padding: 0;
    font-size: .9rem;
    background: 0 0;
    color: var(--text-main)
}

.search-clear {
    color: var(--text-dim);
    background: 0 0;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    display: none
}

.search-clear.visible {
    display: flex
}

/* =============================================================================
   CONTENIDO PRINCIPAL - Grid y tarjetas
   ============================================================================= */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    min-height: 60vh
}

.tab-content {
    display: none
}

.tab-content.active {
    display: block
}

.content-header {
    /* Alineación */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);

    /* ESPACIADO: Esto separará el título de las tarjetas */
    margin-bottom: var(--space-xl);
}

.content-header .header-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.content-header .header-text h2 {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.content-header .header-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.content-header .header-text p {
    color: var(--text-dim);
    font-size: .8rem;
    max-width: 500px;
    margin: 0;
    text-align: left;
}

/* Banner lateral para desktop */
.content-header .header-banner {
    display: none;
    flex-shrink: 0;
}

.content-header .header-banner img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Solo mostrar banner en pantallas grandes */
@media (min-width: 1024px) {
    .content-header .header-banner {
        display: block;
    }
}

@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.content-header h2 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alineado a la izquierda */
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.content-header h2 .view-toggle {
    margin-left: auto;
    display: inline-flex;
}

.content-header p {
    color: var(--text-dim);
    font-size: .8rem;
    max-width: 500px;
    margin: 0;
    text-align: left;
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-dim); /* Un color un poco más suave que el título */
    font-weight: normal;
    margin-left: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 2px 8px;
    border-radius: 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl)
}

/* =============================================================================
   TARJETAS - Estilos de cards de contenido
   ============================================================================= */
.content-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md)
}

.card-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0
}

.card-icon i {
    font-size: 1.25rem;
    color: var(--primary);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: var(--radius-sm)
}

.card-actions {
    display: flex;
    gap: var(--space-xs)
}

.card-action-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tab);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: .8rem;
}

.card-action-btn:focus-visible,
.card-action-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
    color: var(--primary);
}

.card-content {
    flex: 1;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    flex-direction: row;
}

.card-title-text {
    flex: 0 1 auto;
    min-width: 0;
}

.main-badge {
    background-color: var(--primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block
}

/* Asegurar que en vista normal (no compact) el badge esté junto al nombre */
.content-grid:not(.compact-view) .card-title {
    flex-direction: row;
    align-items: center
}

.content-grid:not(.compact-view) .card-title-text {
    flex: 0 1 auto
}

.content-grid:not(.compact-view) .main-badge {
    order: 2
}

/* =============================================================================
   VIEW TOGGLE - Botones para cambiar entre vista de tarjetas y compacta
   ============================================================================= */
.header-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md)
}

.view-toggle {
    display: flex;
    background-color: var(--bg-tab);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2px;
    gap: 2px
}

.view-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    color: var(--text-dim);
    font-size: .9rem;
    cursor: pointer;
    transition: all 0.2s ease
}

.view-btn:hover {
    color: var(--text-main);
    background-color: var(--bg-card)
}

.view-btn.active {
    background-color: var(--primary);
    color: #fff
}

.view-btn:focus-visible,
.view-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px
}

.card-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-size: .8rem;
    line-height: 1.4
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.item-badge {
    background-color: var(--bg-tab);
    color: var(--text-dim);
    font-size: .7rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.card-footer {
    display: flex;
    gap: var(--space-sm);
    margin-top: auto;
    flex-wrap: wrap;
}

.download-btn {
    flex: 1;
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-decoration: none
}

.download-btn.details-btn {
    background-color: var(--bg-tab);
    color: var(--text-secondary);
    border: 1px solid var(--border)
}

.download-btn.details-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary)
}

.download-btn.disabled {
    background-color: var(--bg-tab);
    color: var(--text-dim);
    cursor: not-allowed
}

/* Badge de seguridad / verificación */
.card-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: auto
}

.security-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 4px 8px;
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 600;
}

.security-badge i {
    font-size: 0.7rem;
}

/* =============================================================================
   TOAST NOTIFICATIONS
   ============================================================================= */
.toast-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    border: 2px solid var(--primary);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: toast-fade-in 0.3s ease;
    max-width: 400px;
    text-align: center
}

@keyframes toast-fade-in {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1
    }
}

.toast-notification i:first-child {
    font-size: 1.2rem;
    flex-shrink: 0
}

.toast-notification span {
    flex: 1
}

.toast-notification button {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    flex-shrink: 0
}

.toast-notification button:hover {
    color: var(--text-main)
}

.toast-success {
    border-color: var(--success);
    background-color: rgba(46, 164, 79, 0.15)
}

.toast-success i:first-child {
    color: var(--success)
}

.toast-error {
    border-color: var(--error);
    background-color: rgba(220, 53, 69, 0.15)
}

.toast-error i:first-child {
    color: var(--error)
}

.toast-warning {
    border-color: var(--warning);
    background-color: rgba(255, 193, 7, 0.15)
}

.toast-warning i:first-child {
    color: var(--warning)
}

.toast-info {
    border-color: var(--info);
    background-color: rgba(23, 162, 184, 0.15)
}

.toast-info i:first-child {
    color: var(--info)
}

/* =============================================================================
   VISTA COMPACTA - Estilos para tarjetas en formato de lista horizontal
   ============================================================================= */
.content-grid.compact-view {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.content-grid.compact-view .content-card {
    flex-direction: row;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    height: auto;
    min-height: 56px
}

.content-grid.compact-view .card-header {
    margin-bottom: 0;
    margin-right: var(--space-md);
    flex-shrink: 0
}

.content-grid.compact-view .card-icon {
    width: 32px;
    height: 32px
}

.content-grid.compact-view .card-icon i {
    font-size: 1rem
}

.content-grid.compact-view .card-actions {
    display: none
}

.content-grid.compact-view .card-content {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
    min-width: 0;
    overflow: visible
}

.content-grid.compact-view .card-title {
    margin-bottom: 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-main);
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-block
}

.content-grid.compact-view .card-title-text {
    flex: 0
}

.content-grid.compact-view .main-badge {
    font-size: .65rem;
    padding: 1px 6px;
    flex-shrink: 0
}

.content-grid.compact-view .card-description {
    display: block;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    color: var(--text-dim);
    font-size: .75rem;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.content-grid.compact-view .card-badges {
    display: none
}

.content-grid.compact-view .card-footer {
    flex-direction: row;
    margin-top: 0;
    margin-left: auto;
    flex-shrink: 0;
    gap: var(--space-xs);
}

.content-grid.compact-view .download-btn {
    padding: 6px 12px;
    font-size: .75rem;
    min-width: auto;
    white-space: nowrap;
}

.content-grid.compact-view .download-btn i {
    margin-right: 4px
}

.content-grid.compact-view .download-btn span {
    display: inline
}

/* Botón de detalles en vista compacta */
.content-grid.compact-view .details-btn {
    background-color: var(--bg-tab);
    color: var(--text-secondary);
    border: 1px solid var(--border)
}

.content-grid.compact-view .details-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary)
}

/* Botón copiar enlace en vista compacta */
.content-grid.compact-view .copy-link-btn {
    background-color: var(--bg-tab);
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 6px 10px;
    font-size: .75rem
}

.content-grid.compact-view .copy-link-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary)
}

/* Nombre del contenido con ellipsis en vista compacta */
.content-grid.compact-view .card-title-text {
    max-width: 200px;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block
}

/* Responsive para vista compacta */
@media (max-width: 768px) {
    .content-grid.compact-view .card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px
    }
    
    .content-grid.compact-view .card-title-text {
        max-width: 150px
    }
    
    .content-grid.compact-view .card-footer {
        flex-direction: column;
        gap: 4px
    }
    
    .content-grid.compact-view .download-btn {
        width: 100%
    }
}

.empty-state,
.no-results {
    text-align: center;
    padding: var(--space-xl);
    grid-column: 1/-1
}

.empty-state i,
.no-results i {
    font-size: 2rem;
    color: var(--text-dim);
    margin-bottom: var(--space-md);
    opacity: .5
}

.empty-state h3,
.no-results h3 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: var(--space-sm)
}

.empty-state p,
.no-results p {
    color: var(--text-dim);
    font-size: .8rem
}

.sidebar {
    position: fixed;
    top: 150px;
    right: var(--space-md);
    width: 220px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    z-index: var(--z-sticky);
    display: none;
    max-height: calc(100vh - 180px);
    overflow-y: auto
}

@media (min-width: 1025px) {
    .sidebar {
        display: block
    }
}

.sidebar-section {
    margin-bottom: var(--space-lg)
}

.sidebar-section:last-child {
    margin-bottom: 0
}

.sidebar-section h3 {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm)
}

.sidebar-section h3 i {
    color: var(--primary)
}

.sidebar-info {
    background-color: var(--bg-tab);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm)
}

.sidebar-info p {
    font-size: .75rem;
    color: var(--text-dim);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs)
}

.sidebar-info p:last-child {
    margin-bottom: 0
}

.sidebar-info i {
    color: var(--primary);
    flex-shrink: 0;
    font-size: .8rem
}

.quick-actions-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs)
}

.quick-action-btn {
    width: 100%;
    padding: var(--space-sm);
    background-color: var(--bg-tab);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: .75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-sm)
}

.quick-action-btn i {
    font-size: .85rem;
    width: 16px
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs)
}

.social-link {
    padding: var(--space-sm);
    background-color: var(--bg-tab);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: .75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-sm)
}

.social-link.youtube {
    border-left: 3px solid red
}

.social-link.discord {
    border-left: 3px solid #5865f2
}

.social-link.github {
    border-left: 3px solid #333
}

.social-link i {
    font-size: .85rem;
    width: 16px
}

/* =============================================================================
   FOOTER - Pie de página
   ============================================================================= */
.main-footer {
    background: linear-gradient(180deg, rgba(20,20,25,.95) 0, rgba(15,15,20,.98) 100%);
    border-top: 1px solid var(--border);
    padding: 30px 15px 20px;
    margin-top: 40px;
}

[data-theme="light"] .main-footer {
    background: linear-gradient(180deg, rgba(248,249,250,.95) 0, rgba(233,236,239,.98) 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.footer-section h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.footer-description { color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; font-size: .9rem; }
.footer-copyright { color: var(--text-dim); font-size: .85rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    padding: 6px 0;
}

.footer-link:hover { color: var(--primary); }

.footer-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: .85rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 20px;
    padding-top: 15px;
    text-align: center;
    color: var(--text-dim);
    font-size: .8rem;
}

.footer-legal {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-legal a { color: var(--text-dim); text-decoration: none; font-size: .8rem; }
.footer-legal a:hover { color: var(--primary); }

.text-highlight { color: var(--primary); font-weight: 600; }

.footer-section {
    display: flex;
    flex-direction: column
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md)
}

.footer-logo img {
    width: 28px;
    height: 28px
}

.footer-logo h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main)
}

.footer-logo h3 span {
    color: var(--primary)
}

.footer-description {
    color: var(--text-dim);
    font-size: .75rem;
    line-height: 1.4;
    margin-bottom: var(--space-md)
}

.footer-copyright {
    color: var(--text-muted);
    font-size: .7rem;
    margin-top: auto
}

.footer-section h4 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--primary)
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs)
}

.footer-link {
    padding: var(--space-xs) 0;
    color: var(--text-dim);
    font-size: .75rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: 0 0;
    border: none;
    cursor: pointer
}

.footer-link i {
    width: 14px;
    color: var(--primary);
    font-size: .8rem
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs)
}

.footer-info p {
    color: var(--text-dim);
    font-size: .75rem;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm)
}

.footer-info i {
    color: var(--primary);
    flex-shrink: 0;
    font-size: .8rem
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: .7rem
}

.footer-legal {
    display: flex;
    gap: var(--space-lg)
}

.footer-legal a {
    color: var(--text-dim);
    font-size: .85rem;
    cursor: pointer;
    padding: var(--space-sm) var(--space-md);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.footer-legal a:hover,
.footer-legal a:focus {
    background-color: var(--primary-light);
    color: var(--primary)
}

.floating-btn {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: var(--z-fixed);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Estilos de foco para accesibilidad - navegación por teclado */
.floating-btn:focus,
.floating-btn:focus-visible,
button:focus-visible,
.card-action-btn:focus-visible,
.tablink:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.3);
}

/* Asegurar que los elementos interactivos sean alcanzables por teclado */
a:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.collaborators-btn {
    background-color: var(--primary);
    bottom: 150px;
    right: var(--space-md)
}

.upload-btn {
    background-color: var(--primary);
    bottom: 100px;
    right: var(--space-md)
}

.scroll-top {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    bottom: var(--space-md);
    right: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top.hide {
    opacity: 0;
    visibility: hidden;
}

/* =============================================================================
   MODALES - Ventanas emergentes
   ============================================================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--space-md)
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    pointer-events: auto;
    cursor: pointer;
    z-index: -1;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: var(--space-xl);
    pointer-events: auto;
}

.modal .close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-dim);
    font-size: 1.1rem;
    z-index: calc(var(--z-modal) + 1);
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.modal .close:hover {
    background-color: var(--bg-tab);
    color: var(--text-main);
    border-color: var(--border);
}



.modal .close:focus {
    outline: 1px solid var(--text-dim);
    outline-offset: 2px
}

.btn-with-icon,
.modal-btn,
.donate-btn,
.download-btn,
.card-action-btn,
.quick-action-btn,
.social-link,
.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    position: relative
}

.btn-with-icon i,
.modal-btn i,
.donate-btn i,
.download-btn i,
.card-action-btn i,
.quick-action-btn i,
.social-link i,
.footer-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    line-height: 1;
    width: 1em;
    height: 1em;
    min-width: 1em;
    min-height: 1em;
}

.modal-compact {
    text-align: center
}

.modal-compact i[class*=fa-] {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: block
}

.modal-compact h2 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
    font-size: 1.3rem;
    text-align: center
}

.modal-compact>p {
    color: var(--text-dim);
    margin-bottom: var(--space-lg);
    font-size: .9rem;
    line-height: 1.4;
    text-align: center
}

.modal-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    justify-items: center
}

.modal-btn {
    padding: .35em .6em;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: .75rem;
    text-decoration: none;
    min-height: 2em;
    min-width: 6em;
    cursor: pointer;
    border: 1px solid #0000;
    line-height: 1.3;
    display: inline-block;
    text-align: center;
    vertical-align: middle
}

.modal-btn.bit-64 {
    background-color: var(--primary);
    color: #fff;
    border: 1px solid var(--primary)
}

.modal-btn.bit-64:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover)
}

.modal-btn.bit-32 {
    background-color: var(--success);
    color: #fff;
    border: 1px solid var(--success)
}

.modal-btn.bit-32:hover {
    background-color: #218838;
    border-color: #1e7e34
}

.donate-modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: var(--space-lg);
    text-align: center
}

.donate-icon {
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center
}

.donate-icon i {
    font-size: 2rem;
    color: #003087;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, #003087 0%, #009cde 50%, #003087 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #0000;
    background-clip: text
}

.donate-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    text-align: center
}

.donate-message {
    color: var(--text-dim);
    font-size: .85rem;
    margin-bottom: var(--space-lg);
    text-align: center;
    line-height: 1.4;
    padding: 0 var(--space-sm)
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    background: linear-gradient(135deg, #003087 0%, #009cde 100%);
    color: #fff;
    border: 1px solid #003087;
    border-radius: var(--radius-md);
    padding: .5em 1em;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    min-height: 2.5em;
    min-width: 8em;
    margin-bottom: var(--space-lg);
    cursor: pointer;
    line-height: 1
}

.donate-btn:hover {
    background: linear-gradient(135deg, #002672 0%, #0088cc 100%);
    border-color: #002672;
}

.donate-btn i {
    font-size: .9em;
    color: #fff !important;
    opacity: .95
}

.donate-note {
    background-color: #0030871a;
    border: 1px solid #0030874d;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-lg);
    text-align: center;
    color: var(--text-dim);
    font-size: .8rem;
    line-height: 1.4
}

.donate-note-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5em
}

.donate-note i.fa-heart {
    color: #ff4757;
    font-size: .9em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1em
}

.donate-note strong {
    color: var(--text-main);
    font-weight: 600
}

.info-modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: var(--space-xl)
}

.info-icon {
    text-align: center;
    margin-bottom: var(--space-md)
}

.info-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-md)
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    text-align: center
}

.info-subtitle {
    color: var(--text-dim);
    font-size: .9rem;
    margin-bottom: var(--space-lg);
    text-align: center;
    line-height: 1.4
}

.collaborators-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: var(--space-lg) 0
}

.collaborator-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background-color: var(--bg-tab);
    border-radius: var(--radius-md);
    border: 1px solid var(--border)
}

.collaborator-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.collaborator-avatar i {
    font-size: 1.5rem;
    color: var(--primary)
}

.collaborator-info {
    flex: 1
}

.collaborator-info h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: var(--space-xs)
}

.collaborator-info p {
    color: var(--text-dim);
    font-size: .85rem;
    margin-bottom: var(--space-sm);
    line-height: 1.4
}

.collaborator-links {
    display: flex;
    gap: var(--space-md)
}

.collaborator-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-size: .85rem;
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--primary-light);
    border-radius: var(--radius-sm);
    border: 1px solid #0000
}

.collaborator-link:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.collaborator-link i {
    font-size: .9em
}

.contribution-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0
}

.contribution-option {
    text-align: center;
    padding: var(--space-md);
    background-color: var(--bg-tab);
    border-radius: var(--radius-md);
    border: 1px solid var(--border)
}

.contribution-option i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-sm)
}

.contribution-option h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    color: var(--text-main)
}

.contribution-option p {
    font-size: .85rem;
    color: var(--text-dim);
    line-height: 1.4
}

.info-note {
    background-color: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-lg);
    text-align: center;
    color: var(--text-dim);
    font-size: .85rem
}

.info-note i {
    color: var(--primary);
    margin-right: var(--space-xs)
}

#sugerenciaModal .modal-content {
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--space-lg) var(--space-md);
    position: relative
}

#sugerenciaModal>#formularioSugerencia>div:first-child {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1
}

#sugerenciaModal>#formularioSugerencia>div:first-child i.fa-link {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
    position: relative;
    text-align: center;
    width: 100%;
    height: auto;
    max-width: 100%;
    overflow: visible;
    line-height: 1.2;
    top: 0
}

#sugerenciaModal>#formularioSugerencia>div:first-child h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
    line-height: 1.3
}

#sugerenciaModal>#formularioSugerencia>div:first-child p {
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.4
}

#sugerenciaModal .sugerencia-label {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-xs);
    color: var(--text-main);
    font-size: .85rem;
    font-weight: 500;
    gap: var(--space-sm)
}

#sugerenciaModal .sugerencia-label i {
    color: var(--primary);
    font-size: .9em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1em;
    line-height: 1;
    position: relative;
    top: 1px
}

.sugerencia-input {
    width: 100%;
    margin-bottom: var(--space-md);
    font-size: .85rem;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--bg-tab);
    color: var(--text-main)
}

.enlace-info {
    background-color: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    color: var(--text-dim);
    font-size: .8rem;
    margin-bottom: var(--space-md);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: var(--space-xs)
}

.enlace-info i {
    color: var(--primary);
    font-size: .9em;
    position: relative;
    top: 1px
}

#submitSugerencia {
    width: 100%;
    padding: var(--space-md);
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: .9rem;
    margin-top: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-height: 44px
}

#submitSugerencia i {
    margin-right: var(--space-sm);
    color: #fff;
    font-size: 1em;
    position: relative;
    top: 1px
}

#confirmacionSugerencia {
    text-align: center;
    padding: var(--space-lg) 0
}

#confirmacionSugerencia i {
    font-size: 2.5rem;
    color: var(--success);
    margin-bottom: var(--space-md);
    display: block
}

/* =============================================================================
   NOTIFICACIONES - Centro de notificaciones y toasts
   ============================================================================= */
.notification-center {
    position: fixed;
    top: 70px;
    right: var(--space-md);
    width: 320px;
    max-width: calc(100vw - 20px);
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    z-index: 1060;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.notification-center.show {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notification-header {
    padding: var(--space-xs) var(--space-sm);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.notification-header h4 {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: var(--space-xs)
}

.notification-header h4 i {
    color: var(--primary)
}

.notification-close {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tab);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: .8rem
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-xs);
    flex: 1;
    overflow-x: hidden
}

.notification-item {
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    word-wrap: break-word;
    overflow: hidden;
}

.notification-item:hover {
    background-color: var(--bg-tab);
}

.notification-item.new {
    background-color: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.notification-item:last-child {
    border-bottom: none
}

.notification-icon {
    font-size: .85rem;
    color: var(--primary);
    margin-top: 1px;
    flex-shrink: 0
}

.notification-content {
    flex: 1;
    min-width: 0;
    overflow: hidden
}

.notification-content strong {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0
}

.notification-content p {
    font-size: .75rem;
    color: var(--text-dim);
    margin-bottom: 0;
    line-height: 1.3
}

.notification-content small {
    font-size: .7rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px
}

.notification-empty {
    text-align: center;
    padding: var(--space-md);
    color: var(--text-dim)
}

.notification-empty i {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    opacity: .5
}

.toast {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    background-color: var(--bg-card);
    border-left: 3px solid var(--primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    max-width: 300px;
    z-index: 1080;
}

.toast i {
    font-size: 1rem;
    flex-shrink: 0
}

.toast span {
    flex: 1;
    font-size: .8rem;
    line-height: 1.3
}

.toast button {
    background: 0 0;
    border: none;
    color: var(--text-dim);
    font-size: .9rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    flex-shrink: 0
}

.toast-success {
    border-left-color: var(--success)
}

.toast-error {
    border-left-color: var(--error)
}

.toast-warning {
    border-left-color: var(--warning)
}

.toast-info {
    border-left-color: var(--info)
}

/* =============================================================================
   ERRORES Y UTILIDADES - Pantallas de error y clases utilitarias
   ============================================================================= */



.error-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-body);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1040;
    padding: var(--space-md);
    text-align: center
}

.error-screen.show {
    display: flex
}

.error-content {
    max-width: 400px;
    width: 100%;
    padding: var(--space-lg);
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.error-icon {
    margin-bottom: var(--space-md)
}

.error-icon i {
    font-size: 2.5rem;
    color: var(--primary)
}

.error-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-sm)
}

.error-message {
    color: var(--text-dim);
    font-size: .85rem;
    line-height: 1.4;
    margin-bottom: var(--space-md)
}

.error-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    justify-content: center
}

.error-btn {
    padding: var(--space-sm) var(--space-md);
    background-color: var(--bg-tab);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: .8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs)
}

.error-btn.primary {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-md);
    z-index: 9999;
}

.skip-link:focus {
    top: var(--space-md);
    outline: 2px solid #fff;
    outline-offset: 2px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.is-hidden {
    display: none !important
}

.is-visible {
    display: block !important
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

::-webkit-scrollbar-track {
    background: var(--bg-tab)
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-sm)
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover)
}

/* =============================================================================
   MEDIA QUERIES - Responsive design para diferentes tamaños de pantalla
   ============================================================================= */
@media(max-width:1024px) {
    .sidebar {
        display: none !important
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-sm)
    }
}

@media(max-width:768px) {
    html {
        font-size: 13px
    }

    .header-content {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center
    }

    .header-actions {
        justify-content: center
    }

    .tablink {
        min-width: auto;
        min-height: 48px;
        padding: var(--space-md) var(--space-sm);
        font-size: .75rem
    }

    .tablink span {
        display: none
    }

    .tablink i {
        font-size: .9rem
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm)
    }

    .modal-content {
        padding: var(--space-lg);
        margin: var(--space-md)
    }

    .modal-buttons-container {
        grid-template-columns: 1fr;
        gap: var(--space-xs)
    }

    .modal-btn {
        min-width: 100%;
        font-size: .8rem;
        padding: .6em 1em
    }

    .donate-modal-content {
        padding: var(--space-lg);
        max-width: 90%
    }

    .donate-btn {
        min-width: 100%;
        font-size: .8rem;
        padding: .6em 1em
    }

    .donate-note {
        padding: var(--space-sm);
        font-size: .75rem
    }

    .donate-note-content {
        flex-direction: row;
        gap: var(--space-xs)
    }

    .modal .close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
        background-color: #121212e5;
        border: 1px solid var(--border-light)
    }

    .floating-btn {
        width: 36px;
        height: 36px;
        font-size: .9rem;
        right: var(--space-sm)
    }

    .collaborators-btn {
        bottom: 100px
    }

    .upload-btn {
        bottom: 60px
    }

    .scroll-top {
        bottom: var(--space-sm)
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-md)
    }

    .footer-bottom {
        text-align: center
    }

    .footer-legal {
        flex-direction: column;
        gap: var(--space-xs)
    }
}

@media(max-width:480px) {

    .header-content,
    .nav-container,
    .main-content,
    .footer-content {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm)
    }

    .content-header h2 {
        font-size: 1.1rem
    }

    .modal-content {
        padding: var(--space-md)
    }

    .modal-btn {
        padding: .5em .8em;
        font-size: .75rem
    }

    .donate-modal-content {
        padding: var(--space-md)
    }

    .donate-btn {
        padding: .5em .8em;
        font-size: .75rem
    }

    .donate-note {
        padding: 10px;
        font-size: .7rem
    }

    .toast {
        left: var(--space-sm);
        right: var(--space-sm);
        max-width: none
    }

    .modal .close {
        top: 6px;
        right: 6px;
        width: 30px;
        height: 30px;
        font-size: .9rem
    }

    #sugerenciaModal>#formularioSugerencia>div:first-child i.fa-solid.fa-link {
        font-size: 1.8rem
    }

    #sugerenciaModal textarea {
        min-height: 80px
    }

    #submitSugerencia {
        height: auto;
        min-height: 44px
    }

    /* Notification center en móviles */
    .notification-center {
        right: var(--space-sm);
        left: var(--space-sm);
        width: auto;
        top: 60px;
        max-height: calc(100vh - 100px)
    }

    .notification-list {
        max-height: calc(100vh - 150px)
    }
}

input[type=search]::-webkit-search-cancel-button {
    display: none
}

input[type=search]::-moz-search-clear-button {
    display: none
}

input[type=search]::-ms-clear {
    display: none
}

.modal-btn i {
    display: none !important
}

.fa-solid,
.fa-regular,
.fa-brands {
    display: inline-block;
    line-height: 1;
    vertical-align: -.125em
}

.modal .close {
    z-index: 1060 !important
}

a.active {
    color: var(--primary);
}
