#app-container { display: none; }

/* PANTALLA LOGIN */
#login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    color: #333;
}

.login-card h2 {
    margin-bottom: 10px;
    color: #1e3c72;
}

.login-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.login-card input {
    text-transform: none !important;
}

.error-msg {
    color: #dc3545;
    margin-top: 15px;
    font-size: 14px;
    display: none;
}

/* HEADER & NAVEGACIÓN */
header {
    background-color: var(--header-bg);
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.brand-area h1 { 
    margin: 0; 
    font-size: 22px; 
    font-weight: 900; 
    color: #0F3A66; 
    letter-spacing: 0.5px;
}


.brand-area span { font-size: 11px; color: #555; }

nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
}

nav a:hover, nav a.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.08);
}

.user-info { display: flex; align-items: center; gap: 15px; }
.main-content { padding: 30px; max-width: 1250px; margin: 0 auto; }

/* SECCIONES PRINCIPALES */
.section-view { display: none; }
.section-view.active { display: block; }

/* ESTRUCTURA DE AJUSTES */
.ajustes-layout {
    display: flex;
    gap: 30px;
    background: transparent;
    margin-top: 15px;
}

.ajustes-sidebar {
    width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 15px 0;
    height: fit-content;
}

.ajustes-sidebar-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

.ajustes-sidebar-item:hover, .ajustes-sidebar-item.active {
    background-color: #f8f9fa;
    color: #d9534f;
    border-left-color: #d9534f;
}

.ajustes-content-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 30px;
    color: #333;
}

.ajustes-subview { display: none; }
.ajustes-subview.active { display: block; }

.tema-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
}
.tema-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.tema-card.selected {
    border-color: #28a745;
    background-color: #f8fff9;
}
.tema-preview-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.archivos-subnav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.archivos-tab-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
}

.archivos-tab-btn:hover, .archivos-tab-btn.active {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

.archivo-section { display: none; }
.archivo-section.active { display: block; }