/*
 * 1. Restablecimiento Básico (Reset)
 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    /* Es crucial que el body y html ocupen toda la altura de la ventana */
    height: 100%;
    font-family: Arial, sans-serif;
}

/*
 * 2. Estructura Principal (Flexbox)
 */
.app-wrapper {
    /* Hace que el contenedor principal ocupe toda la altura */
    display: flex;
    flex-direction: column; /* Organiza los hijos verticalmente */
    min-height: 100vh; /* Asegura la altura mínima de la ventana */
}

/* Fijar el navbar en la parte superior */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* Asegura que esté por encima de otros elementos */
    width: 100%;
}

/* Ajustar el contenedor principal para dejar espacio al navbar fijo */
.app-wrapper {
    padding-top: 56px; /* Altura aproximada del navbar */
}

/* Notification bar / toast-like stack */
.flash-stack {
    position: fixed;
    top: 68px; /* ligeramente debajo del navbar fijo */
    right: 16px;
    width: calc(100% - 32px);
    max-width: 420px;
    z-index: 2000;
}

.flash-stack .alert {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .flash-stack {
        top: 72px;
        right: 24px;
        width: 360px;
    }
}

/*
 * 4. Área de Contenido (Scrollable)
 */
.content-scrollable {
    /* Ocupa todo el espacio vertical restante */
    flex-grow: 1; 
    
    /* Esta es la propiedad MÁS IMPORTANTE: Permite el scroll solo aquí */
    overflow-y: auto; 
    
    /* Mantiene el contenido en una sola columna */
    overflow-x: hidden; 
    
    /* Para debug, puedes poner un color de fondo */
    background-color: #f4f4f4; 
    
    /* Asegura que haya espacio para el footer fijo */
    padding-bottom: 100px;
}

/* * 5. El Contenedor interno (para centrar y dar padding) 
 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0; /* Padding vertical, el scroll está en .content-scrollable */
}

/* Tabla responsive wrapper */
.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
}

.table-responsive-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-responsive-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}



/* Estilos para el formulario de login */
.card-body {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Footer Fijo */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1020; /* Debajo del navbar pero encima del contenido */
    margin-top: auto;
}

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

.form-control-lg {
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    display: block;
    margin-top: .25rem;
}

