/* Wako Leads - Rediseño Moderno 2024 */

/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Nueva paleta de colores moderna */
    --primary: #6366F1;          /* Indigo vibrante */
    --primary-dark: #4F46E5;     /* Indigo oscuro */
    --primary-light: #EEF2FF;    /* Indigo muy claro */
    --secondary: #0F172A;        /* Azul oscuro casi negro */
    --accent: #EC4899;           /* Rosa vibrante */
    --success: #10B981;          /* Verde esmeralda */
    --warning: #F59E0B;          /* Ámbar */
    --danger: #EF4444;           /* Rojo */
    --info: #3B82F6;             /* Azul */
    --light: #F9FAFB;            /* Gris muy claro */
    --dark: #1E293B;             /* Azul oscuro */
    --gray: #64748B;             /* Gris medio */
    --gray-light: #E2E8F0;       /* Gris claro */
    --white: #FFFFFF;            /* Blanco */

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #6366F1, #8B5CF6);
    --gradient-accent: linear-gradient(135deg, #EC4899, #F43F5E);
    --gradient-success: linear-gradient(135deg, #10B981, #059669);

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Bordes */
    --radius-sm: 0.375rem; /* Ajustado */
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Tipografía */
    --font-family: 'Poppins', system-ui, -apple-system, sans-serif;

    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #F1F5F9; /* Fondo ligeramente más oscuro */
    color: var(--secondary);
    line-height: 1.6;
    font-weight: 400;
    font-size: 0.95rem;
    padding-top: 0 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    padding: 2.5rem 0; /* Más padding vertical */
}

/* Contenedor principal con diseño moderno */
main.container {
    background-color: transparent;
    padding: 0 1rem; /* Padding horizontal para pantallas pequeñas */
    max-width: 1280px; /* Un poco más ancho */
    margin: 0 auto;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    line-height: 1.3;
}

h1 { font-size: 2rem; } /* Ligeramente más pequeño */
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

/* Colores de texto */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-info { color: var(--info) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--gray) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.6) !important; } /* Mejor contraste */

/* Navbar completamente rediseñada */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow);
    padding: 0.75rem 2rem; /* Más compacto */
    position: sticky; /* Fijar navbar */
    top: 0;
    z-index: 1030; /* Encima de otros elementos */
    border: none;
}

.navbar-dark {
    background: var(--gradient-primary) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.375rem; /* Ajustado */
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-dark .navbar-brand {
    color: var(--white) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.6rem 1.1rem !important; /* Ajustado */
    border-radius: var(--radius-full);
    margin: 0 0.25rem;
    transition: var(--transition);
    font-size: 0.9rem; /* Ajustado */
}

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

.nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary) !important;
    transform: translateY(-1px); /* Más sutil */
}

.navbar-dark .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
}

.nav-link.active {
    background-color: var(--primary);
    color: var(--white) !important;
}

.navbar-dark .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white) !important;
}

/* Dropdown moderno */
.dropdown-menu {
    border: 1px solid var(--gray-light); /* Borde sutil */
    border-radius: var(--radius-md); /* Más redondeado */
    box-shadow: var(--shadow-lg); /* Sombra más pronunciada */
    padding: 0.75rem;
    min-width: 14rem;
    margin-top: 0.75rem;
}

.dropdown-menu-dark {
    background-color: var(--dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    padding: 0.6rem 1.2rem; /* Ajustado */
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.dropdown-menu-dark .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}

/* Tarjetas con diseño flotante */
.card {
    border: 1px solid var(--gray-light); /* Borde sutil */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); /* Sombra más sutil por defecto */
    transition: var(--transition);
    margin-bottom: 2rem;
    overflow: hidden;
    background-color: var(--white);
}

.card:hover {
    box-shadow: var(--shadow-md); /* Sombra más notable al pasar el ratón */
    transform: translateY(-3px); /* Elevación sutil */
}

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-light);
    font-weight: 600;
    padding: 1rem 1.5rem; /* Ajustado */
}

.card-body {
    padding: 1.75rem;
}

.card-footer {
    background-color: var(--light); /* Fondo ligeramente diferente */
    border-top: 1px solid var(--gray-light);
    padding: 1rem 1.5rem; /* Ajustado */
}

