/* Estilos personalizados para IntraNET — Paleta Visual IQ */

:root {
    /* Paleta Visual IQ (variables.css del proyecto principal) */
    --primary-color:   #6fa388;
    --primary-hover:   #5a8a6f;
    --primary-light:   #8bb8a0;
    --primary-dark:    #4a7a5f;
    --secondary-color: #2c3e50;
    --accent-color:    #eeeeee;
    --success-color:   #198754;
    --info-color:      #0dcaf0;
    --warning-color:   #8bb8a0;
    --danger-color:    #4a7a5f;
    --light-color:     #f8f9fa;
    --dark-color:      #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Margen superior del contenido debajo de la barra fija (sb-nav-fixed) */
.main-content-top {
    padding-top: 2rem;
}

/* Panel de administración integrado en el layout */
.admin-inner {
    padding-bottom: 2rem;
}
.admin-inner .breadcrumbs {
    margin-bottom: 1rem;
}

/* Navbar personalizada */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Cards personalizadas */
.card {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    font-weight: 600;
}

/* Botones personalizados */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Reporte cards — hereda estilos de .dc-card */
.reporte-card {
    transition: all 0.28s ease;
}

/* Dashboard específico */
.dashboard-header {
    background: linear-gradient(135deg, #6fa388 0%, #4a7a5f 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border-bottom: 4px solid #8bb8a0;
}

/* Áreas de trabajo */
.area-header {
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 1.5rem;
    margin-bottom: 0;
}

.area-content {
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .dashboard-header {
        padding: 1.5rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #6fa388;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a8a6f;
}

/* PowerBI iframe styling */
.embed-responsive-16by9 {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Alert styling */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Login page specific */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #6fa388 0%, #4a7a5f 100%);
}

/* Profile page */
.profile-card {
    border-left: 4px solid var(--primary-color);
}

.info-card {
    border-left: 4px solid var(--info-color);
}

.success-card {
    border-left: 4px solid var(--success-color);
}

/* ========================================
   BOOTSTRAP 5 — OVERRIDES PALETA CLIENTE
   ======================================== */

/* Tokens de color primario — Visual IQ */
:root {
    --bs-primary:              #6fa388;
    --bs-primary-rgb:          111, 163, 136;
    --bs-link-color:           #6fa388;
    --bs-link-hover-color:     #5a8a6f;
    --bs-link-color-rgb:       111, 163, 136;
    --bs-link-hover-color-rgb: 90, 138, 111;
    --bs-warning:              #8bb8a0;
    --bs-warning-rgb:          139, 184, 160;
}

/* btn-primary */
.btn-primary {
    --bs-btn-bg:                    #6fa388;
    --bs-btn-border-color:          #6fa388;
    --bs-btn-hover-bg:              #5a8a6f;
    --bs-btn-hover-border-color:    #5a8a6f;
    --bs-btn-active-bg:             #4a7a5f;
    --bs-btn-active-border-color:   #4a7a5f;
    --bs-btn-disabled-bg:           #6fa388;
    --bs-btn-disabled-border-color: #6fa388;
}

/* btn-outline-primary */
.btn-outline-primary {
    --bs-btn-color:              #6fa388;
    --bs-btn-border-color:       #6fa388;
    --bs-btn-hover-bg:           #6fa388;
    --bs-btn-hover-border-color: #6fa388;
    --bs-btn-active-bg:          #6fa388;
    --bs-btn-active-border-color:#6fa388;
}

/* Utilidades de color */
.bg-primary    { background-color: #6fa388 !important; }
.text-primary  { color: #6fa388 !important; }
.border-primary{ border-color: #6fa388 !important; }
.link-primary  { color: #6fa388 !important; }

/* Login portal — gradiente Visual IQ */
body.bg-primary {
    background: linear-gradient(135deg, #6fa388 0%, #4a7a5f 100%) !important;
}

/* ========================================
   HOME PAGE — CORPORATIVO OSCURO
   ======================================== */

body.home-dark {
    background: #2c3e50 !important;
    min-height: 100vh;
    font-family: var(--font-body), sans-serif;
}

body.home-dark h1,
body.home-dark h2,
body.home-dark h3,
body.home-dark h4,
body.home-dark h5,
body.home-dark h6 {
    font-family: var(--font-heading), serif;
}

body.home-dark #layoutAuthentication {
    background: #2c3e50;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.home-dark #layoutAuthentication_content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.home-dark #layoutAuthentication_content main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

body.home-dark #layoutAuthentication_footer footer {
    background: transparent !important;
    border: none !important;
}

/* Contenedor centrado */
.home-dark-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 1rem;
}

/* Logo */
.home-logo {
    max-width: 200px;
    max-height: 72px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.home-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #8bb8a0;
    margin-bottom: 0.75rem;
}

/* Línea decorativa */
.home-divider {
    border: none;
    border-top: 2px solid #8bb8a0;
    width: 56px;
    margin: 0.5rem auto 0.75rem;
    opacity: 1;
}

/* Tagline */
.home-tagline {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* Card de login */
.home-login-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(139, 184, 160, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.home-login-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-login-accent {
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #6fa388;
    border-radius: 2px;
    flex-shrink: 0;
}

.home-login-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.75rem 0 1.5rem;
    opacity: 1;
}

/* Inputs oscuros */
.home-dark-input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    border-radius: 8px !important;
}

.home-dark-input:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #8bb8a0 !important;
    box-shadow: 0 0 0 3px rgba(139, 184, 160, 0.25) !important;
    color: #fff !important;
}

/* Labels del form-floating en modo oscuro */
body.home-dark .form-floating > label {
    color: rgba(255, 255, 255, 0.45);
}

body.home-dark .form-floating > .form-control:focus ~ label,
body.home-dark .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: rgba(139, 184, 160, 0.9);
}

/* Botón de login */
.btn-login {
    background: #6fa388 !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease !important;
}

.btn-login:hover {
    background: #5a8a6f !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 163, 136, 0.4) !important;
}

.btn-login:active {
    transform: translateY(0) !important;
}

/* Texto acceso seguro */
.home-secure-text {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
}

/* Footer del home oscuro */
.home-footer-text {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.55s ease forwards;
}

/* Animación escalonada para los form-floating dentro de la card */
.home-login-card .form-floating:nth-child(1) {
    opacity: 0;
    animation: fadeInUp 0.5s ease 0.3s forwards;
}

.home-login-card .form-floating:nth-child(2) {
    opacity: 0;
    animation: fadeInUp 0.5s ease 0.42s forwards;
}

/* Formularios — focus ring Visual IQ */
.form-control:focus,
.form-select:focus {
    border-color: #6fa388;
    box-shadow: 0 0 0 0.25rem rgba(111, 163, 136, 0.25);
}

/* Checkboxes / radio marcados */
.form-check-input:checked {
    background-color: #6fa388;
    border-color:     #6fa388;
}

/* Pagination activa */
.page-item.active .page-link {
    background-color: #6fa388;
    border-color:     #6fa388;
}
.page-link {
    color: #6fa388;
}
.page-link:hover {
    color: #5a8a6f;
}

/* Nav pills/tabs activos */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #6fa388;
}
.nav-tabs .nav-link.active {
    color: #6fa388;
    border-bottom-color: #6fa388;
}

/* ========================================
   TOPNAV — Paleta Visual IQ
   ======================================== */
.sb-topnav {
    background-color: #2c3e50 !important;
    border-bottom: 3px solid #8bb8a0 !important;
}

/* Botón del sidebar: mismo tono que botones de perfil (dc-btn-back) */
.sb-topnav #sidebarToggle {
    color: rgba(255, 255, 255, 0.65) !important;
}

.sb-topnav #sidebarToggle:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Dropdown del usuario en la navbar — tema oscuro corporativo */
.sb-topnav .dropdown-menu {
    background: #242424;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.35rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sb-topnav .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.sb-topnav .dropdown-item:hover,
.sb-topnav .dropdown-item:focus {
    background: rgba(139, 184, 160, 0.15);
    color: #8bb8a0;
}

.sb-topnav .dropdown-item i {
    opacity: 0.8;
}

.sb-topnav .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.35rem 0;
}

.sb-topnav .dropdown-menu button.dropdown-item {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.sb-topnav .dropdown-menu form {
    margin: 0;
}

/* ========================================
   SIDEBAR — Overrides paleta corporativa
   ======================================== */

/* Fondo unificado con el contenido */
.sb-sidenav-dark {
    background-color: #2c3e50 !important;
}

/* Separador sutil entre sidebar y contenido */
#layoutSidenav_nav {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

/* Headings del sidebar */
.sb-sidenav-dark .sb-sidenav-menu-heading {
    color: #8bb8a0 !important;
    font-family: var(--font-body), sans-serif;
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
}

/* Links del sidebar con fuente corporativa */
.sb-sidenav-dark .sb-sidenav-menu .nav-link {
    font-family: var(--font-body), sans-serif;
    font-size: 0.875rem;
}

/* Link hover */
.sb-sidenav-dark .nav-link:hover {
    background-color: rgba(139, 184, 160, 0.12) !important;
}
.sb-sidenav-dark .nav-link:hover .sb-nav-link-icon {
    color: #8bb8a0 !important;
}

/* Link activo */
.sb-sidenav-dark .nav-link.active {
    background-color: rgba(139, 184, 160, 0.15) !important;
    border-left: 3px solid #8bb8a0 !important;
    color: #fff !important;
}
.sb-sidenav-dark .nav-link.active .sb-nav-link-icon {
    color: #8bb8a0 !important;
}

/* Sidebar footer */
.sb-sidenav-dark .sb-sidenav-footer {
    background-color: #1a252f !important;
    border-top: 1px solid rgba(111, 163, 136, 0.3) !important;
    font-family: var(--font-body), sans-serif;
    font-size: 0.8rem;
}

/* ========================================
   FOOTER — Solo aplica al footer del login (no autenticado)
   ======================================== */
#layoutAuthentication_footer footer {
    background: transparent !important;
    border: none !important;
}

/* === BREADCRUMB — Paleta Visual IQ === */
.breadcrumb-item a {
    color: #6fa388;
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-item a:hover {
    color: #5a8a6f;
    text-decoration: underline;
}
.breadcrumb-item.active {
    color: #6c757d;
}


/* ========================================
   TIPOGRAFÍA CORPORATIVA — Syne + Outfit
   ======================================== */

:root {
    --font-heading: 'Bree Serif', Georgia, serif;
    --font-body:    'Titillium Web', 'Segoe UI', sans-serif;
}

/* Aplicar tipografía y fondo a toda la UI autenticada */
body.sb-nav-fixed {
    font-family: var(--font-body), sans-serif;
    background-color: #2c3e50;
}

/* Bree Serif para todos los headings */
body.sb-nav-fixed h1,
body.sb-nav-fixed h2,
body.sb-nav-fixed h3,
body.sb-nav-fixed h4,
body.sb-nav-fixed h5,
body.sb-nav-fixed h6,
body.sb-nav-fixed .h1,
body.sb-nav-fixed .h2,
body.sb-nav-fixed .h3,
body.sb-nav-fixed .h4,
body.sb-nav-fixed .h5,
body.sb-nav-fixed .h6 {
    font-family: var(--font-heading), serif;
}

/* Bree Serif en navbar brand */
.navbar-brand {
    font-family: var(--font-heading), serif;
}

/* ========================================
   DARK CONTENT AREA — Opción A (Unificado)
   ======================================== */

#layoutSidenav_content {
    background-color: #2c3e50;
}

#layoutSidenav_content > main {
    background-color: #2c3e50;
    color: rgba(255, 255, 255, 0.87);
}

/* ========================================
   DC-CARD — Dark card corporativa
   ======================================== */

.dc-card {
    background: #242424 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.87) !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.dc-card .card-title {
    font-family: var(--font-heading), sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92) !important;
}