/* === Login Page Enhancement === */
html.login, body.login {
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body.login {
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    background-color: #f4f6f9; /* Un color de fondo suave */
}

/* El .col-md-6 ya limita el ancho, pero podemos asegurar un max-width */
.login-form-container {
    max-width: 420px;
    width: 100%;
}

.card.login-card {
    border: none; /* Quitar borde por defecto */
    border-radius: 10px; /* Bordes más redondeados */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Sombra más profesional */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card.login-card .card-body {
    padding: 2.5rem; /* Espaciado interno generoso */
}

.card.login-card h2 {
    text-align: center;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.card.login-card p {
    text-align: center;
    color: #6c757d; /* Un gris estándar */
    margin-bottom: 2rem;
}

.form-group label {
    font-weight: 600;
    color: #555;
}

.form-control-lg {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

.form-control-lg:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.btn-success.btn-block {
    background: linear-gradient(45deg, #28a745, #218838);
    border: none;
    border-radius: 5px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-success.btn-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

.tablero-activo-select {
    width: 100%;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.42rem 2.2rem 0.42rem 0.75rem;
    border: 1px solid #b9c8da;
    border-radius: 0.5rem;
    background-color: #fff;
    background-image:
        linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='%23475a72' d='M3.2 5.7a.75.75 0 0 1 1.06 0L8 9.44l3.74-3.74a.75.75 0 1 1 1.06 1.06L8.53 11.03a.75.75 0 0 1-1.06 0L3.2 6.76a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    color: #1f2a37;
    font-weight: 500;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: auto, 0.72rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.tablero-activo-select:focus {
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.tablero-activo-select:hover,
.tablero-select-enhanced:hover {
    border-color: #8eaad1;
}

.tablero-activo-select:disabled,
.tablero-select-enhanced:disabled {
    background-image: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
    border-color: #d1d5db;
    box-shadow: none;
    cursor: not-allowed;
}

.tablero-select-enhanced {
    border-radius: 0.55rem;
    border: 1px solid #b9c8da;
    background-image:
        linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='%23475a72' d='M3.2 5.7a.75.75 0 0 1 1.06 0L8 9.44l3.74-3.74a.75.75 0 1 1 1.06 1.06L8.53 11.03a.75.75 0 0 1-1.06 0L3.2 6.76a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    color: #1f2a37;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right 0.72rem center;
    background-size: auto, 0.72rem;
    padding-right: 2rem;
}

.tablero-select-enhanced:focus {
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

/* Estilos visuales del tablero (columnas y tarjetas) */
.tablero-interactive-shell {
    position: relative;
    --tablero-sync-size: 12px;
    --tablero-card-list-height: min(560px, calc(100vh - 280px));
    --tablero-edge-size: 24px;
    width: 100%;
    max-width: 100%;
}

.tablero-content-band {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.tablero-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.tablero-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    width: 100%;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 0.45rem;
}

.tablero-viewport::-webkit-scrollbar {
    display: none;
}

.tablero-scroll-sync {
    background: #edf1f6;
    border: 1px solid #d3dce7;
    border-radius: 999px;
    scrollbar-color: #9aa8b8 #edf1f6;
}

.tablero-scroll-sync-x {
    overflow-x: auto;
    overflow-y: hidden;
    height: var(--tablero-sync-size);
    margin-bottom: 0.45rem;
}

.tablero-scroll-sync--bottom {
    margin-top: 0.45rem;
    margin-bottom: 0;
}

.tablero-scroll-sync-y {
    display: none;
}

.tablero-scroll-sync-inner-x {
    height: 1px;
}

.tablero-scroll-sync-inner-y {
    width: 1px;
}

.tablero-scroll-sync::-webkit-scrollbar {
    width: var(--tablero-sync-size);
    height: var(--tablero-sync-size);
}

.tablero-scroll-sync::-webkit-scrollbar-thumb {
    background: #9aa8b8;
    border-radius: 999px;
}

.tablero-scroll-sync::-webkit-scrollbar-track {
    background: #edf1f6;
    border-radius: 999px;
}

.tablero-edge-zone {
    position: absolute;
    z-index: 25;
    top: calc(var(--tablero-sync-size) + 0.5rem);
    bottom: calc(var(--tablero-sync-size) + 0.5rem);
    width: var(--tablero-edge-size);
    background: rgba(108, 117, 125, 0.36);
    border-radius: 8px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tablero-edge-zone--left {
    left: calc(-1 * var(--tablero-edge-size) - 8px);
}

.tablero-edge-zone--right {
    right: calc(-1 * var(--tablero-edge-size) - 8px);
}

.tablero-edge-zone:hover {
    background: rgba(108, 117, 125, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    cursor: ew-resize;
}

.tablero-edge-zone--left::before {
    content: '<';
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 37, 41, 0.55);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.tablero-edge-zone--right::before {
    content: '>';
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 37, 41, 0.55);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.tablero-columns {
    gap: 5px !important;
    width: max-content;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .tablero-interactive-shell {
        --tablero-card-list-height: min(420px, calc(100vh - 250px));
        --tablero-edge-size: 18px;
    }
}

.tablero-columna {
    width: min(320px, calc(100vw - 4rem));
    min-width: min(320px, calc(100vw - 4rem));
    max-width: min(320px, calc(100vw - 4rem));
    border: 2px solid #8b5a2b;
    box-shadow: 0 3px 10px rgba(90, 58, 34, 0.2);
    display: flex;
    flex-direction: column;
}

.tablero-columna .card-header {
    flex: 0 0 auto;
}

.tablero-columna .tablero-card-list {
    flex: 1 1 auto;
    max-height: var(--tablero-card-list-height);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #9aa8b8 #eef2f7;
    overscroll-behavior: contain;
}

.tablero-columna .tablero-card-list::-webkit-scrollbar {
    width: 9px;
}

.tablero-columna .tablero-card-list::-webkit-scrollbar-thumb {
    background: #9aa8b8;
    border-radius: 999px;
}

.tablero-columna .tablero-card-list::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 999px;
}

@media (max-width: 576px) {
    .tablero-columna {
        width: min(320px, calc(100vw - 2.5rem));
        min-width: min(320px, calc(100vw - 2.5rem));
        max-width: min(320px, calc(100vw - 2.5rem));
    }

    .tablero-scroll-sync-x {
        height: 10px;
    }
}

.tablero-tarjeta {
    border: 2px solid #111 !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
    border-radius: 0.45rem;
}

.tablero-tarjeta--completada {
    border-color: #198754 !important;
    box-shadow: 0 8px 18px rgba(25, 135, 84, 0.22);
}

.tablero-tarjeta--archivada {
    opacity: 0.6;
    border-color: #ffc107 !important;
    background-color: #fffdf0 !important;
    box-shadow: none;
}

.tablero-tarjeta--archivada .card-title::before {
    content: '\f118\00a0';
    font-family: 'Bootstrap Icons';
    font-size: 0.85em;
    color: #e6a817;
}

.tarjeta-completado-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid #d7dde4;
    border-radius: 0.45rem;
    background: #f8fafc;
}

.tarjeta-completado-wrapper {
    cursor: pointer;
}

.tarjeta-completado-wrapper .form-check-input {
    margin-top: 0;
}

.tarjeta-completado-modal-control {
    background: #f8fafc;
    border-color: #d7dde4 !important;
}

.detalle-timer-display--editable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.detalle-timer-display--editable:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(122, 75, 0, 0.22);
}

.tarjeta-modal-config-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    gap: 0.9rem;
}

.tarjeta-modal-panel {
    border: 1px solid #d9dee5;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
    padding: 1rem;
}

.tarjeta-modal-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.tarjeta-modal-panel__title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f2d3d;
}

.tarjeta-modal-panel__hint {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.45;
}

.tarjeta-modal-switch {
    padding: 0.8rem 0.95rem;
    border: 1px solid #d7dde4;
    border-radius: 0.65rem;
    background: #fff;
}

.tarjeta-modal-switch .form-check-input {
    margin-top: 0.15rem;
}

.tarjeta-etiquetas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.tarjeta-etiqueta-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d7dde4;
    border-radius: 0.7rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tarjeta-etiqueta-option:hover {
    border-color: #9db7d1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.tarjeta-etiqueta-option input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
}

.tarjeta-etiqueta-option span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.tarjeta-tiempo-box {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tarjeta-tiempo-idle {
    background-color: #f1f3f5;
    border-color: #d3d8de !important;
}

.tarjeta-tiempo-running {
    background-color: #ffe1bf;
    border-color: #f2a654 !important;
}

.tarjeta-tiempo-box .timer-status-label {
    letter-spacing: 0.02em;
}

.tarjeta-tiempo-idle .timer-status-label,
.tarjeta-tiempo-idle .timer-display {
    color: #495057 !important;
}

.tarjeta-tiempo-running .timer-status-label,
.tarjeta-tiempo-running .timer-display {
    color: #9a5200 !important;
}

.tablero-nav-tabs {
    align-items: center;
}

.tablero-nav-tabs .nav-link {
    border: 1px solid #ced4da;
    background: #f8f9fa;
    color: #495057;
    border-radius: 0.35rem;
    padding: 0.35rem 0.75rem;
    line-height: 1.2;
}

.tablero-nav-tabs .nav-link:hover {
    background: #eef2f6;
    border-color: #b7c0c9;
}

.tablero-nav-tabs .nav-link.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0a58ca;
    box-shadow: none;
}

.reporte-tabla-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #212529;
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.modal-tarjeta-meta-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.modal-tarjeta-meta-item {
    border: 1px solid #d9dee5;
    border-radius: 0.4rem;
    background: #f8fafc;
    padding: 0.45rem 0.55rem;
    min-height: 58px;
}

.modal-tarjeta-meta-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.modal-tarjeta-meta-item-etiquetas .text-muted {
    width: 100%;
}

.dashboard-tablero-toolbar,
.dashboard-panel,
.dashboard-kpi-card,
.dashboard-tablero-hero {
    border: 1px solid rgba(32, 75, 87, 0.12);
    box-shadow: 0 14px 34px rgba(32, 40, 54, 0.08);
}

.dashboard-tablero-toolbar {
    background: linear-gradient(180deg, #ffffff 0%, #f5f1ea 100%);
}

.dashboard-tablero-description {
    min-height: calc(1.5em + 0.75rem + 2px);
}

.dashboard-tablero-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background:
        radial-gradient(circle at top right, rgba(209, 123, 73, 0.25), transparent 28%),
        radial-gradient(circle at bottom left, rgba(78, 125, 119, 0.22), transparent 24%),
        linear-gradient(135deg, #17313d 0%, #204b57 38%, #f0e2d0 100%);
    color: #fff;
}

.dashboard-tablero-hero::after {
    content: '';
    position: absolute;
    inset: auto -90px -110px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-tablero-hero__content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
}

.dashboard-tablero-kicker,
.dashboard-panel__eyebrow {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-tablero-kicker {
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-tablero-title {
    margin: 0;
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.05;
}

.dashboard-tablero-subtitle {
    max-width: 700px;
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.84);
}

.dashboard-tablero-hero__meta {
    min-width: 240px;
    display: grid;
    gap: 0.75rem;
}

.dashboard-meta-pill {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.85rem;
    background: rgba(8, 24, 34, 0.22);
    backdrop-filter: blur(6px);
    padding: 0.85rem 1rem;
}

.dashboard-meta-pill span {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.72);
}

.dashboard-meta-pill strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.05rem;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-kpi-card {
    min-height: 168px;
    border-radius: 1rem;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-kpi-card--sand {
    background: linear-gradient(180deg, #fffaf3 0%, #f0dfca 100%);
    color: #62482b;
}

.dashboard-kpi-card--ink {
    background: linear-gradient(180deg, #203946 0%, #142730 100%);
    color: #edf4f6;
}

.dashboard-kpi-card--mint {
    background: linear-gradient(180deg, #eef7f4 0%, #cfe7de 100%);
    color: #1d4d43;
}

.dashboard-kpi-card--ember {
    background: linear-gradient(180deg, #fff4ed 0%, #f4d1bd 100%);
    color: #7f451f;
}

.dashboard-kpi-card--sea {
    background: linear-gradient(180deg, #edf7fb 0%, #cee6f1 100%);
    color: #18546d;
}

.dashboard-kpi-card--plum {
    background: linear-gradient(180deg, #f6eef7 0%, #e2cfe7 100%);
    color: #5f3b67;
}

.dashboard-kpi-card--bottleneck {
    background: linear-gradient(180deg, #fffdf8 0%, #f6efe1 100%);
    color: #4d4639;
}

.dashboard-kpi-grid--summary {
    grid-template-columns: 1fr;
}

.dashboard-kpi-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.dashboard-kpi-value {
    display: block;
    margin: 0.45rem 0 0.25rem;
    font-size: clamp(1.8rem, 2vw, 2.35rem);
    line-height: 1.05;
}

.dashboard-kpi-meta {
    font-size: 0.86rem;
    opacity: 0.82;
}

.dashboard-semaforo-resumen {
    margin-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.dashboard-semaforo-pill,
.dashboard-semaforo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.75rem;
}

.dashboard-semaforo-pill .dot,
.dashboard-semaforo-badge .dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
}

.dashboard-semaforo-pill--red,
.dashboard-semaforo-badge--red {
    background: #fbe5e7;
    color: #a01616;
    border-color: #f0bfc5;
}

.dashboard-semaforo-pill--red .dot,
.dashboard-semaforo-badge--red .dot {
    background: #d62828;
}

.dashboard-semaforo-pill--yellow,
.dashboard-semaforo-badge--yellow {
    background: #fff4de;
    color: #8a5a00;
    border-color: #f4d8a1;
}

.dashboard-semaforo-pill--yellow .dot,
.dashboard-semaforo-badge--yellow .dot {
    background: #f08c00;
}

.dashboard-semaforo-pill--green,
.dashboard-semaforo-badge--green {
    background: #e8f7ed;
    color: #1c6e38;
    border-color: #bfe5cd;
}

.dashboard-semaforo-pill--green .dot,
.dashboard-semaforo-badge--green .dot {
    background: #2f9e44;
}

.dashboard-panel {
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.dashboard-panel__header {
    background: transparent;
    border-bottom: 1px solid rgba(32, 75, 87, 0.08);
    padding: 1.15rem 1.2rem 0.7rem;
}

.dashboard-panel__eyebrow {
    color: #916544;
}

.dashboard-panel__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #21313c;
}

.dashboard-progress-list,
.dashboard-list-group {
    display: grid;
    gap: 0.85rem;
}

.dashboard-progress-row,
.dashboard-list-group__item {
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(32, 75, 87, 0.08);
    border-radius: 0.85rem;
    background: #fbfcfd;
}

.dashboard-progress-row__head,
.dashboard-progress-row__meta,
.dashboard-list-group__item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.dashboard-progress-row__head {
    margin-bottom: 0.55rem;
    font-weight: 700;
    color: #243843;
}

.dashboard-progress-row__meta {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: #6a757d;
}

.dashboard-progress-bar {
    height: 0.7rem;
    border-radius: 999px;
    background: #e7edf0;
}

.dashboard-progress-bar .progress-bar {
    border-radius: 999px;
}

.dashboard-table thead th {
    border-top: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b747b;
    background: #f8fafb;
}

.dashboard-table tbody td {
    vertical-align: middle;
}

.dashboard-soft-badge {
    border: 1px solid transparent;
}

@media (max-width: 1399.98px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dashboard-tablero-hero__content {
        flex-direction: column;
    }

    .dashboard-tablero-hero__meta {
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .dashboard-kpi-grid,
    .dashboard-tablero-hero__meta {
        grid-template-columns: 1fr;
    }

    .dashboard-progress-row__head,
    .dashboard-progress-row__meta,
    .dashboard-list-group__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-kpi-card {
        min-height: 146px;
    }
}

@media (max-width: 991.98px) {
    .tarjeta-modal-config-grid {
        grid-template-columns: 1fr;
    }

    .modal-tarjeta-meta-row {
        grid-template-columns: 1fr;
    }

    .modal-tarjeta-meta-item {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .tarjeta-modal-panel {
        padding: 0.85rem;
    }

    .tarjeta-etiquetas-grid {
        grid-template-columns: 1fr;
    }

    .tarjeta-etiqueta-option {
        min-height: 48px;
        padding: 0.7rem 0.8rem;
    }
}

.tablero-calendar-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 1rem;
}

.tablero-calendar-detail {
    border: 0;
    background: linear-gradient(180deg, #102a43 0%, #0b1827 100%);
    color: #f7fbff;
}

.tablero-calendar-kicker {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.tablero-calendar-date-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 0.65rem;
}

.tablero-calendar-date-subtitle {
    font-size: 0.88rem;
    opacity: 0.88;
}

.tablero-calendar-day-events .list-group-item {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #f7fbff;
}

.tablero-calendar-day-events .list-group-item .text-muted {
    color: rgba(230, 239, 245, 0.85) !important;
}

.tablero-calendar-main {
    border: 0;
    box-shadow: 0 10px 24px rgba(20, 40, 60, 0.08);
    overflow: hidden;
}

.tablero-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.tablero-calendar-month {
    font-size: 1.12rem;
    font-weight: 700;
    color: #1d2f45;
}

.tablero-calendar-year {
    font-size: 0.86rem;
    color: #5f6f7f;
}

.tablero-calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
}

.tablero-calendar-daynames div {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    color: #697786;
}

.tablero-calendar-day {
    min-height: calc(28px + (var(--lane-count, 3) * 20px));
    border: 1px solid #e7edf3;
    border-radius: 0.75rem;
    padding: 0.5rem;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    min-width: 0;
    overflow: hidden;
}

.tablero-calendar-day:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(24, 44, 62, 0.08);
}

.tablero-calendar-day.is-selected {
    border-color: #1d72b8;
    box-shadow: 0 0 0 2px rgba(29, 114, 184, 0.15);
}

.tablero-calendar-day--pad {
    pointer-events: none;
    border: 0;
    background: transparent;
}

.tablero-calendar-day__number {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2a3d4e;
}

.tablero-calendar-day__badges {
    margin-top: 0.45rem;
    display: grid;
    grid-template-rows: repeat(var(--lane-count, 3), 18px);
    gap: 0.14rem;
}

.tablero-calendar-line {
    border: 0;
    width: 100%;
    min-height: 18px;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    background: #4a7ea8;
}

.tablero-calendar-line:hover {
    filter: brightness(0.96);
}

.tablero-calendar-line__label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.tablero-calendar-line.line-start {
    background: #2f9e44;
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.tablero-calendar-line.line-middle {
    background: #4a7ea8;
    border-radius: 0;
}

.tablero-calendar-line.line-end {
    background: #d62828;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.tablero-calendar-line.line-single {
    background: linear-gradient(90deg, #2f9e44 0%, #d62828 100%);
    border-radius: 999px;
}

.tablero-calendar-line.tablero-calendar-line--empty {
    background: transparent;
    border: 0;
    pointer-events: none;
    padding: 0;
}

.tablero-calendar-chip {
    border: 0;
    border-radius: 999px;
    font-size: 0.68rem;
    line-height: 1;
    padding: 0.3rem 0.48rem;
    text-align: center;
    font-weight: 700;
}

.tablero-calendar-chip.chip-start {
    background: #d9fbe4;
    color: #0c7136;
}

.tablero-calendar-chip.chip-end {
    background: #ffe1df;
    color: #ad1f1a;
}

.tablero-calendar-chip.chip-range {
    background: #dfefff;
    color: #165f9d;
}

.tablero-calendar-chip.chip-more {
    background: #eff3f6;
    color: #4a5a69;
}

.tablero-calendar-legend {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    .tablero-calendar-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .tablero-calendar-grid {
        gap: 0.25rem;
    }

    .tablero-calendar-day {
        min-height: calc(24px + (var(--lane-count, 3) * 18px));
        padding: 0.38rem;
    }

    .tablero-calendar-chip {
        font-size: 0.62rem;
        padding: 0.24rem 0.42rem;
    }

    .tablero-calendar-line {
        min-height: 16px;
        font-size: 0.56rem;
        padding: 0 0.25rem;
    }
}

/* Estilos CSS personalizados */
.calendar-container {
    max-width: 400px;
    margin: 50px auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.calendar-header {
    text-align: center;
    margin-bottom: 15px;
}
.calendar-header h2 {
    font-weight: bold;
    font-size: 1.8rem;
}
.month-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}
.month-navigation h3 {
    margin: 0 20px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #007bff;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
}
.day-name {
    padding: 10px 5px;
    font-weight: bold;
    background-color: #f8f9fa;
}
/* Estilo para sombrear fines de semana */

.day-cell {
    padding: 10px 5px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    color: #333;
}
.day-cell.weekend {
    background-color: #f5f5f5; /* Un gris muy suave */
    border-radius: 0; /* Aseguramos que el fondo gris llene el cuadrado */
}
.day-cell:hover:not(.text-muted) {
    background-color: #f0f0f0;
    border-radius: 50%;
}
.day-cell.selected {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
}
.day-cell.has-activity {
    
}
.day-cell.text-muted {
    color: #ccc !important;
    cursor: default;
}
.day-cell.out-of-range {
    background-color: #f0e6e6;
    color: #999;
    cursor: not-allowed !important;
    opacity: 0.6;
    position: relative;
}
.day-cell.out-of-range:hover {
    background-color: #f0e6e6 !important;
}
.day-cell.out-of-range::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #dc3545;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.current-day {
    background-color: #e2f0ff;
    font-weight: bold;
    color: #007bff;
    border-radius: 50%;
    margin: 5px;
}
.prev-month, .next-month {
    cursor: pointer;
}

.activity-dot {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    z-index: 10;
}
/* Definición de colores para los estados (debe coincidir con actividades/index) */
.dot-Completada { background-color: #28a745; /* green */ }
.dot-EnProgreso { background-color: #ffc107; /* yellow */ }
.dot-Cancelada { background-color: #dc3545; /* red */ }
.dot-Pendiente { background-color: #6c757d; /* gray */ }

/* Estilos basados en la imagen proporcionada  */
    .calendar-layout-container {
        display: flex;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        min-height: 450px; /* Altura mínima para el diseño */
        margin-top: 50px;
    }
    /* Tarjeta Negra de Detalle */
    .calendar-detail-card {
        width: 35%;
        background-color: #000;
        color: white;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    /* Estilos basados en la imagen proporcionada  */
    .calendar-layout-container {
        display: flex;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        min-height: 450px; /* Altura mínima para el diseño */
        margin-top: 50px;
    }

    /* Tarjeta Negra de Detalle */
    .calendar-detail-card {
        width: 35%;
        background-color: #000;
        color: white;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .detail-day-number {
        font-size: 6rem;
        font-weight: 300;
        line-height: 1;
        margin: 0;
    }
    .detail-full-date {
        font-size: 1.2rem;
        opacity: 0.8;
    }
    .detail-activity-list {
        margin-top: 20px;
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
    }
    .detail-activity-item {
        border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
        padding: 8px 0;
        text-align: left;
    }

    /* Contenedor del Calendario Principal */
    .calendar-main-view {
        width: 65%;
        background-color: #fff;
        padding: 20px;
        font-family: Arial, sans-serif;
    }

/* ============================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ============================================ */

/* Tablets y pantallas medianas (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 15px 0;
    }
    
    .calendar-layout-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .calendar-detail-card {
        width: 100%;
        padding: 30px 20px;
        border-radius: 10px 10px 0 0;
    }
    
    .calendar-main-view {
        width: 100%;
        border-radius: 0 0 10px 10px;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Tablets pequeñas (600px - 768px) */
@media (max-width: 768px) {
    html, body {
        font-size: 14px;
    }
    
    .container {
        width: 98%;
        padding: 10px 0;
    }
    
    /* Ajustes de heading */
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    /* Filas responsive */
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Tablas con scroll horizontal */
    table {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    table thead th {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    table tbody td {
        padding: 0.5rem;
        word-break: break-word;
    }
    
    /* Botones más pequeños */
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn-block {
        display: block;
        width: 100%;
    }
    
    /* Formularios */
    .form-control {
        font-size: 16px; /* Prevenir zoom en iOS */
        padding: 0.5rem 0.75rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    /* Modales */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Buscador */
    .form-inline {
        flex-direction: column;
    }
    
    .input-group {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .input-group .form-control {
        width: 100%;
    }
    
    .input-group-append .btn {
        width: 100%;
        margin-top: 0.25rem;
    }
    
    /* Calendario */
    .calendar-container {
        max-width: 100%;
        margin: 20px auto;
        padding: 10px;
    }
    
    .calendar-header h2 {
        font-size: 1.3rem;
    }
    
    .month-navigation h3 {
        font-size: 0.9rem;
        margin: 0 10px;
    }
    
    .detail-day-number {
        font-size: 3rem;
    }
    
    .detail-full-date {
        font-size: 0.9rem;
    }
    
    /* Badges */
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Paginación */
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Móviles (< 600px) */
@media (max-width: 599px) {
    html, body {
        font-size: 13px;
    }
    
    .container {
        width: 100%;
        padding: 8px 0;
    }
    
    h1 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    /* Navegación bar */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }
    
    /* Encabezado de vistas */
    .row.mb-4 {
        flex-direction: column;
    }
    
    .row > [class*="col-"] {
        min-width: 100%;
        flex: 0 0 100%;
    }
    
    .text-right {
        text-align: left !important;
    }
    
    /* Tablas */
    .table {
        font-size: 0.75rem;
        margin-bottom: 0;
    }
    
    .table thead th {
        padding: 0.4rem 0.25rem;
        font-weight: 600;
    }
    
    .table tbody td {
        padding: 0.4rem 0.25rem;
    }
    
    /* Ocultar columnas en móvil si es necesario */
    .hide-on-mobile {
        display: none;
    }
    
    /* Botones */
    .btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.25rem;
        font-size: 0.65rem;
    }
    
    .btn-group, .btn-group-vertical {
        width: 100%;
    }
    
    /* Formularios */
    .form-control, .form-control-lg {
        font-size: 16px;
        padding: 0.5rem 0.5rem;
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
        display: block;
    }
    
    /* Filas de columnas */
    .row {
        margin-left: -4px;
        margin-right: -4px;
    }
    
    [class*="col-"] {
        padding-left: 4px;
        padding-right: 4px;
    }
    
    /* Asegurar que todos los col-md se conviertan a ancho completo en móvil */
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, 
    .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, 
    .col-md-11, .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Modales */
    .modal-dialog {
        margin: 5px;
        max-width: calc(100% - 10px);
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-title {
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 0.75rem;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .modal-footer {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    /* Cards */
    .card {
        border: 1px solid #dee2e6;
        border-radius: 8px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-header {
        padding: 0.5rem 0.75rem;
    }
    
    /* Input groups */
    .input-group {
        flex-wrap: wrap;
    }
    
    .input-group .form-control {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .input-group-append {
        width: 100%;
    }
    
    .input-group-append .btn {
        width: 100%;
    }
    
    /* Calendario */
    .calendar-container {
        max-width: 100%;
        margin: 10px 0;
        padding: 5px;
        border-radius: 8px;
    }
    
    .calendar-header h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .calendar-grid {
        gap: 2px;
    }
    
    .day-name {
        padding: 5px 2px;
        font-size: 0.7rem;
    }
    
    .day-cell {
        padding: 8px 2px;
        font-size: 0.75rem;
    }
    
    .detail-day-number {
        font-size: 2rem;
    }
    
    .detail-full-date {
        font-size: 0.75rem;
    }
    
    .detail-activity-list {
        max-height: 150px;
    }
    
    /* Badges */
    .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
    }
    
    /* Paginación */
    .pagination {
        flex-wrap: wrap;
        gap: 0.1rem;
    }
    
    .page-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Login */
    .login-form-container {
        max-width: 100%;
    }
    
    .card.login-card .card-body {
        padding: 1.5rem;
    }
    
    .card.login-card h2 {
        font-size: 1.2rem;
    }
    
    /* Utilities */
    .float-right {
        float: none !important;
        display: block;
        width: 100%;
    }
    
    .mx-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .text-center {
        text-align: center;
    }
}

/* ============================================================
 * ESTILOS DEL BREADCRUMB
 * ============================================================ */

.breadcrumb {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem !important;
}

.breadcrumb-item {
    font-size: 0.95rem;
    line-height: 1.6;
}

.breadcrumb-item a {
    color: #0d6efd;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #0b5ed7;
    text-decoration: underline !important;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb i {
    margin-right: 6px;
    font-size: 1rem;
}

/* ============================================================
 * ESTILOS DEL NAVBAR CON MENÚS DESPLEGABLES
 * ============================================================ */

/* Estilos del navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

/* Estilos para los enlaces del navbar */
.navbar-nav .nav-link {
    margin: 0 8px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: 600;
}

/* Estilos para los dropdowns */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #2c3e50;
    border-radius: 4px;
    padding: 0;
    min-width: 200px;
}

.navbar-nav .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: #34495e;
    color: #fff;
    border-left-color: #3498db;
    padding-left: 17px;
}

.navbar-nav .dropdown-menu .dropdown-item.active {
    background-color: #34495e;
    color: #fff;
    border-left-color: #2ecc71;
    padding-left: 17px;
}

.navbar-nav .dropdown-menu .dropdown-divider {
    background-color: #34495e;
    margin: 8px 0;
}

/* Iconos en el navbar */
.navbar-nav .nav-link i,
.navbar-nav .dropdown-menu .dropdown-item i {
    margin-right: 8px;
    font-size: 1rem;
}

/* Asegura que el dropdown toggle tenga el ícono de flecha */
.navbar-nav .dropdown-toggle::after {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* Rotación del ícono cuando el dropdown está abierto */
.navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Responsive: Dropdowns en mobile */
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        background-color: #1c3144;
        border-radius: 0;
        box-shadow: none;
    }
    
    .navbar-nav .dropdown-item {
        padding: 12px 20px;
        border-left: none;
        padding-left: 20px;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: #2c3e50;
        border-left: none;
        padding-left: 20px;
    }
}

/* Responsive: Ajustar padding del app-wrapper en dispositivos pequeños */
@media (max-width: 576px) {
    .app-wrapper {
        padding-top: 65px; /* Mayor espacio en móviles donde el navbar es más alto */
    }
    
    .content-scrollable {
        padding-bottom: 80px; /* Aumentar el padding para el footer en móviles */
    }
}