/* === Enhanced Feature Cards with Sparkles === */
.feature-icon-wrapper {
    position: relative;
    display: inline-block;
    padding: 0;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
}

.feature-icon-main {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    position: relative;
    z-index: 2;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0;
    font-size: 3rem;
}

.feature-card-hover:hover .feature-icon-main {
    transform: scale(1.15) rotate(15deg);
    filter: none;
}

/* Remove all circular backgrounds from icons */
.feature-icon-wrapper,
.feature-icon-main,
.rounded-circle,
.feature-icon-round,
.contact-icon-modern,
.auth-logo {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Override specific circular styles */
.contact-icon-modern {
    width: auto !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
    display: inline-block !important;
    font-size: 2rem !important;
}

/* SPARKLES CORREGIDOS - MÁS PUNTOS DORADOS ENCIMA DEL ÍCONO */
.feature-card-hover:hover .feature-icon-wrapper::before,
.feature-card-hover:hover .feature-icon-wrapper::after {
    content: "";
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffd700;
    border-radius: 50%;
    animation: sparkleFloat 1.8s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}

.feature-card-hover:hover .feature-icon-wrapper::before {
    top: 0px;
    right: 0px;
    animation-delay: 0s;
}

.feature-card-hover:hover .feature-icon-wrapper::after {
    bottom: 0px;
    left: 0px;
    animation-delay: 0.8s;
}

/* Sparkles adicionales usando gradientes radiales - MÁS CERCA */
.feature-card-hover:hover .feature-icon-wrapper {
    position: relative;
}

.feature-card-hover:hover .feature-icon-wrapper {
    --sparkle1: radial-gradient(circle at 10% 10%, #ffd700 1.5px, transparent 1.5px);
    --sparkle2: radial-gradient(circle at 90% 10%, #ffd700 1px, transparent 1px);
    --sparkle3: radial-gradient(circle at 10% 90%, #ffd700 1px, transparent 1px);
    --sparkle4: radial-gradient(circle at 90% 90%, #ffd700 1.5px, transparent 1.5px);
    --sparkle5: radial-gradient(circle at 50% 0%, #ffd700 1px, transparent 1px);
    --sparkle6: radial-gradient(circle at 0% 50%, #ffd700 1px, transparent 1px);
    --sparkle7: radial-gradient(circle at 100% 50%, #ffd700 1px, transparent 1px);
    --sparkle8: radial-gradient(circle at 50% 100%, #ffd700 1px, transparent 1px);
    background-image: var(--sparkle1), var(--sparkle2), var(--sparkle3), var(--sparkle4), var(--sparkle5), var(--sparkle6), var(--sparkle7), var(--sparkle8);
    background-size: 8px 8px;
    background-repeat: no-repeat;
    animation: sparkleMove 2s ease-in-out infinite;
}

/* Sparkles para modo oscuro - puntos blancos MÁS VISIBLES */
[data-bs-theme="dark"] .feature-card-hover:hover .feature-icon-wrapper::before,
[data-bs-theme="dark"] .feature-card-hover:hover .feature-icon-wrapper::after {
    background: #ffffff;
    box-shadow: 0 0 3px rgba(255,255,255,0.8);
}

[data-bs-theme="dark"] .feature-card-hover:hover .feature-icon-wrapper {
    --sparkle1: radial-gradient(circle at 10% 10%, #ffffff 1.5px, transparent 1.5px);
    --sparkle2: radial-gradient(circle at 90% 10%, #ffffff 1px, transparent 1px);
    --sparkle3: radial-gradient(circle at 10% 90%, #ffffff 1px, transparent 1px);
    --sparkle4: radial-gradient(circle at 90% 90%, #ffffff 1.5px, transparent 1.5px);
    --sparkle5: radial-gradient(circle at 50% 0%, #ffffff 1px, transparent 1px);
    --sparkle6: radial-gradient(circle at 0% 50%, #ffffff 1px, transparent 1px);
    --sparkle7: radial-gradient(circle at 100% 50%, #ffffff 1px, transparent 1px);
    --sparkle8: radial-gradient(circle at 50% 100%, #ffffff 1px, transparent 1px);
}

/* Animaciones mejoradas para puntos */
@keyframes sparkleFloat {
    0%, 100% {
        opacity: 0;
        transform: scale(0.3) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(1) translateY(-2px);
    }
}

@keyframes sparkleMove {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    25% {
        opacity: 1;
        transform: scale(1.05);
    }
    75% {
        opacity: 0.9;
        transform: scale(0.95);
    }
}

/* Color variations for different icons - no more same colors */
/* Healthcare/Medical icons - Red */
.feature-card-hover .bi-heart-pulse,
.feature-card-hover .bi-heart-pulse-fill,
.feature-card-hover .bi-activity {
    color: #dc3545 !important;
}

/* Emergency/Time icons - Orange */
.feature-card-hover .bi-clock,
.feature-card-hover .bi-clock-fill,
.feature-card-hover .bi-alarm,
.feature-card-hover .bi-stopwatch {
    color: #fd7e14 !important;
}

/* Pharmacy/Medicine icons - Blue (darker blue) */
.feature-card-hover .bi-capsule,
.feature-card-hover .bi-capsule-pill,
.feature-card-hover .bi-prescription,
.feature-card-hover .bi-bag-plus,
.feature-card-hover .bi-bag-plus-fill {
    color: #0056b3 !important;
}

/* Technology/Digital icons - Purple */
.feature-card-hover .bi-phone,
.feature-card-hover .bi-tablet,
.feature-card-hover .bi-laptop,
.feature-card-hover .bi-wifi,
.feature-card-hover .bi-router {
    color: #6f42c1 !important;
}

/* Quality/Certification icons - Green */
.feature-card-hover .bi-shield-check,
.feature-card-hover .bi-shield-fill-check,
.feature-card-hover .bi-award,
.feature-card-hover .bi-trophy {
    color: #198754 !important;
}

/* Location/Network icons - Teal */
.feature-card-hover .bi-geo-alt,
.feature-card-hover .bi-geo-alt-fill,
.feature-card-hover .bi-globe,
.feature-card-hover .bi-pin-map {
    color: #20c997 !important;
}

/* User/People icons - Indigo - EXCLUIR NAVBAR */
.feature-card-hover .bi-people,
.feature-card-hover .bi-people-fill,
.feature-card-hover .bi-person-check {
    color: #6610f2 !important;
}

/* EXCLUIR iconos del navbar de reglas de feature cards */
.feature-card-hover .bi-person-plus:not(.navbar .bi-person-plus) {
    color: #6610f2 !important;
}

/* Document/Data icons - Gray */
.feature-card-hover .bi-file-medical,
.feature-card-hover .bi-clipboard-data,
.feature-card-hover .bi-graph-up,
.feature-card-hover .bi-bar-chart {
    color: #6c757d !important;
}

/* Authentication logo exception - keep its own style */
.auth-logo {
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, #003366, #002244) !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Contact icons in footer - keep some styling but no circles */
.contact-icon-modern {
    color: #60a5fa !important;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.contact-item-modern:hover .contact-icon-modern {
    transform: scale(1.1) rotate(10deg);
    color: #3b82f6 !important;
}

/* Dark mode icon adjustments */
[data-bs-theme="dark"] .feature-card-hover .bi-heart-pulse,
[data-bs-theme="dark"] .feature-card-hover .bi-heart-pulse-fill,
[data-bs-theme="dark"] .feature-card-hover .bi-activity {
    color: #ff6b7a !important;
}

[data-bs-theme="dark"] .feature-card-hover .bi-clock,
[data-bs-theme="dark"] .feature-card-hover .bi-clock-fill,
[data-bs-theme="dark"] .feature-card-hover .bi-alarm,
[data-bs-theme="dark"] .feature-card-hover .bi-stopwatch {
    color: #ffab70 !important;
}

[data-bs-theme="dark"] .feature-card-hover .bi-capsule,
[data-bs-theme="dark"] .feature-card-hover .bi-capsule-pill,
[data-bs-theme="dark"] .feature-card-hover .bi-prescription,
[data-bs-theme="dark"] .feature-card-hover .bi-bag-plus,
[data-bs-theme="dark"] .feature-card-hover .bi-bag-plus-fill {
    color: #4dabf7 !important;
}

[data-bs-theme="dark"] .feature-card-hover .bi-phone,
[data-bs-theme="dark"] .feature-card-hover .bi-tablet,
[data-bs-theme="dark"] .feature-card-hover .bi-laptop,
[data-bs-theme="dark"] .feature-card-hover .bi-wifi,
[data-bs-theme="dark"] .feature-card-hover .bi-router {
    color: #9775fa !important;
}

[data-bs-theme="dark"] .feature-card-hover .bi-shield-check,
[data-bs-theme="dark"] .feature-card-hover .bi-shield-fill-check,
[data-bs-theme="dark"] .feature-card-hover .bi-award,
[data-bs-theme="dark"] .feature-card-hover .bi-trophy {
    color: #51cf66 !important;
}

[data-bs-theme="dark"] .feature-card-hover .bi-geo-alt,
[data-bs-theme="dark"] .feature-card-hover .bi-geo-alt-fill,
[data-bs-theme="dark"] .feature-card-hover .bi-globe,
[data-bs-theme="dark"] .feature-card-hover .bi-pin-map {
    color: #63e6be !important;
}

[data-bs-theme="dark"] .feature-card-hover .bi-people,
[data-bs-theme="dark"] .feature-card-hover .bi-people-fill,
[data-bs-theme="dark"] .feature-card-hover .bi-person-check {
    color: #9c88ff !important;
}

/* MODO OSCURO - EXCLUIR iconos del navbar de reglas de feature cards */
[data-bs-theme="dark"] .feature-card-hover .bi-person-plus:not(.navbar .bi-person-plus) {
    color: #9c88ff !important;
}

[data-bs-theme="dark"] .feature-card-hover .bi-file-medical,
[data-bs-theme="dark"] .feature-card-hover .bi-clipboard-data,
[data-bs-theme="dark"] .feature-card-hover .bi-graph-up,
[data-bs-theme="dark"] .feature-card-hover .bi-bar-chart {
    color: #adb5bd !important;
}

/* === NAVBAR STYLES FOR TRADITIONAL BOOTSTRAP NAVBAR === */
.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 1020 !important;
}

.navbar {
    min-height: 60px !important;
    padding: 0.5rem 0 !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Logo styling */
.navbar-brand {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
}

.navbar-brand .brand-icon {
    font-size: 1.4rem !important;
    color: #dc3545 !important;
}

.navbar-brand .text-info {
    color: #17a2b8 !important;
}

/* Logo text styling - azul oscuro y verde como en el hero */
.navbar-brand .brand-text-vital {
    color: #003366 !important; /* Azul oscuro */
    font-weight: 700 !important;
}

.navbar-brand .brand-text-care {
    color: #22c55e !important; /* Verde como en el hero */
    font-weight: 700 !important;
}

/* Navigation links styling */
.navbar-nav .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    transition: all 0.2s ease !important;
    margin: 0 0.25rem !important;
}

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

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Dropdown styling */
.dropdown-menu {
    border-radius: 0.5rem !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
    animation: dropdownFadeIn 0.2s ease !important;
    min-width: 220px !important;
    max-width: 280px !important;
    padding: 0.25rem 0 !important;
    margin-top: 0.1rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Dropdown end alignment fix - Alineación perfecta al lado derecho */
.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
    transform-origin: top right !important;
    margin-right: 0 !important;
}

/* For navbar dropdowns specifically */
.navbar .dropdown-menu-end {
    inset: auto 0px auto auto !important;
    transform: translate3d(-10px, 40px, 0px) !important;
    margin-right: -0.25rem !important;
    max-width: 240px !important;
    right: 10px !important;
    left: auto !important;
}

@keyframes dropdownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    padding: 0.4rem 0.75rem !important;
    transition: all 0.2s ease !important;
    margin: 0.025rem 0.15rem !important;
    border-radius: 0.25rem !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.dropdown-item:hover {
    background-color: rgba(0,123,255,0.25) !important;
    color: #0056b3 !important;
    transform: translateX(3px) !important;
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 16px;
}

.dropdown-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem 0.5rem;
    margin: 0.125rem 0.25rem 0.25rem 0.25rem;
    border-radius: 6px;
    border-bottom: 2px solid #dee2e6;
}

.dropdown-divider {
    height: 1px;
    margin: 0.25rem 0.5rem;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    border: none;
    opacity: 0.6;
}

/* Theme toggle button */
.btn-outline-secondary {
    border-color: rgba(108, 117, 125, 0.5) !important;
    border-radius: 0.375rem !important;
    transition: all 0.2s ease !important;
}

.btn-outline-secondary:hover {
    background-color: rgba(108, 117, 125, 0.1) !important;
    transform: scale(1.05) !important;
}

/* Hero light button contrast fix */
.hero-btn-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #212529 !important; /* Color oscuro para contraste */
    border: 1px solid rgba(0,0,0,0.1) !important;
}

.hero-btn-light:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
    color: #000000 !important; /* Negro sólido en hover */
    border-color: rgba(0,0,0,0.2) !important;
}

/* Ensure button text is always visible */
.hero-btn-light span,
.hero-btn-light i {
    color: inherit !important;
    position: relative !important;
    z-index: 3 !important;
}

/* Navbar toggler */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 0.375rem !important;
    padding: 0.375rem 0.5rem !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* Notification badge positioning */
#notificationBadge {
    font-size: 0.65rem !important;
    min-width: 1.2rem !important;
    height: 1.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Notification dropdown specific styling */
#notificationDropdown + .dropdown-menu {
    width: 350px !important;
    max-width: 90vw !important;
}

.notification-item .dropdown-item {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    padding: 0.75rem 1rem !important;
    min-height: auto !important;
}

.notification-item .dropdown-item p {
    margin-bottom: 0.25rem !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.notification-item .dropdown-item small {
    font-size: 0.75rem !important;
    opacity: 0.8 !important;
    white-space: normal !important;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.125rem 0;
        border-radius: 0.375rem;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255,255,255,0.15) !important;
        transform: translateX(3px) !important;
    }
    
    .dropdown-menu {
        margin-top: 0.5rem !important;
        border: none !important;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
        min-width: 180px !important;
        max-width: 200px !important;
    }
    
    /* Mobile dropdown end alignment */
    .dropdown-menu-end {
        right: 0 !important;
        left: auto !important;
        margin-right: 0 !important;
    }
    
    .dropdown-item {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Notification dropdown mobile styling */
    #notificationDropdown + .dropdown-menu {
        width: 320px !important;
        max-width: 95vw !important;
        right: 5px !important;
        left: auto !important;
    }
    
    .notification-item .dropdown-item {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    .notification-item .dropdown-item p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    .notification-item .dropdown-item small {
        font-size: 0.7rem !important;
    }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .navbar {
    background-color: rgba(33, 37, 41, 0.95) !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: rgba(33, 37, 41, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dropdown-item i {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dropdown-item:hover i,
[data-bs-theme="dark"] .dropdown-item:focus i {
    color: #ffffff !important;
}

/* Override Bootstrap default hover colors with higher specificity */
[data-bs-theme="dark"] .navbar .dropdown-menu .dropdown-item:hover,
[data-bs-theme="dark"] .navbar .dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Force white text on hover with maximum specificity */
[data-bs-theme="dark"] .navbar .dropdown-menu .dropdown-item:hover *,
[data-bs-theme="dark"] .navbar .dropdown-menu .dropdown-item:focus * {
    color: #ffffff !important;
}

/* Additional specificity for text content */
html[data-bs-theme="dark"] .navbar .dropdown-menu .dropdown-item:hover,
html[data-bs-theme="dark"] .navbar .dropdown-menu .dropdown-item:focus {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dropdown-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    color: rgba(255,255,255,0.9);
    border-bottom-color: rgba(255,255,255,0.2);
}

[data-bs-theme="dark"] .dropdown-divider {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

[data-bs-theme="dark"] .btn-outline-secondary {
    border-color: rgba(108, 117, 125, 0.5);
    color: rgba(255,255,255,0.8);
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.8);
}

[data-bs-theme="dark"] .navbar-toggler {
    border-color: rgba(255,255,255,0.3) !important;
}

/* Logo text styling en modo oscuro - mantener blanco */
[data-bs-theme="dark"] .navbar-brand .brand-text-vital,
[data-bs-theme="dark"] .navbar-brand .brand-text-care {
    color: #ffffff !important; /* Blanco en modo oscuro */
}

/* Role-based navbar colors */
body.doctor-body-bg .navbar-brand .brand-icon {
    color: #ffffff !important;
}

body.patient-body-bg .navbar-brand .brand-icon {
    color: #ffffff !important;
}

body.doctor-body-bg .dropdown-header {
    background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(0,123,255,0.05));
    color: #004085;
    border-bottom-color: rgba(0,123,255,0.3);
}

body.patient-body-bg .dropdown-header {
    background: linear-gradient(135deg, rgba(40,167,69,0.1), rgba(40,167,69,0.05));
    color: #155724;
    border-bottom-color: rgba(40,167,69,0.3);
}

body.doctor-body-bg .dropdown-divider {
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.3), transparent);
}

body.patient-body-bg .dropdown-divider {
    background: linear-gradient(90deg, transparent, rgba(40,167,69,0.3), transparent);
}

/* Focus states for accessibility */
.nav-link:focus,
.navbar-brand:focus,
.btn:focus,
.dropdown-toggle:focus {
    outline: 2px solid #0d6efd !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

/* === Feature Cards === */
.feature-card-hover {
    transition: all 0.3s ease;
    transform: scale(1) translateY(0);
}

.feature-card-hover:hover {
    transform: scale(1.02) translateY(0);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* === Statistics Cards === */
.stat-card-premium {
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    border-radius: 1rem; /* Added rounded corners */
}

.stat-card-premium:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Override for admin dashboard cards to remove translateY */
#adminPanelDashboard .action-card-hover:hover {
    transform: scale(1.02) !important;
    opacity: 1 !important;
}

#adminPanelDashboard .action-card-hover {
    transition: all 0.3s ease;
    transform: scale(1) !important;
    opacity: 1 !important;
}

/* === Statistics Cards Advanced === */
.stat-card-advanced {
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-card-advanced:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* === Dark Mode Base === */
body {
    background-color: #f8f9fa;
}

[data-bs-theme="dark"] body {
    background-color: #121212;
}

[data-bs-theme="dark"] .feature-card-hover {
    background: linear-gradient(135deg, #212529 0%, #2d3748 100%) !important;
}

[data-bs-theme="dark"] .feature-card-hover:hover {
    box-shadow: 0 25px 50px rgba(255,255,255,0.08) !important;
}

[data-bs-theme="dark"] .stat-card-premium {
    background: linear-gradient(135deg, #212529 0%, #2d3748 100%);
    border-color: #495057;
}

[data-bs-theme="dark"] .stat-card-advanced {
    background: linear-gradient(135deg, #212529 0%, #2d3748 100%) !important;
    border-color: #495057 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .stat-card-advanced:hover {
    background: linear-gradient(135deg, #2d3748 0%, #374151 100%) !important;
    box-shadow: 0 15px 35px rgba(255,255,255,0.1) !important;
}

[data-bs-theme="dark"] .stat-card-advanced h3 {
    color: inherit !important;
}

[data-bs-theme="dark"] .stat-card-advanced p {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-bs-theme="dark"] .stat-card-advanced small {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .feature-card-hover:hover {
        transform: translateY(-6px) scale(1.02) !important;
    }
    
    .stat-card-premium:hover {
        transform: translateY(-5px) scale(1.02);
    }
}

/* Hero Stats Cards - Individual styling */
.hero-stats {
    max-width: 800px;
    margin: 0 auto;
}

.hero-stat-card {
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 1rem !important;
    padding: 1.5rem 1rem !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    min-height: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.hero-stat-card:hover::before {
    left: 100%;
}

.hero-stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.4) !important;
}

.hero-stat-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.hero-stat-card:hover .hero-stat-icon {
    transform: scale(1.2);
    color: #ffc107;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* Trust Badges - Individual Cards styling */
.trust-badge-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    background: rgba(255,255,255,0.1) !important;
    padding: 1rem 1.5rem !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    font-size: 0.9rem !important;
    color: rgba(255,255,255,0.9) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    min-height: 60px !important;
    text-align: center !important;
}

.trust-badge-item:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: translateY(-3px) scale(1.05) !important;
    border-color: rgba(255,255,255,0.4) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.trust-badge-item i {
    font-size: 1.2rem !important;
    color: #ffc107 !important;
    transition: all 0.3s ease !important;
}

.trust-badge-item:hover i {
    transform: scale(1.3) rotate(10deg) !important;
    color: #fff !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-stat-card {
        min-height: 120px !important;
        padding: 1rem 0.5rem !important;
    }
    
    .hero-stat-icon {
        font-size: 1.5rem;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .trust-badge-item {
        padding: 0.75rem 1rem !important;
        min-height: 50px !important;
    }
}

/* === MODERN ELEGANT FOOTER === */
.modern-footer-blue {
    background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.modern-footer-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(26, 26, 46, 0.9) 50%, rgba(22, 33, 62, 0.95) 100%);
    z-index: 1;
}

.modern-footer-blue > .container {
    position: relative;
    z-index: 2;
}

/* Brand Section */
.footer-brand-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.footer-brand-icon {
    color: #60a5fa !important;
    font-size: 2rem !important;
    filter: drop-shadow(0 2px 4px rgba(96, 165, 250, 0.3));
}

.footer-brand-text {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-highlight {
    color: #ffffff;
}

.footer-brand-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Trust Badges - Todos azules */
.footer-trust-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.trust-badge-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-badge-modern i {
    color: #60a5fa;
}

.trust-badge-modern:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Section Titles */
.footer-section-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section-title i {
    color: #60a5fa;
    transition: all 0.3s ease;
}

.footer-section-underline {
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* Links */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.5rem;
}

.footer-link-modern {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.2rem 0;
}

.footer-link-modern i {
    font-size: 0.85rem;
    transition: all 0.3s ease;
    color: #60a5fa;
}

.footer-link-modern:hover {
    color: #60a5fa;
    transform: translateX(6px);
}

.footer-link-modern:hover i {
    color: #3b82f6;
    transform: scale(1.1);
}

/* Contact Info - Todos azules */
.contact-info-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-icon-modern {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    font-size: 1.5rem !important;
    color: #60a5fa !important;
    flex-shrink: 0;
    transition: all 0.3s ease;
    padding: 0.25rem;
}

.contact-item-modern:hover .contact-icon-modern {
    transform: scale(1.1) rotate(10deg);
    color: #3b82f6 !important;
}

.contact-details-modern {
    flex: 1;
}

.contact-label-modern {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.contact-link-modern {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-link-modern:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Social Icons - Paleta azul variada */
.social-icons-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-icon-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.4rem 0;
}

.social-icon-modern i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* Facebook - Azul claro */
.social-icon-modern:nth-child(1) i {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #ffffff;
}

.social-icon-modern:nth-child(1):hover {
    color: #60a5fa;
    transform: translateX(6px);
}

.social-icon-modern:nth-child(1):hover i {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

/* Twitter - Azul medio */
.social-icon-modern:nth-child(2) i {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
}

.social-icon-modern:nth-child(2):hover {
    color: #3b82f6;
    transform: translateX(6px);
}

.social-icon-modern:nth-child(2):hover i {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Instagram - Azul oscuro */
.social-icon-modern:nth-child(3) i {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #ffffff;
}

.social-icon-modern:nth-child(3):hover {
    color: #1d4ed8;
    transform: translateX(6px);
}

.social-icon-modern:nth-child(3):hover i {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(29, 78, 216, 0.4);
}

/* Newsletter */
.newsletter-title-modern {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.newsletter-form-modern .input-group {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.newsletter-input-modern {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px 0 0 20px;
}

.newsletter-input-modern::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input-modern:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.newsletter-btn-modern {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 0 20px 20px 0;
    transition: all 0.3s ease;
}

.newsletter-btn-modern:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Footer Bottom */
.footer-divider-modern {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 1.5rem 0 1rem;
}

.footer-copyright-modern {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-designer-modern {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-designer-modern strong {
    color: #60a5fa;
    font-weight: 700;
}

/* Dark Mode Adjustments */
[data-bs-theme="dark"] .modern-footer-blue {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
}

[data-bs-theme="dark"] .modern-footer-blue::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.9) 50%, rgba(45, 45, 45, 0.95) 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-footer-blue {
        padding: 1.5rem 0 0.75rem;
        margin-top: 2rem;
    }
    
    .footer-brand-title {
        font-size: 1.4rem;
    }
    
    .social-icons-modern {
        flex-direction: row;
        justify-content: space-around;
        gap: 0.4rem;
    }
    
    .social-icon-modern {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
    }
    
    .social-icon-modern span {
        font-size: 0.75rem;
    }
    
    .contact-item-modern {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
    }
    
    .newsletter-form-modern .input-group {
        border-radius: 18px;
    }
    
    .newsletter-input-modern {
        border-radius: 18px 0 0 18px;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .newsletter-btn-modern {
        border-radius: 0 18px 18px 0;
        padding: 0.5rem 1rem;
    }
    
    .footer-divider-modern {
        margin: 1.25rem 0 0.75rem;
    }
}

/* === HERO TITLE COLORS - VITALCARE LOGO === */
.hero-title-vital {
    color: #00d4ff !important;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-title-care {
    color: #28a745 !important;
    text-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-title:hover .hero-title-vital {
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    transform: scale(1.02);
}

.hero-title:hover .hero-title-care {
    text-shadow: 0 0 30px rgba(40, 167, 69, 0.6);
    transform: scale(1.02);
}

/* Dark theme adjustments for logo */
[data-bs-theme="dark"] .hero-title-vital {
    color: #66e6ff !important;
    text-shadow: 0 0 25px rgba(102, 230, 255, 0.4);
}

[data-bs-theme="dark"] .hero-title-care {
    color: #40e065 !important;
    text-shadow: 0 0 25px rgba(64, 224, 101, 0.4);
}

[data-bs-theme="dark"] .hero-title:hover .hero-title-vital {
    text-shadow: 0 0 35px rgba(102, 230, 255, 0.7);
}

[data-bs-theme="dark"] .hero-title:hover .hero-title-care {
    text-shadow: 0 0 35px rgba(64, 224, 101, 0.7);
}

/* Mobile optimizations for logo */
@media (max-width: 768px) {
    .hero-title-vital,
    .hero-title-care {
        text-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    }
    
    .hero-title:hover .hero-title-vital,
    .hero-title:hover .hero-title-care {
        transform: scale(1.01);
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    }
}

/* === SCROLL INDICATOR OPTIMIZADO === */
.scroll-indicator {
    position: absolute;
    bottom: 15px; /* Posición más baja como se solicitó */
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    color: rgba(255,255,255,0.8);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: scrollBounce 2s ease-in-out infinite;
    will-change: auto;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.scroll-indicator:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(-50%) translateY(-3px) scale(1.1) translateZ(0);
    animation: none;
    will-change: transform, color, background;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.scroll-indicator i {
    display: block;
    transition: transform 0.3s ease;
    transform: translateZ(0);
}

.scroll-indicator:hover i {
    transform: translateY(2px) translateZ(0);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0) translateZ(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px) translateZ(0);
    }
    60% {
        transform: translateX(-50%) translateY(-4px) translateZ(0);
    }
}

/* Dark theme scroll indicator */
[data-bs-theme="dark"] .scroll-indicator {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

[data-bs-theme="dark"] .scroll-indicator:hover {
    color: #66e6ff;
    background: rgba(102, 230, 255, 0.15);
    border-color: rgba(102, 230, 255, 0.3);
    box-shadow: 0 8px 25px rgba(102, 230, 255, 0.3);
}

/* Mobile optimizations for scroll indicator */
@media (max-width: 768px) {
    .scroll-indicator {
        font-size: 1.5rem;
        bottom: 10px;
        padding: 0.4rem;
    }
    
    .scroll-indicator:hover {
        transform: translateX(-50%) translateY(-2px) scale(1.05) translateZ(0);
    }
    
    @keyframes scrollBounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateX(-50%) translateY(0) translateZ(0);
        }
        40% {
            transform: translateX(-50%) translateY(-5px) translateZ(0);
        }
        60% {
            transform: translateX(-50%) translateY(-2px) translateZ(0);
        }
    }
}

/* === NAVBAR COLORS CORREGIDOS === */
/* Color verde más suave y profesional para pacientes */
.bg-patient {
    background: linear-gradient(135deg, #22816b 0%, #1e7460 50%, #1a6b55 100%) !important;
}

.border-patient {
    border-color: #22816b !important;
}

/* Dark mode adjustments for patient navbar */
[data-bs-theme="dark"] .bg-patient {
    background: linear-gradient(135deg, #1a6b55 0%, #167052 50%, #13654e 100%) !important;
}

[data-bs-theme="dark"] .border-patient {
    border-color: #1a6b55 !important;
}

/* === HERO SIMPLIFICADO PARA USUARIOS LOGUEADOS === */
.user-welcome-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    margin: 0 1rem 2rem;
    position: relative;
    overflow: hidden;
}

.user-welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,123,255,0.02), rgba(40,167,69,0.02));
    z-index: 1;
}

.welcome-card {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.9);
    padding: 2rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.welcome-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.doctor-welcome {
    border-left: 4px solid #17a2b8;
}

.patient-welcome {
    border-left: 4px solid #22816b;
}

.welcome-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-title i {
    font-size: 1.5rem;
}

.doctor-welcome .welcome-title {
    color: #17a2b8;
}

.patient-welcome .welcome-title {
    color: #22816b;
}

.welcome-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

/* Dark mode para hero simplificado */
[data-bs-theme="dark"] .user-welcome-section {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

[data-bs-theme="dark"] .welcome-card {
    background: rgba(45,55,72,0.9);
    border-color: rgba(255,255,255,0.1);
}

[data-bs-theme="dark"] .welcome-title {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .doctor-welcome .welcome-title {
    color: #63b3ed;
}

[data-bs-theme="dark"] .patient-welcome .welcome-title {
    color: #68d391;
}

[data-bs-theme="dark"] .welcome-subtitle {
    color: #a0aec0;
}

/* Mobile responsive para hero simplificado */
@media (max-width: 768px) {
    .user-welcome-section {
        margin: 0 0.5rem 1.5rem;
    }
    
    .welcome-card {
        padding: 1.5rem 1rem;
    }
    
    .welcome-title {
        font-size: 1.4rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
}

/* === CORRECCIONES PARA MODO OSCURO === */

/* Corregir inconsistencias en panel de pacientes */
[data-bs-theme="dark"] .bg-patient {
    background: linear-gradient(135deg, #1a6b55 0%, #167052 50%, #13654e 100%) !important;
}

[data-bs-theme="dark"] .card-header.bg-patient {
    background: linear-gradient(135deg, #1a6b55 0%, #167052 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

[data-bs-theme="dark"] .stat-card {
    background: rgba(45,55,72,0.8) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

[data-bs-theme="dark"] .health-summary-widget .list-group-item {
    background: rgba(45,55,72,0.5) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .messages-widget {
    background: rgba(45,55,72,0.8) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

[data-bs-theme="dark"] .messages-widget .card-body {
    color: #e2e8f0 !important;
}

/* Trust indicators en modo oscuro */
[data-bs-theme="dark"] .card-footer {
    background: rgba(33,37,41,0.8) !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}

/* === NOTIFICACIONES TOAST === */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

[data-bs-theme="dark"] .search-results-dropdown {
    background: #2d3748;
    border-color: rgba(255,255,255,0.1);
}

[data-bs-theme="dark"] .search-result-item {
    border-bottom-color: rgba(255,255,255,0.1);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .search-result-item:hover {
    background-color: rgba(255,255,255,0.1);
}

/* === MEJORAS PARA ESTADOS DE CARGA === */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.25rem;
    height: 1.2em;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

[data-bs-theme="dark"] .loading-placeholder {
    background: linear-gradient(90deg, #4a5568 25%, #2d3748 50%, #4a5568 75%);
    background-size: 200% 100%;
}

/* === MEJORAS DE ACCESIBILIDAD === */
.stat-card:focus,
.welcome-card:focus,
.health-summary-widget:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* === RESPONSIVE IMPROVEMENTS === */
@media (max-width: 992px) {
    .dropdown-menu-end {
        right: auto !important;
        left: 0 !important;
    }
}

@media (max-width: 576px) {
    .navbar-nav .dropdown-menu {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    .navbar-nav .dropdown-item {
        color: inherit !important;
        padding: 0.5rem 1rem !important;
    }
    
    [data-bs-theme="dark"] .navbar-nav .dropdown-item {
        color: rgba(255,255,255,0.9) !important;
    }
}

/* === CORRECCIÓN DE COLORES EN NAVBAR === */
/* Asegurar que el texto sea legible en todos los temas */
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand {
    color: rgba(255,255,255,0.9) !important;
}

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

/* === EFECTOS SUAVES PARA TRANSICIONES === */
.stat-card,
.welcome-card,
.list-group-item,
.card {
    transition: all 0.3s ease !important;
}

/* === ICONOS HIPAA CORREGIDOS === */
.trust-badge-item .bi-shield-fill-check::before {
    content: "\f86c"; /* Bootstrap icon shield-fill-check */
}

/* === MODERN LOGIN AND REGISTER PAGES === */
.auth-page-wrapper {
    min-height: 100vh;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-page-wrapper::before {
    display: none;
}

.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.auth-card {
    background: transparent;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: visible;
    position: relative;
    transition: none;
    margin: 0 auto;
}

.auth-card:hover {
    /* Sin efectos hover */
}

.auth-card::before {
    /* Sin barra superior */
    display: none;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #003366, #002244);
    border-radius: 50%;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.3);
}

.auth-logo i {
    font-size: 2.5rem;
    color: #ffffff;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 50%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
}

.auth-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #003366, #002244);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: #718096;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.auth-form {
    position: relative;
}

/* Asegurar que el contenedor auth-form-floating mantenga su estructura */
.auth-form-floating {
    position: relative;
    margin-bottom: 1.2rem; /* Espaciado reducido y consistente */
}

/* ESPACIADO ESPECÍFICO PARA AUTH-ROW */
.auth-row {
    display: flex !important;
    gap: 0.25rem !important;
    margin-bottom: 1.2rem !important; /* IGUAL que otros campos */
}

/* Asegurar que los auth-col dentro del row no tengan margin extra */
.auth-row .auth-col .auth-form-floating {
    margin-bottom: 0 !important; /* Los elementos dentro del row NO tienen margin propio */
}

/* ELIMINAR espacio extra después de auth-row */
.auth-row + .auth-form-floating {
    margin-top: 0 !important; /* CERO espacio extra entre auth-row y siguiente campo */
}

.auth-form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 51, 102, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    color: #2d3748;
}

.auth-form-control:focus {
    outline: none;
    border-color: #003366;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
    transform: translateY(-2px);
    color: #1a202c;
}

/* Solo forzar tamaño y padding para inputs de Flatpickr, no colores */
.auth-form-floating input[readonly] {
    width: 100% !important;
    padding: 1rem 1rem 1rem 3.5rem !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.auth-form-icon {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #003366;
    font-size: 1.1rem;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.auth-form-floating:focus-within .auth-form-icon {
    color: #002244;
    transform: scale(1.1);
}

.auth-form-label {
    position: absolute;
    top: 1rem;
    left: 3.5rem;
    color: #718096;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.auth-form-control:focus + .auth-form-label,
.auth-form-control:not(:placeholder-shown) + .auth-form-label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.8rem;
    color: #003366;
    background: rgba(255, 255, 255, 0.9);
    padding: 0 0.5rem;
    border-radius: 4px;
}

.password-toggle {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important; /* CENTRADO VERTICAL PERFECTO */
    transform: translateY(-50%) !important; /* CENTRADO VERTICAL */
    background: none !important;
    border: none !important;
    color: #003366 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    z-index: 100 !important; /* Z-index SÚPER alto para estar siempre arriba */
    padding: 0.5rem !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important; /* CERO márgenes */
}

.password-toggle:hover {
    background: rgba(0, 51, 102, 0.1) !important;
    color: #002244 !important;
    transform: translateY(-50%) scale(1.05) !important; /* CENTRADO + efecto hover */
}

.password-toggle i {
    font-size: 1.1rem;
    line-height: 1;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: #4a5568;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #003366;
    cursor: pointer;
}

/* Reducir espaciado entre botón y links globalmente */
.auth-btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #003366 0%, #002244 50%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem; /* Reducido de 1.5rem */
}

.auth-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-btn-primary:hover::before {
    left: 100%;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.4);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 0.5rem; /* Reducido de 1.5rem */
}

.auth-link {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    margin: 0.25rem 0;
}

.auth-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: linear-gradient(90deg, #003366, #002244);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.auth-link:hover {
    color: #002244;
    text-decoration: none;
}

.auth-link:hover::after {
    width: 100%;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
    color: #718096;
    font-size: 0.9rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(113, 128, 150, 0.3), transparent);
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.9);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.auth-external-btn {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(113, 128, 150, 0.2);
    border-radius: 12px;
    color: #4a5568;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.auth-external-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ELIMINAR esta regla duplicada - ya está definida arriba */

.auth-col {
    flex: 1;
    min-width: 0; /* Importante para evitar overflow */
}

.auth-col .auth-form-floating {
    margin-bottom: 0;
    width: 100%; /* Asegurar que tome todo el ancho disponible */
}

/* FORZAR espaciado super reducido */
.auth-row .auth-col {
    margin-right: 0.1rem;
}

.auth-row .auth-col:last-child {
    margin-right: 0;
}

/* Asegurar que todos los inputs tengan el mismo tamaño */
.auth-row .auth-form-control,
.auth-row .auth-select {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex: 1 !important;
}

/* Específico para el datepicker para que tenga el mismo tamaño */
.auth-row .auth-col .auth-form-floating input.datepicker-register {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 1rem 1rem 1rem 3.5rem !important; /* Mismo padding que otros campos */
    font-size: 1rem !important;
    height: auto !important;
}

.auth-select {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 51, 102, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #2d3748;
    font-weight: 500;
}

.auth-select:focus {
    outline: none;
    border-color: #003366;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
    color: #1a202c;
}

.auth-select option {
    color: #2d3748;
    background: #ffffff;
    font-weight: 500;
    padding: 0.5rem;
}

.auth-select option:disabled {
    color: #4a5568;
    background: #f7fafc;
    font-style: italic;
}

.auth-select option[selected] {
    color: #4a5568;
    font-style: italic;
}

/* Ensure placeholder text is visible */
.auth-select:invalid {
    color: #4a5568;
}

.auth-select:valid {
    color: #1a202c;
}

/* Dark mode adjustments for select */
[data-bs-theme="dark"] .auth-select option {
    color: #e2e8f0;
    background: #2d3748;
}

[data-bs-theme="dark"] .auth-select option:disabled {
    color: #a0aec0;
    background: #1a202c;
}

[data-bs-theme="dark"] .auth-select:invalid {
    color: #a0aec0;
}

[data-bs-theme="dark"] .auth-select:valid {
    color: #e2e8f0;
}

/* Dark mode support */
[data-bs-theme="dark"] .auth-page-wrapper {
    background: transparent;
}

[data-bs-theme="dark"] .auth-card {
    background: transparent;
    border: none;
}

[data-bs-theme="dark"] .auth-title {
    color: #ffffff !important;
    background: #ffffff !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: text !important;
}

[data-bs-theme="dark"] .auth-subtitle {
    color: #a0aec0;
}

[data-bs-theme="dark"] .auth-form-control,
[data-bs-theme="dark"] .auth-select {
    background: rgba(26, 32, 44, 0.8);
    border-color: rgba(0, 51, 102, 0.3);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .auth-form-control:focus,
[data-bs-theme="dark"] .auth-select:focus {
    background: rgba(26, 32, 44, 1);
    color: #ffffff;
    border-color: #003366;
}

[data-bs-theme="dark"] .auth-form-label {
    color: #a0aec0;
}

[data-bs-theme="dark"] .auth-form-control:focus + .auth-form-label,
[data-bs-theme="dark"] .auth-form-control:not(:placeholder-shown) + .auth-form-label {
    color: #7dd3fc;
    background: rgba(45, 55, 72, 0.9);
}

[data-bs-theme="dark"] .auth-checkbox {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .auth-link {
    color: #60a5fa !important;
}

[data-bs-theme="dark"] .auth-link:hover {
    color: #93c5fd !important;
}

[data-bs-theme="dark"] .auth-link::after {
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
}

[data-bs-theme="dark"] .auth-external-btn {
    background: rgba(26, 32, 44, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .auth-external-btn:hover {
    background: rgba(26, 32, 44, 1);
    border-color: #003366;
}

[data-bs-theme="dark"] .auth-divider span {
    background: rgba(45, 55, 72, 0.95);
    color: #a0aec0;
}

[data-bs-theme="dark"] .auth-form-icon {
    color: #60a5fa;
}

[data-bs-theme="dark"] .auth-form-floating:focus-within .auth-form-icon {
    color: #93c5fd;
}

[data-bs-theme="dark"] .password-toggle {
    color: #60a5fa;
}

[data-bs-theme="dark"] .password-toggle:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .auth-page-wrapper {
        padding: 1rem 0;
    }
    
    .auth-card {
        margin: 0 1rem;
        border-radius: 16px;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .auth-logo {
        width: 70px;
        height: 70px;
    }
    
    .auth-logo i {
        font-size: 2rem;
    }
    
    .auth-row {
        flex-direction: column;
        gap: 0.5rem; /* Reducir gap en móviles para que estén más pegados */
        margin-bottom: 0; /* Resetear margin para evitar espacios extra */
    }
    
    .auth-col {
        width: 100%; /* Asegurar que tome todo el ancho disponible */
        flex: none; /* Resetear flex para móviles */
    }
    
    .auth-col .auth-form-floating {
        margin-bottom: 1.25rem; /* Reducir espacio entre campos */
        width: 100%; /* Asegurar que el campo tome todo el ancho */
    }
    
    .auth-form-control,
    .auth-select,
    .auth-row .auth-form-control,
    .auth-row .auth-select,
    .datepicker-register {
        padding: 0.875rem 0.875rem 0.875rem 3rem !important;
        width: 100% !important; /* Asegurar que tome todo el ancho disponible */
        box-sizing: border-box !important; /* Incluir padding y border en el ancho */
        font-size: 1rem !important;
        min-width: 0 !important;
        height: auto !important;
    }
    
    .auth-form-icon {
        left: 0.875rem;
        top: 0.875rem;
        font-size: 1rem;
    }
    
    .auth-form-label {
        left: 3rem;
        top: 0.875rem;
        max-width: calc(100% - 4rem); /* Limitar ancho para evitar solapamiento */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .auth-form-control:focus + .auth-form-label,
    .auth-form-control:not(:placeholder-shown) + .auth-form-label {
        left: 0.875rem;
        max-width: calc(100% - 2rem); /* Ajustar cuando esté flotando */
    }

    .password-toggle {
        width: 35px;
        height: 35px;
        right: 0.875rem;
        top: 0.875rem;
    }
}

/* Mejoras adicionales para móviles muy pequeños */
@media (max-width: 480px) {
    .auth-page-wrapper {
        padding: 0.5rem 0;
    }
    
    .auth-card {
        margin: 0 0.5rem;
        border-radius: 12px;
    }
    
    .auth-card .card-body {
        padding: 1.5rem !important; /* Reducir padding interno */
    }
    
    .auth-row {
        gap: 0;
        margin-bottom: 0;
    }
    
    .auth-col .auth-form-floating {
        margin-bottom: 1.25rem; /* Reducir espacio entre campos */
    }
    
    .auth-form-control,
    .auth-select {
        padding: 0.75rem 0.75rem 0.75rem 2.75rem; /* Reducir padding */
        font-size: 0.9rem; /* Reducir tamaño de fuente ligeramente */
    }
    
    .auth-form-icon {
        left: 0.75rem;
        top: 0.75rem;
        font-size: 0.9rem;
    }
    
    .auth-form-label {
        left: 2.75rem;
        top: 0.75rem;
        font-size: 0.9rem;
        max-width: calc(100% - 3.5rem);
    }
    
    .auth-form-control:focus + .auth-form-label,
    .auth-form-control:not(:placeholder-shown) + .auth-form-label {
        left: 0.75rem;
        font-size: 0.75rem;
        max-width: calc(100% - 1.5rem);
    }

    .password-toggle {
        width: 32px;
        height: 32px;
        right: 0.75rem;
        top: 0.75rem;
        padding: 0.25rem;
    }
    
    .password-toggle i {
        font-size: 0.9rem;
    }
}

/* Hide validation messages on page load - only show after user interaction */
.auth-validation-error:empty {
    display: none;
}

.auth-validation-summary:empty {
    display: none;
}

/* Validation messages styling */
.auth-validation-error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-validation-error::before {
    content: '⚠';
    font-size: 1rem;
}

.auth-validation-summary {
    background: rgba(229, 62, 62, 0.1);
    border: 1px solid rgba(229, 62, 62, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #e53e3e;
}

[data-bs-theme="dark"] .auth-validation-summary {
    background: rgba(229, 62, 62, 0.2);
    border-color: rgba(229, 62, 62, 0.4);
}

/* Loading state */
.auth-btn-loading {
    position: relative;
    color: transparent !important;
}

.auth-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success message */
.auth-success-message {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #38a169;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-success-message::before {
    content: '✓';
    font-size: 1.2rem;
    font-weight: bold;
}

[data-bs-theme="dark"] .auth-success-message {
    background: rgba(72, 187, 120, 0.2);
    border-color: rgba(72, 187, 120, 0.4);
}

/* Special handling for select labels - always floating */
.auth-form-floating:has(.auth-select) .auth-form-label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.8rem;
    color: #003366;
    background: rgba(255, 255, 255, 0.9);
    padding: 0 0.5rem;
    border-radius: 4px;
}

/* Fallback for browsers that don't support :has() */
.auth-select + .auth-form-label {
    top: -0.5rem !important;
    left: 1rem !important;
    font-size: 0.8rem !important;
    color: #003366 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 0 0.5rem !important;
    border-radius: 4px !important;
}

/* Dark mode for select labels */
[data-bs-theme="dark"] .auth-form-floating:has(.auth-select) .auth-form-label,
[data-bs-theme="dark"] .auth-select + .auth-form-label {
    color: #7dd3fc !important;
    background: rgba(45, 55, 72, 0.9) !important;
} 

/* Estilos específicos para datepicker - FORZAR que use los mismos estilos que auth-form-control */
.datepicker-register,
input.datepicker-register,
.flatpickr-input {
    width: 100% !important;
    padding: 1rem 1rem 1rem 3.5rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(0, 51, 102, 0.15) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 2 !important;
    color: #2d3748 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.datepicker-register:focus,
input.datepicker-register:focus,
.flatpickr-input:focus {
    outline: none !important;
    border-color: #003366 !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25) !important;
    transform: translateY(-2px) !important;
    color: #1a202c !important;
}

/* Asegurar que el datepicker se vea correctamente */
.datepicker {
    z-index: 9999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.datepicker-dropdown {
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid rgba(0, 51, 102, 0.15) !important;
}

.datepicker table {
    margin: 0;
}

.datepicker .datepicker-days .table-condensed {
    width: 100%;
}

.datepicker .datepicker-days td,
.datepicker .datepicker-days th {
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.datepicker .datepicker-days td:hover {
    background: rgba(0, 51, 102, 0.1) !important;
    color: #003366 !important;
}

.datepicker .datepicker-days td.active {
    background: #003366 !important;
    color: white !important;
    border-radius: 8px !important;
}

.datepicker .datepicker-days td.today {
    background: rgba(0, 51, 102, 0.2) !important;
    color: #003366 !important;
}

/* Asegurar que los campos de fecha tengan el mismo ancho */
.auth-row .auth-col .auth-form-floating input.datepicker-register {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Forzar igualdad de tamaños en la fila de teléfono y fecha */
.auth-row .auth-col:nth-child(1) .auth-form-floating,
.auth-row .auth-col:nth-child(2) .auth-form-floating {
    width: 100% !important;
    flex: 1 !important;
}

.auth-row .auth-col:nth-child(1) .auth-form-control,
.auth-row .auth-col:nth-child(2) .auth-form-control,
.auth-row .auth-col:nth-child(1) input,
.auth-row .auth-col:nth-child(2) input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 1rem 1rem 1rem 3.5rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

/* Específico para Flatpickr input alternativo */
.auth-row .flatpickr-input.flatpickr-input {
    width: 100% !important;
    padding: 1rem 1rem 1rem 3.5rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
}

/* Tablet responsive - entre móvil y desktop */
@media (min-width: 769px) and (max-width: 1024px) {
    .auth-page-wrapper {
        padding: 1.5rem 0;
    }
    
    .auth-card {
        margin: 0 1.5rem;
        max-width: 600px; /* Limitar ancho máximo en tablets */
    }
    
    .auth-row {
        gap: 0.6rem; /* Gap intermedio para tablets */
        margin-bottom: 1.5rem;
    }
    
    .auth-col {
        flex: 1;
        min-width: 0;
    }
    
    .auth-col .auth-form-floating {
        margin-bottom: 0;
        width: 100%;
    }
    
    /* Arreglar overflow del label en tablets */
    .auth-form-label {
        max-width: calc(100% - 4rem); /* Limitar ancho del label */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.95rem; /* Reducir ligeramente el tamaño en tablets */
    }
    
    .auth-form-control:focus + .auth-form-label,
    .auth-form-control:not(:placeholder-shown) + .auth-form-label {
        max-width: calc(100% - 2.5rem); /* Ajustar cuando esté flotando */
        font-size: 0.8rem;
    }
    
    /* Asegurar que los inputs mantengan el mismo tamaño */
    .auth-row .auth-form-control,
    .auth-row .auth-select,
    .auth-row input,
    .datepicker-register,
    .flatpickr-input {
        width: 100% !important;
        padding: 0.95rem 0.95rem 0.95rem 3.2rem !important;
        font-size: 0.95rem !important;
        box-sizing: border-box !important;
    }
    
    .auth-form-icon {
        left: 0.95rem;
        top: 0.95rem;
        font-size: 0.95rem;
    }
    
    /* Reducir espaciado entre botón de registrarse y links */
    .auth-btn-primary {
        margin-bottom: 1rem; /* Reducido de 1.5rem */
    }
    
    .auth-links {
        margin-top: 1rem; /* Reducido de 1.5rem */
    }
    
    /* Ajustar padding interno de la tarjeta */
    .auth-card .card-body {
        padding: 2rem 1.5rem !important;
    }
}

/* Específico para el label de fecha de nacimiento que es más largo */
.auth-form-floating:has(input.datepicker-register) .auth-form-label,
input.datepicker-register + .auth-form-label {
    font-size: 0.9rem !important; /* Reducir tamaño para que quepa mejor */
    max-width: calc(100% - 4.5rem) !important; /* Más espacio para texto largo */
}

.auth-form-floating:has(input.datepicker-register) .auth-form-control:focus + .auth-form-label,
.auth-form-floating:has(input.datepicker-register) .auth-form-control:not(:placeholder-shown) + .auth-form-label,
input.datepicker-register:focus + .auth-form-label,
input.datepicker-register:not(:placeholder-shown) + .auth-form-label {
    font-size: 0.75rem !important; /* Aún más pequeño cuando está flotando */
    max-width: calc(100% - 2rem) !important;
}

/* En tablets, hacer el label aún más pequeño para fecha */
@media (min-width: 769px) and (max-width: 1024px) {
    .auth-form-floating:has(input.datepicker-register) .auth-form-label,
    input.datepicker-register + .auth-form-label {
        font-size: 0.85rem !important;
        max-width: calc(100% - 5rem) !important;
    }
    
    .auth-form-floating:has(input.datepicker-register) .auth-form-control:focus + .auth-form-label,
    .auth-form-floating:has(input.datepicker-register) .auth-form-control:not(:placeholder-shown) + .auth-form-label,
    input.datepicker-register:focus + .auth-form-label,
    input.datepicker-register:not(:placeholder-shown) + .auth-form-label {
        font-size: 0.7rem !important;
        max-width: calc(100% - 1.5rem) !important;
    }
}

/* Fallback para navegadores que no soportan :has() */
@media (min-width: 769px) and (max-width: 1024px) {
    .auth-row .auth-col:nth-child(2) .auth-form-label {
        font-size: 0.85rem !important;
        max-width: calc(100% - 5rem) !important;
    }
    
    .auth-row .auth-col:nth-child(2) .auth-form-control:focus + .auth-form-label,
    .auth-row .auth-col:nth-child(2) .auth-form-control:not(:placeholder-shown) + .auth-form-label {
        font-size: 0.7rem !important;
        max-width: calc(100% - 1.5rem) !important;
    }
}

/* Estilos específicos para input type="date" */
.auth-form-control[type="date"] {
    position: relative;
}

/* Asegurar que el label funcione correctamente con input date */
.auth-form-control[type="date"]:focus + .auth-form-label,
.auth-form-control[type="date"]:valid + .auth-form-label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.8rem;
    color: #003366;
    background: rgba(255, 255, 255, 0.9);
    padding: 0 0.5rem;
    border-radius: 4px;
}

/* El input de Flatpickr ahora usa la clase auth-form-control, no necesita estilos especiales */

/* Estilos para modo oscuro de password-toggle */
[data-theme="dark"] .password-toggle {
    color: #ffffff;
}

[data-theme="dark"] .password-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

/* Asegurar que los botones funcionen correctamente en cualquier tema */
.password-toggle {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.password-toggle:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Para campos en fila (como teléfono y fecha de nacimiento) */
.auth-row .auth-form-floating {
    margin-bottom: 1.5rem; /* Volver al margen original */
}

/* Asegurar que todos los inputs de password tengan espacio para el botón */
input[type="password"].auth-form-control {
    padding-right: 4rem !important;
}

/* Específico para inputs con botón de password */
.auth-form-floating:has(.password-toggle) .auth-form-control {
    padding-right: 4rem !important;
}

/* Fallback adicional para navegadores que no soportan :has() */
#loginPasswordInput,
#registerPasswordInput,
#confirmPasswordInput {
    padding-right: 4rem !important;
}

/* ========== SOBREESCRIBIR TODO LO ANTERIOR PARA BOTONES DE PASSWORD ========== */

/* NUEVO estilo para botón de password que sobrescribe todo - MÁS ESPECÍFICO */
.auth-form-floating button.password-toggle,
.auth-form-floating .password-toggle,
#toggleLoginPassword,
#toggleRegisterPassword,
#toggleConfirmPassword {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #003366 !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    z-index: 999 !important;
    padding: 0.5rem !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    pointer-events: auto !important;
    outline: none !important;
}

.auth-form-floating button.password-toggle:hover,
.auth-form-floating .password-toggle:hover,
#toggleLoginPassword:hover,
#toggleRegisterPassword:hover,
#toggleConfirmPassword:hover {
    background: rgba(0, 51, 102, 0.1) !important;
    color: #002244 !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.auth-form-floating button.password-toggle:active,
.auth-form-floating .password-toggle:active,
#toggleLoginPassword:active,
#toggleRegisterPassword:active,
#toggleConfirmPassword:active {
    transform: translateY(-50%) scale(0.95) !important;
}

/* FORZAR padding en inputs de password */
input#loginPasswordInput,
input#registerPasswordInput, 
input#confirmPasswordInput {
    padding-right: 4.5rem !important;
}

/* =============== RESET FINAL PARA ARREGLAR TODO =============== */

/* Espaciado CORRECTO para auth-row */
.auth-row {
    display: flex !important;
    gap: 0.25rem !important;
    margin-bottom: 1.5rem !important; /* IGUAL que otros campos */
}

.auth-col {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ELIMINAR espacio extra después de auth-row */
.auth-row + .auth-form-floating {
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
}

/* BOTÓN INMUNE A VALIDATION MESSAGES - CENTRADO PERFECTO EN EL INPUT */
.password-toggle,
#toggleLoginPassword,
#toggleRegisterPassword,
#toggleConfirmPassword {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important; /* CENTRO ABSOLUTO del contenedor */
    transform: translateY(-50%) !important; /* CENTRADO PERFECTO */
    background: none !important;
    border: none !important;
    color: #003366 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    z-index: 1000 !important; /* Por encima de validation messages */
    padding: 0.5rem !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    pointer-events: auto !important;
    outline: none !important;
    user-select: none !important;
}

/* HACER que el botón se posicione respecto al INPUT específicamente */
.auth-form-control:focus ~ .password-toggle,
.auth-form-control ~ .password-toggle,
#loginPasswordInput ~ .password-toggle,
#registerPasswordInput ~ .password-toggle,
#confirmPasswordInput ~ .password-toggle {
    position: absolute !important;
    top: 50% !important; /* CENTRO ABSOLUTO del input */
    transform: translateY(-50%) !important; /* CENTRADO PERFECTO */
}

/* VALIDATION MESSAGES QUE EMPUJAN CONTENIDO CORRECTAMENTE */
.auth-form-floating {
    position: relative !important;
    margin-bottom: 1.2rem !important; /* Espaciado reducido */
}

/* Validation messages en flujo normal - empujan contenido */
.auth-form-floating .auth-validation-error {
    position: relative !important; /* Flujo normal, no overlay */
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
    z-index: 1 !important;
    /* SÍ empuja contenido hacia abajo cuando aparece */
}

/* OCULTAR validation messages vacíos */
.auth-validation-error:empty {
    display: none !important;
}

.password-toggle:hover,
#toggleLoginPassword:hover,
#toggleRegisterPassword:hover,
#toggleConfirmPassword:hover {
    background: rgba(0, 51, 102, 0.1) !important;
    color: #002244 !important;
    transform: translateY(-50%) scale(1.05) !important; /* Centrado + efecto hover */
}

.password-toggle:active,
#toggleLoginPassword:active,
#toggleRegisterPassword:active,
#toggleConfirmPassword:active {
    transform: translateY(-50%) scale(0.95) !important; /* Centrado + efecto click */
}

/* Inputs de password SIEMPRE con espacio para botón */
#loginPasswordInput,
#registerPasswordInput,
#confirmPasswordInput,
input[asp-for="Input.Password"],
input[asp-for="Input.ConfirmPassword"] {
    padding-right: 4.5rem !important;
}

/* FORZAR que se vea el texto cuando cambie de tipo */
#loginPasswordInput[type="text"],
#registerPasswordInput[type="text"],
#confirmPasswordInput[type="text"] {
    font-family: inherit !important;
    -webkit-text-security: none !important;
    text-security: none !important;
}

#loginPasswordInput[type="password"],
#registerPasswordInput[type="password"],
#confirmPasswordInput[type="password"] {
    font-family: inherit !important;
    -webkit-text-security: disc !important;
    text-security: disc !important;
}

/* ========== REGLA FINAL ULTRA ESPECÍFICA PARA BOTONES DE PASSWORD ========== */

/* Esta regla tiene la máxima especificidad y debe sobreescribir todo */
div.auth-form-floating button.password-toggle[id*="toggle"],
div.auth-form-floating button[class*="password-toggle"],
button#toggleLoginPassword,
button#toggleRegisterPassword,
button#toggleConfirmPassword {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #003366 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    padding: 0.5rem !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    pointer-events: auto !important;
    outline: none !important;
    margin: 0 !important;
    left: auto !important;
    bottom: auto !important;
}

div.auth-form-floating button.password-toggle[id*="toggle"]:hover,
div.auth-form-floating button[class*="password-toggle"]:hover,
button#toggleLoginPassword:hover,
button#toggleRegisterPassword:hover,
button#toggleConfirmPassword:hover {
    background: rgba(0, 51, 102, 0.1) !important;
    color: #002244 !important;
    transform: translateY(-50%) scale(1.05) !important;
}

div.auth-form-floating button.password-toggle[id*="toggle"]:active,
div.auth-form-floating button[class*="password-toggle"]:active,
button#toggleLoginPassword:active,
button#toggleRegisterPassword:active,
button#toggleConfirmPassword:active {
    transform: translateY(-50%) scale(0.95) !important;
}

/* ========== WRAPPER PARA AISLAR BOTÓN DE VALIDACIONES ========== */

/* Contenedor que aísla el input y botón de las validaciones */
.password-input-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

/* Asegurar que los botones sean completamente clickeables */
.password-toggle, .password-toggle * {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.password-toggle:hover {
    background: rgba(0, 51, 102, 0.1) !important;
}

.password-toggle:active {
    background: rgba(0, 51, 102, 0.2) !important;
}

/* El botón debe posicionarse relativo al wrapper, no al auth-form-floating */
.password-input-wrapper .password-toggle,
.password-input-wrapper button.password-toggle,
.password-input-wrapper #toggleRegisterPassword,
.password-input-wrapper #toggleConfirmPassword {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #003366 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    padding: 0.5rem !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    pointer-events: auto !important;
    outline: none !important;
    margin: 0 !important;
}

.password-input-wrapper .password-toggle:hover,
.password-input-wrapper button.password-toggle:hover,
.password-input-wrapper #toggleRegisterPassword:hover,
.password-input-wrapper #toggleConfirmPassword:hover {
    background: rgba(0, 51, 102, 0.1) !important;
    color: #002244 !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.password-input-wrapper .password-toggle:active,
.password-input-wrapper button.password-toggle:active,
.password-input-wrapper #toggleRegisterPassword:active,
.password-input-wrapper #toggleConfirmPassword:active {
    transform: translateY(-50%) scale(0.95) !important;
}

/* ========== MODO OSCURO PARA BOTONES DE PASSWORD EN WRAPPER ========== */

[data-bs-theme="dark"] .password-input-wrapper .password-toggle,
[data-bs-theme="dark"] .password-input-wrapper button.password-toggle,
[data-bs-theme="dark"] .password-input-wrapper #toggleRegisterPassword,
[data-bs-theme="dark"] .password-input-wrapper #toggleConfirmPassword {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .password-input-wrapper .password-toggle:hover,
[data-bs-theme="dark"] .password-input-wrapper button.password-toggle:hover,
[data-bs-theme="dark"] .password-input-wrapper #toggleRegisterPassword:hover,
[data-bs-theme="dark"] .password-input-wrapper #toggleConfirmPassword:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
}

/* ========== MODO OSCURO PARA DATEPICKER ========== */

[data-bs-theme="dark"] .datepicker-register,
[data-bs-theme="dark"] input.datepicker-register,
[data-bs-theme="dark"] .flatpickr-input {
    background: rgba(26, 32, 44, 0.8) !important;
    border-color: rgba(0, 51, 102, 0.3) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .datepicker-register:focus,
[data-bs-theme="dark"] input.datepicker-register:focus,
[data-bs-theme="dark"] .flatpickr-input:focus {
    background: rgba(26, 32, 44, 1) !important;
    color: #ffffff !important;
    border-color: #003366 !important;
}

/* ========== REGLA FINAL ULTRA ESPECÍFICA PARA UNIFICAR TODAS LAS FUENTES ========== */

/* Forzar que TODOS los inputs tengan exactamente la misma fuente que el SELECT */
.auth-form-floating input[type="text"],
.auth-form-floating input[type="email"], 
.auth-form-floating input[type="password"],
.auth-form-floating input[readonly],
.auth-form-floating select,
input[asp-for="Input.FirstName"],
input[asp-for="Input.LastName"],
input[asp-for="Input.DocumentId"],
input[asp-for="Input.Email"],
input[asp-for="Input.Password"],
input[asp-for="Input.ConfirmPassword"],
input[asp-for="Input.PhoneNumber"],
input[asp-for="Input.DateOfBirth"],
select[asp-for="Input.Gender"],
input.datepicker-register,
.flatpickr-input,
input.flatpickr-input,
.flatpickr-input[readonly] {
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
}

/* Regla específica para el input alternativo de Flatpickr */
.flatpickr-input.form-control,
.flatpickr-input.auth-form-control,
input[data-input],
input[readonly].flatpickr-input {
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-style: normal !important;
}

/* Sobrescribir cualquier estilo de Flatpickr específicamente */
div.auth-form-floating input.flatpickr-input,
div.auth-form-floating input[readonly],
div.auth-row div.auth-col input.datepicker-register,
div.auth-row div.auth-col input.flatpickr-input {
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-style: normal !important;
}

/* Para móviles y tablets */
@media (max-width: 1024px) {
    .auth-form-floating input,
    .auth-form-floating select,
    .flatpickr-input,
    input.flatpickr-input,
    input.datepicker-register {
        font-weight: 500 !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
        font-style: normal !important;
    }
}

/* ========== ESTILOS PARA CONVENIOS EPS - ICONOS CENTRADOS ========== */

/* Partner Logos Container - Centrado perfecto */
.partner-logo-container {
    padding: 2rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.partner-logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(-45deg) translateX(-100%);
    transition: transform 0.4s ease;
}

.partner-logo-container:hover::before {
    transform: rotate(-45deg) translateX(100%);
}

.partner-logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Wrapper del icono - centrado perfecto */
.partner-logo-container .feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
    padding: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.partner-logo-container:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: none;
}

/* Icono principal - centrado y tamaño correcto */
.partner-logo-container .feature-icon-main {
    font-size: 2.5rem !important;
    margin: 0 !important;
    display: block;
    line-height: 1;
    transition: all 0.3s ease;
}

.partner-logo-container:hover .feature-icon-main {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Nombre de la EPS - centrado */
.partner-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.partner-logo-container:hover .partner-name {
    color: #212529;
    transform: translateY(-2px);
    font-weight: 700;
}

/* Tema oscuro para convenios EPS */
[data-bs-theme="dark"] .partner-logo-container {
    background: linear-gradient(135deg, #212529 0%, #2d3748 100%);
    border: 1px solid rgba(255,255,255,0.1);
}

[data-bs-theme="dark"] .partner-logo-container .feature-icon-wrapper {
    background: none;
    backdrop-filter: none;
}

[data-bs-theme="dark"] .partner-name {
    color: rgba(255,255,255,0.8);
}

[data-bs-theme="dark"] .partner-logo-container:hover .partner-name {
    color: #ffffff;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .partner-logo-container {
        min-height: 120px;
        padding: 1.5rem 0.75rem;
    }
    
    .partner-logo-container .feature-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 0.5rem;
    }
    
    .partner-logo-container .feature-icon-main {
        font-size: 2rem !important;
    }
    
    .partner-name {
        font-size: 0.85rem;
    }
    
    .partner-logo-container:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

/* ========== ESTILOS PARA PÁGINA DE EQUIPO MÉDICO - ICONOS SIN FONDO ========== */

/* Quitar fondos de colores de los avatares de médicos */
.team-card .team-avatar {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 1.5rem auto 1rem auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

/* Iconos de médicos - solo el icono sin fondo */
.team-card .team-avatar .feature-icon-main {
    font-size: 5rem !important;
    color: #003366 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Efectos hover para iconos de médicos */
.team-card:hover .team-avatar .feature-icon-main {
    transform: scale(1.1) !important;
    color: #002244 !important;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

/* Colores específicos por especialidad - solo para el icono */
.team-card .team-avatar .bi-heart-pulse-fill {
    color: #dc3545 !important; /* Rojo para cardiología */
}

.team-card .team-avatar .bi-activity {
    color: #28a745 !important; /* Verde para cardiología */
}

.team-card .team-avatar .bi-gender-female {
    color: #17a2b8 !important; /* Azul para ginecología */
}

.team-card .team-avatar .bi-emoji-smile {
    color: #ffc107 !important; /* Amarillo para pediatría */
}

.team-card .team-avatar .bi-bandaid {
    color: #dc3545 !important; /* Rojo para dermatología */
}

.team-card .team-avatar .bi-brain {
    color: #6c757d !important; /* Gris para psicología */
}

/* Hover específico por especialidad */
.team-card:hover .team-avatar .bi-heart-pulse-fill {
    color: #c82333 !important;
}

.team-card:hover .team-avatar .bi-activity {
    color: #218838 !important;
}

.team-card:hover .team-avatar .bi-gender-female {
    color: #138496 !important;
}

.team-card:hover .team-avatar .bi-emoji-smile {
    color: #e0a800 !important;
}

.team-card:hover .team-avatar .bi-bandaid {
    color: #c82333 !important;
}

.team-card:hover .team-avatar .bi-brain {
    color: #5a6268 !important;
}

/* Ajustar el contenedor de la tarjeta para mejor espaciado */
.team-card .position-relative {
    text-align: center !important;
    padding-top: 1rem !important;
}

/* Ajustes responsive para móviles */
@media (max-width: 768px) {
    .team-card .team-avatar .feature-icon-main {
        font-size: 4rem !important;
    }
    
    .team-card .team-avatar {
        margin: 1rem auto 0.75rem auto !important;
    }
}

/* Tema oscuro para iconos de médicos */
[data-bs-theme="dark"] .team-card .team-avatar .feature-icon-main {
    text-shadow: 0 2px 4px rgba(255,255,255,0.1) !important;
}

[data-bs-theme="dark"] .team-card:hover .team-avatar .feature-icon-main {
    text-shadow: 0 4px 8px rgba(255,255,255,0.2) !important;
}

/* ========== ESTILOS PARA TARJETAS DE CONTACTO EN PÁGINA DE CONTACTO ========== */

/* Centrado perfecto de las tarjetas de información de contacto */
.office-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.office-details {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.office-details .d-flex {
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    padding: 1.5rem 1rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 1rem !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
    transition: all 0.4s ease !important;
    border: 1px solid rgba(0,51,102,0.1) !important;
}

.office-details .d-flex:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 35px rgba(0,51,102,0.15) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%) !important;
}

/* Iconos de contacto centrados */
.office-details .feature-icon-wrapper {
    background: rgba(0,51,102,0.1) !important;
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem auto !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(0,51,102,0.2) !important;
}

.office-details .d-flex:hover .feature-icon-wrapper {
    background: rgba(0,51,102,0.15) !important;
    transform: scale(1.1) !important;
    border-color: rgba(0,51,102,0.3) !important;
}

.office-details .feature-icon-main {
    font-size: 2rem !important;
    transition: all 0.3s ease !important;
}

.office-details .d-flex:hover .feature-icon-main {
    font-size: 2.2rem !important;
}

/* Texto de contacto centrado */
.office-details .text-center h6 {
    color: #003366 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.office-details .text-center p {
    color: #666 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Colores específicos para cada tipo de contacto */
.office-details .d-flex:nth-child(1) .feature-icon-wrapper {
    background: rgba(0,51,102,0.1) !important;
}

.office-details .d-flex:nth-child(1):hover .feature-icon-wrapper {
    background: rgba(0,51,102,0.2) !important;
}

.office-details .d-flex:nth-child(2) .feature-icon-wrapper {
    background: rgba(34,129,107,0.1) !important;
}

.office-details .d-flex:nth-child(2):hover .feature-icon-wrapper {
    background: rgba(34,129,107,0.2) !important;
}

.office-details .d-flex:nth-child(3) .feature-icon-wrapper {
    background: rgba(23,162,184,0.1) !important;
}

.office-details .d-flex:nth-child(3):hover .feature-icon-wrapper {
    background: rgba(23,162,184,0.2) !important;
}

.office-details .d-flex:nth-child(4) .feature-icon-wrapper {
    background: rgba(220,53,69,0.1) !important;
}

.office-details .d-flex:nth-child(4):hover .feature-icon-wrapper {
    background: rgba(220,53,69,0.2) !important;
}

/* Animaciones de entrada */
.office-details .d-flex:nth-child(1) {
    animation: slideInLeft 0.8s ease-out;
}

.office-details .d-flex:nth-child(2) {
    animation: slideInLeft 0.8s ease-out 0.1s backwards;
}

.office-details .d-flex:nth-child(3) {
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.office-details .d-flex:nth-child(4) {
    animation: slideInLeft 0.8s ease-out 0.3s backwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .office-details .d-flex {
        padding: 1rem 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .office-details .feature-icon-wrapper {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 0.8rem !important;
    }
    
    .office-details .feature-icon-main {
        font-size: 1.8rem !important;
    }
    
    .office-details .d-flex:hover .feature-icon-main {
        font-size: 2rem !important;
    }
    
    .office-details .text-center h6 {
        font-size: 1rem !important;
    }
    
    .office-details .text-center p {
        font-size: 0.9rem !important;
    }
}

.hero-rounded {
    border-radius: 50px !important;
}

.text-primary-darkblue {
    color: #003366;
}

[data-bs-theme="dark"] .text-primary-darkblue {
    color: #fff !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .partner-logo-container {
        min-height: 120px;
        padding: 1.5rem 0.75rem;
    }
    
    .partner-logo-container .feature-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 0.5rem;
    }
    
    .partner-logo-container .feature-icon-main {
        font-size: 2rem !important;
    }
    
    .partner-name {
        font-size: 0.85rem;
    }
    
    .partner-logo-container:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

.feature-metrics {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.office-details .d-flex:nth-child(1) {
    animation-delay: 0.1s;
}

[data-bs-theme="dark"] .partner-logo-container:hover .partner-name {
    color: #ffffff;
}

[data-bs-theme="dark"] .stat-card-premium h3.text-primary,
[data-bs-theme="dark"] .stat-card-premium h3.text-info,
[data-bs-theme="dark"] .stat-card-premium small.text-info,
[data-bs-theme="dark"] .features-card-premium strong.text-info {
    color: #fff !important;
}

.hero-rounded {
    border-radius: 50px !important;
}

[data-bs-theme="dark"] .stat-card-premium h3.text-primary,
[data-bs-theme="dark"] .stat-card-premium small.text-info {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .text-primary,
[data-bs-theme="dark"] .text-info,
[data-bs-theme="dark"] .text-primary-darkblue,
[data-bs-theme="dark"] .feature-card-hover h6,
[data-bs-theme="dark"] .feature-card-hover .small {
    color: #ffffff !important;
}

.hero-rounded {
    border-radius: 50px !important;
}

[data-bs-theme="dark"] .feature-card-hover .small {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .team-card .card-title,
[data-bs-theme="dark"] .team-card .fw-semibold {
    color: #ffffff !important;
}

.hero-rounded {
    border-radius: 50px !important;
}

/* Fix for dark blue elements in dark mode on team page */
[data-bs-theme="dark"] .team-card .text-primary-darkblue,
[data-bs-theme="dark"] .team-card .team-avatar .feature-icon-main {
    color: #ffffff !important;
}

/* ========== ADMIN NAVBAR STYLES ========== */

/* Base style for admin navbar - always dark */
.bg-admin {
    background: linear-gradient(135deg, #1d2a3e 0%, #111827 100%) !important;
}

.bg-admin .navbar-nav {
    flex-wrap: nowrap !important;
}

/* Force white text for all links and text in the admin navbar */
.bg-admin .navbar-nav .nav-link,
.bg-admin .navbar-brand,
.bg-admin .dropdown-toggle,
.bg-admin .dropdown-item,
.bg-admin #userDropdown {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-admin .navbar-nav .nav-link:hover,
.bg-admin .navbar-brand:hover,
.bg-admin .dropdown-item:hover,
.bg-admin #userDropdown:hover {
    color: #ffffff !important;
}

/* Adjust padding for admin nav items to prevent wrapping */
.bg-admin .navbar-nav .nav-link {
    padding: 0.4rem 0.5rem !important; /* Further reduced horizontal padding */
    font-size: 0.82rem; /* Further reduced font size */
}

/* Ensure icons in admin nav are also white */
.bg-admin .navbar-nav .nav-link i,
.bg-admin .navbar-brand i,
.bg-admin .dropdown-toggle i {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Explicitly style the admin's user dropdown text to be white */
.bg-admin .navbar-nav .nav-item .nav-link#userDropdown {
    color: #ffffff !important;
}

/* Force dark theme for admin dropdown menu */
.bg-admin .dropdown-menu {
    background-color: #1f2937 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.bg-admin .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-admin .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.bg-admin .dropdown-menu .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Explicitly style the admin's user dropdown text to be white */
.bg-admin .navbar-nav .nav-item .nav-link#userDropdown {
    color: #ffffff !important;
}