.dc-card .text-muted {
    color: rgba(255, 255, 255, 0.4) !important;
}

.dc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5),
                0 0 0 1px color-mix(in srgb, var(--card-color, #8bb8a0) 40%, transparent) !important;
    border-color: color-mix(in srgb, var(--card-color, #8bb8a0) 30%, transparent) !important;
}

/* ========================================
   DC-ICON-CIRCLE — Icono con glow en hover
   ======================================== */

.dc-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: box-shadow 0.28s ease;
}

.dc-card:hover .dc-icon-circle {
    box-shadow: 0 0 18px color-mix(in srgb, var(--card-color, #8bb8a0) 55%, transparent);
}

/* ========================================
   DC-PAGE-HEADER — Header del dashboard
   ======================================== */

.dc-page-header {
    background: rgba(111, 163, 136, 0.08);
    border: 1px solid rgba(111, 163, 136, 0.2);
    border-left: 4px solid #6fa388;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dc-page-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 184, 160, 0.05));
    pointer-events: none;
}

.dc-page-header-greeting {
    font-family: var(--font-heading), sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.2rem;
}

.dc-page-header-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.02em;
}

.dc-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.32rem 0.75rem;
    border-radius: 20px;
    background: rgba(139, 184, 160, 0.15);
    border: 1px solid rgba(139, 184, 160, 0.35);
    color: #8bb8a0;
}

.dc-role-badge.admin {
    background: rgba(111, 163, 136, 0.2);
    border-color: rgba(111, 163, 136, 0.4);
    color: #8bb8a0;
}

/* ========================================
   DC-SECTION-TITLE — Título de sección
   ======================================== */

.dc-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading), sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 1.25rem;
}

