/* public/styles/corporate-theme.css
 * Temas visuales oficiales por vertical de SOSQR:
 *  - Educativo (default sin clase): Azul institucional (#005a9c / #0284c7)
 *  - .theme-corporativo: Ámbar / Dorado Industrial (#d97706 / #f59e0b / #b45309)
 *  - .theme-hogar: Verde Esmeralda (#059669 / #10b981 / #047857)
 */

/* ===================== VERTICAL SWITCHER (SUPER ADMIN) ===================== */
.vertical-switcher-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.06);
    padding: 5px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    flex-wrap: wrap;
}

.vertical-switch-pill {
    border: none;
    background: transparent;
    color: #475569;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.vertical-switch-pill:hover {
    background: rgba(255, 255, 255, 0.75);
    color: #0f172a;
}

.vertical-switch-pill.active[data-vertical="educativo"] {
    background: linear-gradient(135deg, #005a9c 0%, #0284c7 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 90, 156, 0.3);
}

.vertical-switch-pill.active[data-vertical="corporativo"] {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
}

.vertical-switch-pill.active[data-vertical="hogar"] {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
}

/* ===================== TEMA CORPORATIVO (#d97706 / #f59e0b / #b45309) ===================== */
body.theme-corporativo {
    --brand-primary: #d97706;
    --brand-primary-dark: #b45309;
    --brand-accent: #f59e0b;
    --brand-gold: #f59e0b;
    --primary: #d97706;
    --primary-dark: #b45309;
    --accent: #f59e0b;
    --sos-blue: #d97706;
    --sos-blue-dark: #b45309;
    --sos-border: rgba(217, 119, 6, 0.24);
    background: radial-gradient(circle at 12% 18%, rgba(245, 158, 11, 0.13) 0%, #fffbeb 42%, #f8fafc 100%) !important;
}

body.theme-corporativo .branding-bar {
    border-top: 3px solid #d97706 !important;
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.65) 0%, rgba(255, 255, 255, 0.96) 55%) !important;
}

body.theme-corporativo .premium-header {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%) !important;
    border: 1px solid rgba(217, 119, 6, 0.25) !important;
    border-bottom: 3px solid #f59e0b !important;
    box-shadow: 0 10px 25px -8px rgba(217, 119, 6, 0.16) !important;
}

body.theme-corporativo .stat-widget.premium-card,
body.theme-corporativo .kpi-card.info {
    border-top: 3px solid #d97706 !important;
}

body.theme-corporativo .stat-value {
    color: #b45309;
}

body.theme-corporativo #saveAndGenerateInviteBtn,
body.theme-corporativo .btn-action-primary,
body.theme-corporativo #openNewInstitutionModalBtn,
body.theme-corporativo #openNewInstitutionModalBtn2,
body.theme-corporativo #requestTokensBtn {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    border-color: #b45309 !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28) !important;
}

body.theme-corporativo #openAssignAdminModalBtn,
body.theme-corporativo #openAssignAdminModalBtnTop,
body.theme-corporativo #verifyLocationBtn {
    color: #b45309 !important;
    border-color: rgba(217, 119, 6, 0.55) !important;
    background: rgba(254, 243, 199, 0.45) !important;
}

body.theme-corporativo #silentModeToggleBtn,
body.theme-corporativo #locationInfoBox {
    border-color: rgba(217, 119, 6, 0.3) !important;
    background: rgba(254, 243, 199, 0.35) !important;
}

body.theme-corporativo .header-glass {
    border-bottom: 2px solid #f59e0b !important;
}

body.theme-corporativo .filters-sidebar {
    border-right: 1px solid rgba(217, 119, 6, 0.2) !important;
}

body.theme-corporativo .btn-filter.active {
    background: #d97706 !important;
    border-color: #b45309 !important;
    color: #fff !important;
}

body.theme-corporativo.page-dark-bg,
body.theme-corporativo:has(.student-card),
body.theme-corporativo:has(.onboarding-card) {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #451a03 100%) !important;
}

body.theme-corporativo:has(#activateEmergencyBtn) {
    background-color: #fffbeb !important;
    background-image: linear-gradient(135deg, #fef3c7 0%, #fffbeb 50%, #fafaf9 100%) !important;
}

body.theme-corporativo .header,
body.theme-corporativo .dashboard-header,
body.theme-corporativo .top-bar,
body.theme-corporativo .premium-header {
    border-bottom: 2px solid #f59e0b !important;
}

body.theme-corporativo .header-badge {
    background: rgba(245, 158, 11, 0.16) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #fde68a !important;
}

body.theme-corporativo #brandQrAccent {
    color: #fbbf24 !important;
}

body.theme-corporativo .btn-submit,
body.theme-corporativo .btn-primary,
body.theme-corporativo .btn-premium-primary,
body.theme-corporativo .tab-button.active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28) !important;
}

body.theme-corporativo .btn-submit:hover,
body.theme-corporativo .btn-primary:hover,
body.theme-corporativo .btn-premium-primary:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%) !important;
}

body.theme-corporativo .tab-button:hover {
    background: rgba(217, 119, 6, 0.08) !important;
    color: #b45309 !important;
}

body.theme-corporativo table th {
    color: #b45309 !important;
}

body.theme-corporativo table tr:hover {
    background: rgba(245, 158, 11, 0.04) !important;
}

body.theme-corporativo .section-title {
    color: #b45309 !important;
    border-color: rgba(217, 119, 6, 0.25) !important;
}