/* Formularios modernos */
.form-control, .form-select {
    padding: 0.65rem 1rem; /* Más compacto */
    border: 1px solid var(--gray-light); /* Borde más fino */
    border-radius: var(--radius); /* Redondez estándar */
    transition: var(--transition);
    background-color: var(--white);
    font-size: 0.9rem;
    padding-left: 10px !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); /* Sombra de foco más sutil */
    outline: none;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--secondary);
    font-size: 0.85rem; /* Más pequeño */
}

.form-text {
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

/* Botones completamente rediseñados */
.btn {
    font-weight: 500;
    padding: 0.65rem 1.3rem; /* Más compacto */
    border-radius: var(--radius); /* Redondez estándar */
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    opacity: 0;
    border-radius: inherit;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:hover::before {
    transform: scale(1);
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-info {
    background-color: var(--info);
    color: white;
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-outline-primary {
    border: 1px solid var(--primary); /* Borde más fino */
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

/* Alertas rediseñadas */
.alert {
    border: none;
    border-left: 4px solid; /* Borde izquierdo distintivo */
    border-radius: var(--radius-sm); /* Menos redondeado */
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.08);
    color: #047857; /* Tono más oscuro */
    border-color: var(--success);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.08);
    color: #b91c1c; /* Tono más oscuro */
    border-color: var(--danger);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.08);
    color: #b45309; /* Tono más oscuro */
    border-color: var(--warning);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.08);
    color: #1d4ed8; /* Tono más oscuro */
    border-color: var(--info);
}

/* Tablas modernas */
.table {
    width: 100%;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    vertical-align: middle; /* Alinear verticalmente al centro */
    border-color: var(--gray-light);
}

.table-responsive {
    border-radius: var(--radius-md); /* Más redondeado */
    box-shadow: none; /* Quitar sombra, ya está en la card */
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
}

.table th {
    font-weight: 500; /* Más ligero */
    padding: 0.8rem 1rem; /* Más compacto */
    background-color: var(--light); /* Fondo ligero */
    text-transform: uppercase;
    font-size: 0.7rem; /* Más pequeño */
    letter-spacing: 0.05em;
    color: var(--gray);
    border-bottom: 2px solid var(--gray-light); /* Borde inferior más grueso */
}

.table td {
    padding: 0.9rem 1rem; /* Ajustado */
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: var(--primary-light);
}

/* Página de login/registro rediseñada */
.auth-container {
display: flex
;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background-image: url(../img/fondoauth.jpg);
    background-size: cover;
        padding-top: 20px;
    padding-bottom: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background-color: var(--white);
    position: relative;
}

.auth-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    background: var(--gradient-primary);
    color: white;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.auth-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.auth-body {
    padding: 2.5rem 2rem;
}

.auth-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    background-color: rgba(241, 245, 249, 0.5);
    border-top: 1px solid var(--gray-light);
}

/* Footer moderno */
.footer {
    background-color: var(--white);
    padding: 2rem 0;
    border-top: 1px solid var(--gray-light);
    margin-top: auto;
}

/* Utilidades adicionales */
.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-3px);
}

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

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

/* Estilos para badges */
.badge {
    padding: 0.4em 0.7em; /* Más compacto */
    font-weight: 500;
    border-radius: var(--radius-full);
    font-size: 0.7rem; /* Más pequeño */
}

.badge-primary {
    background-color: var(--primary);
    color: white;
}

.badge-success {
    background-color: var(--success);
    color: white;
}

.badge-warning {
    background-color: var(--warning);
    color: white;
}

.badge-danger {
    background-color: var(--danger);
    color: white;
}

/* Fondos de colores claros para badges */
.bg-primary-light {
    background-color: var(--primary-light);
}

.bg-success-light {
    background-color: rgba(16, 185, 129, 0.1);
}

.bg-warning-light {
    background-color: rgba(245, 158, 11, 0.1);
}

.bg-danger-light {
    background-color: rgba(239, 68, 68, 0.1);
}

.bg-info-light {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Estilos para estado */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
}