.dc-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #6fa388;
    border-radius: 2px;
    flex-shrink: 0;
}

.dc-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

/* ========================================
   DC-AREA-HEADER — Header de área de trabajo
   ======================================== */

.dc-area-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--area-color, #6fa388);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
}

.dc-area-title {
    font-family: var(--font-heading), sans-serif;
    font-weight: 700;
    font-size: 1.45rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.15rem;
}

.dc-area-desc {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.38);
}

/* Botón volver dark */
.dc-btn-back {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.65) !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.dc-btn-back:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-1px);
}

/* Botón de reporte en cards (paleta Visual IQ) */
.dc-btn-report {
    background: #6fa388 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.dc-btn-report:hover {
    background: #5a8a6f !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ========================================
   DC-BREADCRUMB — Breadcrumb oscuro
   ======================================== */

.dc-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.25);
}

.dc-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.4);
}

.dc-breadcrumb .dc-link-accent {
    color: #6fa388 !important;
    text-decoration: none;
}

.dc-breadcrumb .dc-link-accent:hover {
    color: #8bb8a0 !important;
}

/* Iconos de acento (paleta Visual IQ) */
.dc-icon-accent,
.dc-page-header-sub .dc-icon-accent,
.dc-area-header .dc-icon-accent {
    color: #6fa388 !important;
}