body.theme-corporativo .mode-card:hover,
body.theme-corporativo .custom-input:focus,
body.theme-corporativo .custom-select:focus,
body.theme-corporativo .custom-textarea:focus,
body.theme-corporativo .premium-input:focus {
    border-color: #d97706 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16) !important;
}

body.theme-corporativo .medical-card-header {
    background: linear-gradient(135deg, #1e293b 0%, #92400e 100%) !important;
}

body.theme-corporativo .report-toggle-btn {
    border-color: rgba(217, 119, 6, 0.3) !important;
    color: #92400e !important;
    background: rgba(255, 251, 235, 0.9) !important;
}

body.theme-corporativo .corp-badge-pill,
body.theme-corporativo #corpModePill {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.45);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

/* ===================== TEMA HOGAR (#059669 / #10b981 / #047857) ===================== */
body.theme-hogar {
    --brand-primary: #059669;
    --brand-primary-dark: #047857;
    --brand-accent: #10b981;
    --brand-gold: #10b981;
    --primary: #059669;
    --primary-dark: #047857;
    --accent: #10b981;
    --sos-blue: #059669;
    --sos-blue-dark: #047857;
    --sos-border: rgba(5, 150, 105, 0.24);
    background: radial-gradient(circle at 12% 18%, rgba(16, 185, 129, 0.13) 0%, #ecfdf5 42%, #f8fafc 100%) !important;
}

body.theme-hogar .branding-bar {
    border-top: 3px solid #059669 !important;
    background: linear-gradient(90deg, rgba(209, 250, 229, 0.65) 0%, rgba(255, 255, 255, 0.96) 55%) !important;
}

body.theme-hogar .premium-header {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%) !important;
    border: 1px solid rgba(5, 150, 105, 0.25) !important;
    border-bottom: 3px solid #10b981 !important;
    box-shadow: 0 10px 25px -8px rgba(5, 150, 105, 0.16) !important;
}

body.theme-hogar .stat-widget.premium-card,
body.theme-hogar .kpi-card.info {
    border-top: 3px solid #059669 !important;
}

body.theme-hogar .stat-value {
    color: #047857;
}

body.theme-hogar #saveAndGenerateInviteBtn,
body.theme-hogar .btn-action-primary,
body.theme-hogar #openNewInstitutionModalBtn,
body.theme-hogar #openNewInstitutionModalBtn2,
body.theme-hogar #requestTokensBtn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    border-color: #047857 !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28) !important;
}

body.theme-hogar #openAssignAdminModalBtn,
body.theme-hogar #openAssignAdminModalBtnTop,
body.theme-hogar #verifyLocationBtn {
    color: #047857 !important;
    border-color: rgba(5, 150, 105, 0.55) !important;
    background: rgba(209, 250, 229, 0.45) !important;
}

body.theme-hogar #silentModeToggleBtn,
body.theme-hogar #locationInfoBox {
    border-color: rgba(5, 150, 105, 0.3) !important;
    background: rgba(209, 250, 229, 0.35) !important;
}

body.theme-hogar .header-glass {
    border-bottom: 2px solid #10b981 !important;
}

body.theme-hogar .filters-sidebar {
    border-right: 1px solid rgba(5, 150, 105, 0.2) !important;
}

body.theme-hogar .btn-filter.active {
    background: #059669 !important;
    border-color: #047857 !important;
    color: #fff !important;
}

body.theme-hogar.page-dark-bg,
body.theme-hogar:has(.student-card),
body.theme-hogar:has(.onboarding-card) {
    background: linear-gradient(135deg, #064e3b 0%, #0f172a 55%, #047857 100%) !important;
}

body.theme-hogar:has(#activateEmergencyBtn) {
    background-color: #ecfdf5 !important;
    background-image: linear-gradient(135deg, #dcfce7 0%, #ecfdf5 50%, #f4f7f9 100%) !important;
}

body.theme-hogar .header,
body.theme-hogar .dashboard-header,
body.theme-hogar .top-bar,
body.theme-hogar .premium-header {
    border-bottom: 2px solid #10b981 !important;
}

body.theme-hogar .header-badge {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    color: #a7f3d0 !important;
}

body.theme-hogar #brandQrAccent {
    color: #34d399 !important;
}

body.theme-hogar .btn-submit,
body.theme-hogar .btn-primary,
body.theme-hogar .btn-premium-primary,
body.theme-hogar .tab-button.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #047857 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28) !important;
}

body.theme-hogar .btn-submit:hover,
body.theme-hogar .btn-primary:hover,
body.theme-hogar .btn-premium-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
}

body.theme-hogar .tab-button:hover {
    background: rgba(5, 150, 105, 0.08) !important;
    color: #047857 !important;
}

body.theme-hogar table th {
    color: #047857 !important;
}

body.theme-hogar table tr:hover {
    background: rgba(16, 185, 129, 0.04) !important;
}

body.theme-hogar .section-title {
    color: #047857 !important;
    border-color: rgba(5, 150, 105, 0.25) !important;
}

body.theme-hogar .mode-card:hover,
body.theme-hogar .custom-input:focus,
body.theme-hogar .custom-select:focus,
body.theme-hogar .custom-textarea:focus,
body.theme-hogar .premium-input:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.16) !important;
}

body.theme-hogar .medical-card-header {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%) !important;
}

body.theme-hogar .report-toggle-btn {
    border-color: rgba(5, 150, 105, 0.3) !important;
    color: #065f46 !important;
    background: rgba(236, 253, 245, 0.9) !important;
}

body.theme-hogar .corp-badge-pill,
body.theme-hogar #corpModePill {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.45);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}