.status-badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.status-badge-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.status-badge i {
    margin-right: 0.35rem;
    font-size: 0.7rem;
}

/* Estilos para métricas (Obsoleto - Usar metric-card-modern) */
.metric-card {
    /* Mantener por si se usa en otro lado, pero priorizar modern */
    text-align: center;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow);
    background-color: var(--white);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.metric-card .metric-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-card .metric-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-card .metric-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.metric-card .metric-trend {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
}

.metric-card .metric-trend.positive {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.metric-card .metric-trend.negative {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Estilos para enlaces de copia */
.copy-link-container {
    display: flex;
    background-color: var(--light); /* Fondo más claro */
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-light);
}

.copy-link-input {
    flex-grow: 1;
    border: none;
    padding: 0.8rem 1rem;
    background: transparent;
    color: var(--secondary);
    font-size: 0.9rem;
}

.copy-link-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

.copy-link-button:hover {
    background: var(--primary-dark);
}

/* Estilos para las nuevas tarjetas de métricas modernas */
.metric-card-modern {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem; /* Reducido ligeramente */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    height: 100%; /* Asegurar altura consistente */
}

.metric-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.metric-icon-bg {
    width: 40px; /* Tamaño original */
    height: 40px;
    border-radius: var(--radius); /* Redondez estándar */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem; /* Menos espacio */
    font-size: 1.2rem; /* Ligeramente más pequeño */
}

.metric-value-modern {
    font-size: 1.75rem; /* Ajustado */
    font-weight: 600;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 0.2rem; /* Menos espacio inferior */
}

.metric-label-modern {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray);
}

/* Estilo especial para la tarjeta de total ganado */
.metric-card-modern.bg-primary {
    background: var(--primary); /* Color sólido en lugar de gradiente */
    color: var(--white);
}

.metric-card-modern.bg-primary .metric-value-modern {
    color: var(--white);
}

.metric-card-modern.bg-primary .metric-label-modern {
    color: rgba(255, 255, 255, 0.8); /* Mayor opacidad */
}

.metric-card-modern.bg-primary .metric-icon-bg {
    background-color: rgba(255, 255, 255, 0.15); /* Más sutil */
    color: var(--white);
}

/* Estilos para la tabla moderna */
.modern-table thead th {
    background-color: var(--light);
    border-bottom: 1px solid var(--gray-light); /* Borde más fino */
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem; /* Consistente */
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.modern-table tbody tr {
    transition: background-color 0.2s ease;
}

.modern-table tbody tr:hover {
    background-color: var(--primary-light) !important; /* Usar !important si Bootstrap interfiere */
}

.modern-table td {
    border-bottom: 1px solid var(--gray-light);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    font-size: 0.9rem;
    vertical-align: middle; /* Asegurar alineación vertical */
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* Estilos para visualización de DNI */
.dni-image-container {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
    position: relative;
}

.dni-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    object-fit: cover;
    max-height: 300px;
}

.dni-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
}

.dni-image-container:hover .dni-image {
    transform: scale(1.05);
}

.dni-image-container:hover .dni-image-overlay {
    opacity: 1;
}

/* Estilos para filas seleccionables y panel de acciones */
.user-row {
    transition: all 0.2s ease;
}

.user-row:hover {
    background-color: var(--primary-light);
}

.table-hover-custom {
    background-color: rgba(99, 102, 241, 0.05);
}

.table-primary {
    background-color: rgba(99, 102, 241, 0.15) !important;
}

#userActionPanel {
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
}

#userActionPanel.d-none {
    opacity: 0;
    transform: translateY(-10px);
}

#userActionPanel:not(.d-none) {
    opacity: 1;
    transform: translateY(0);
}

/* Mejoras para la tabla de usuarios */
#usersTable {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: var(--shadow-sm);
}

#usersTable thead th {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    border-bottom: none;
    padding: 1rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

#usersTable tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--gray-light);
}

#usersTable tbody tr:last-child {
    border-bottom: none;
}

#usersTable tbody tr:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

#usersTable td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

/* Estilos para el modal de DNI */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--gray-light);
    padding: 1rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-light);
    padding: 1rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.25rem;
}