/* ========================================
   DC-EMPTY-STATE — Estado vacío (paleta Visual IQ)
   ======================================== */

.dc-empty-state {
    background: #242424 !important;
    border: 1px solid rgba(111, 163, 136, 0.2) !important;
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.dc-empty-state .dc-empty-state-icon {
    font-size: 3.5rem;
    color: rgba(111, 163, 136, 0.35);
}

.dc-empty-state .dc-empty-state-title {
    font-family: var(--font-heading), serif;
    color: rgba(255, 255, 255, 0.6) !important;
}

.dc-empty-state .dc-empty-state-text {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ========================================
   STAGGER ANIMATION — Entrada escalonada
   ======================================== */

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

.dc-card-animated {
    opacity: 0;
    animation: dcCardIn 0.4s ease forwards;
}

.dc-card-animated:nth-child(1)  { animation-delay: 0.05s; }
.dc-card-animated:nth-child(2)  { animation-delay: 0.10s; }
.dc-card-animated:nth-child(3)  { animation-delay: 0.15s; }
.dc-card-animated:nth-child(4)  { animation-delay: 0.20s; }
.dc-card-animated:nth-child(5)  { animation-delay: 0.25s; }
.dc-card-animated:nth-child(6)  { animation-delay: 0.30s; }
.dc-card-animated:nth-child(7)  { animation-delay: 0.35s; }
.dc-card-animated:nth-child(8)  { animation-delay: 0.40s; }
.dc-card-animated:nth-child(9)  { animation-delay: 0.45s; }
.dc-card-animated:nth-child(n+10) { animation-delay: 0.50s; }

/* Animación de entrada del header */
.dc-page-header,
.dc-area-header {
    opacity: 0;
    animation: dcCardIn 0.4s ease 0.02s forwards;
}

.dc-section-title {
    opacity: 0;
    animation: dcCardIn 0.35s ease 0.06s forwards;
}

/* ========================================
   DC-DETAIL — Panel de detalles del reporte
   ======================================== */

/* dc-card estática (sin hover) en el panel de detalles */
.dc-card[style*="pointer-events: none"] {
    transition: none !important;
}

.dc-card[style*="pointer-events: none"]:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.dc-detail-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
}

/* ========================================
   DC-CARD-HEADER — Cabecera de card con acento
   ======================================== */

.dc-card-header {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-left: 4px solid var(--dc-header-accent, #6fa388);
    border-radius: 10px 10px 0 0;
}

.dc-card-header .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92) !important;
}

.dc-card-header--accent {
    --dc-header-accent: #8bb8a0;
}

/* ========================================
   DC-CARD-STATIC — Card sin hover (perfil, etc.)
   ======================================== */

.dc-card-static {
    transition: none !important;
}

.dc-card-static:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ========================================
   DC-CARD — Inputs y labels en contexto oscuro
   ======================================== */

.dc-card .form-label {
    color: rgba(255, 255, 255, 0.65);
}

.dc-card .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.dc-card .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #6fa388;
    box-shadow: 0 0 0 0.25rem rgba(111, 163, 136, 0.25);
    color: #fff;
}

.dc-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   DC-BADGE — Badges corporativos (perfil)
   ======================================== */

.dc-badge-active {
    background: rgba(139, 184, 160, 0.2);
    border: 1px solid rgba(139, 184, 160, 0.4);
    color: #8bb8a0;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.dc-badge-inactive {
    background: rgba(74, 122, 95, 0.2);
    border: 1px solid rgba(74, 122, 95, 0.4);
    color: #8bb8a0;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.dc-icon-accent {
    color: #8bb8a0;
}