/* Mejoras para los botones de acción */
.btn-group-sm .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-group-sm .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Ajustes generales para el dashboard */
.bg-light-subtle {
    background-color: #f8fafc !important; /* Asegura que se aplique */
}

.border-light {
    border-color: var(--gray-light) !important;
}

.bg-secondary-subtle {
    background-color: #e2e8f0 !important;
}

.text-secondary-emphasis {
    color: #475569 !important;
}

/* Estilos para el filtro de fecha */
.date-filter-card .card-body {
    padding: 0.75rem 1rem !important; /* Ajustado */
}

.date-filter-card .form-label {
    font-size: 0.75rem; /* Más pequeño */
    margin-bottom: 0.25rem;
}

.date-filter-card .form-select-sm {
    font-size: 0.85rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.date-filter-card .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    height: calc(1.5em + 0.8rem + 2px); /* Alinear altura con selects */
    display: flex;
    align-items: center;
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .navbar {
        padding: 0.75rem 1.5rem;
    }
    main.container {
        max-width: 95%;
    }
    .metric-value-modern {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .auth-container {

    padding: 4%;
}

    main.container {
 
    max-width: 95% !important;
   
}

.lead {
    font-size: 1rem;
    font-weight: 300;
}

.blockquote {
    margin-bottom: 1rem;
    font-size: 1rem;
}
.strategy-step {

    padding: 1rem;

}

    .step-content {
        padding: 1rem !important    ;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .auth-body {
        padding: 2rem 1.5rem;
    }
    
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .metric-card {
        padding: 1.5rem;
    }
    
    .metric-card .metric-value {
        font-size: 2.5rem;
    }
}

.onboarding-container {
    padding: 1rem;
}

/* Barra de progreso lateral - Mejorada */
.progress-sidebar {
    position: sticky;
    top: 90px;
    padding: 2rem 1rem;
    height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.progress-steps {
    position: relative;
    padding-left: 1.5rem;
    height: 100%;
}

.progress-line {
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--gray-light);
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 4px;
}

.progress-line-active {
    position: absolute;
    left: 1.5rem;
    top: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    z-index: 2;
    border-radius: 4px;
    height: 0;
    transition: height 0.5s ease;
}

.step-item {
    position: relative;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    z-index: 3;
    transition: all 0.4s ease;
    opacity: 0.6;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.step-item:hover {
    opacity: 0.9;
    transform: translateX(5px);
}

.step-item.active {
    opacity: 1;
}

.step-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--light);
    border: 2px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--gray);
    margin-left: -1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.step-item.active .step-circle {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
    transform: scale(1.1);
}

.step-text {
    margin-left: 1rem;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1.05rem;
}

.step-item.active .step-text {
    color: var(--primary);
    font-weight: 700;
}

/* Tarjetas de pasos */
.step-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition);
}

.step-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.step-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: white;
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.step-header h2 {
    margin-bottom: 0;
    color: white;
    font-size: 1.5rem;
}

.step-content {
    padding: 2rem;
}

/* Listas personalizadas */
.custom-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-list li {
    display: flex;
    margin-bottom: 1.5rem;
}

.list-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.list-content h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

/* Estrategia */
.strategy-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.strategy-step {
    display: flex;
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.strategy-step:hover {
    background-color: var(--primary-light);
    transform: translateX(5px);
}

.strategy-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.strategy-content h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

/* Referidos */
.referral-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.referral-step {
    display: flex;
    align-items: flex-start;
}

.referral-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
    box-shadow: var(--shadow-sm);
}

.referral-content h5 {
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

.feature-image {
    position: relative;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.percentage-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--gradient-accent);
    color: white;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow);
}

/* Buenas prácticas */
.best-practice-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.best-practice-item:hover {
    background-color: var(--primary-light);
}

.practice-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 1rem;
    box-shadow: var(--shadow-sm);
}

.practice-content h5 {
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 991.98px) {
    .step-header {
        padding: 1.25rem;
    }
    
    .step-content {
        padding: 1.5rem;
    }
    
    .strategy-step,
    .referral-step,
    .best-practice-item {
        flex-direction: column;
    }
    
    .strategy-icon,
    .referral-icon,
    .practice-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }