/* ============================================
   VARIABLES GLOBALES
   ============================================ */
:root {
    --primary: #0a2b44;
    --primary-light: #1e4a76;
    --primary-dark: #051a2b;
    --secondary: #00a1ab;
    --secondary-light: #00c4cf;
    --accent: #d4af37;
    --dark-bg: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --shadow-sm: 0 4px 12px rgba(10, 43, 68, 0.05);
    --shadow-md: 0 12px 28px rgba(10, 43, 68, 0.10);
    --shadow-lg: 0 24px 48px rgba(10, 43, 68, 0.15);
    --shadow-xl: 0 32px 64px rgba(10, 43, 68, 0.20);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   FIX MODALES - Z-INDEX (ESCRITORIO)
   ============================================ */
.modal {
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 99998 !important;
}

.modal-dialog {
    z-index: 100000 !important;
    pointer-events: auto !important;
}

.modal.show .modal-dialog {
    transform: none !important;
}

body.modal-open {
    overflow: hidden !important;
}

/* ============================================
   BASE
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: var(--gray-800);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Inter', serif;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar-info span {
    white-space: nowrap;
}

.top-bar-info strong {
    color: var(--secondary-light);
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.top-bar-social a:hover {
    color: var(--secondary-light);
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 0.9rem 0;
    transition: var(--transition);
    z-index: 1030;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

/* ============================================
   BOTÓN LOGIN
   ============================================ */
.btn-login {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white !important;
    border: none;
    padding: 10px 26px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(10, 43, 68, 0.18);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(10, 43, 68, 0.28);
}

/* ============================================
   DROPDOWN USUARIO
   ============================================ */
.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 4px;
    border-radius: 50px;
    border: 2px solid transparent;
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.user-dropdown-toggle:hover {
    border-color: var(--secondary);
    background: rgba(0, 161, 171, 0.05);
}

.user-avatar-small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.user-name-display {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-arrow {
    color: var(--gray-400);
    font-size: 0.7rem;
    transition: var(--transition);
}

.user-dropdown-toggle[aria-expanded="true"] .user-dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    padding: 0.5rem;
    min-width: 260px;
    box-shadow: var(--shadow-xl);
    margin-top: 12px !important;
}

.user-dropdown-menu .dropdown-header {
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--gray-100);
}

.user-dropdown-menu .dropdown-header .full-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.user-dropdown-menu .dropdown-header .user-role-badge {
    font-size: 0.7rem;
    background: #eef2ff;
    color: var(--primary);
    padding: 2px 12px;
    border-radius: 50px;
    font-weight: 600;
    align-self: flex-start;
}

.user-dropdown-menu .dropdown-item {
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-800);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--gray-500);
}

.user-dropdown-menu .dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.user-dropdown-menu .dropdown-item:hover i {
    color: var(--primary);
}

.user-dropdown-menu .dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.user-dropdown-menu .dropdown-item.text-danger:hover i {
    color: #dc2626;
}

.user-dropdown-desktop { display: block; }
.user-modal-trigger { display: none; }

/* ============================================
   HERO PREMIUM
   ============================================ */
.hero-premium {
    position: relative;
    padding: 100px 0 160px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
    color: white;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 161, 171, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.hero-premium::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: var(--secondary-light);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 200, 207, 0.3);
    backdrop-filter: blur(8px);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--secondary-light);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 161, 171, 0.4);
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 161, 171, 0.55);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   QUICK ACCESS CARDS
   ============================================ */
.hero-quick-access {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 2rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-quick-access h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.quick-card:last-child { margin-bottom: 0; }

.quick-card:hover {
    transform: translateX(6px);
    border-color: var(--secondary);
    box-shadow: 0 12px 30px rgba(0, 161, 171, 0.25);
}

.quick-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.quick-content {
    flex: 1;
}

.quick-content strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
}

.quick-content small {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.quick-arrow {
    color: var(--gray-400);
    transition: var(--transition);
}

.quick-card:hover .quick-arrow {
    color: var(--secondary);
    transform: translateX(4px);
}

/* ============================================
   HERO WAVE
   ============================================ */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top right, transparent 49%, #ffffff 50%);
    pointer-events: none;
}

/* ============================================
   STATS STRIP
   ============================================ */
.stats-strip {
    background: #ffffff;
    padding: 3rem 0;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.stat-box {
    background: white;
    border-radius: 24px;
    padding: 1.75rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    height: 100%;
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 43, 68, 0.1), rgba(0, 161, 171, 0.1));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   SECTION PREMIUM
   ============================================ */
.section-premium {
    padding: 5rem 0;
    position: relative;
}

.bg-soft {
    background: linear-gradient(180deg, var(--gray-50) 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 161, 171, 0.1), rgba(10, 43, 68, 0.08));
    color: var(--secondary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 161, 171, 0.2);
}

.section-title-premium {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.15;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FEATURE CARDS (Servicios fijos)
   ============================================ */
.feature-card {
    background: white;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.bg-primary-soft { background: rgba(10, 43, 68, 0.08); color: var(--primary); }
.bg-success-soft { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.bg-warning-soft { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.bg-info-soft { background: rgba(0, 161, 171, 0.1); color: var(--secondary); }

.feature-card h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   ESPECIALIDAD CARD PREMIUM
   ============================================ */
.especialidad-card-premium {
    background: white;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.especialidad-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.especialidad-card-premium:hover::before {
    transform: scaleX(1);
}

.especialidad-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.esp-icon-premium {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.esp-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.esp-desc {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.esp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

.esp-count {
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.esp-arrow {
    color: var(--gray-300);
    transition: var(--transition);
}

.especialidad-card-premium:hover .esp-arrow {
    color: var(--secondary);
    transform: translateX(6px);
}

/* ============================================
   SEARCH PREMIUM
   ============================================ */
.search-premium {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 6px 6px 6px 24px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-100);
    transition: var(--transition);
}

.search-premium:focus-within {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(0, 161, 171, 0.12);
}

.search-premium i {
    color: var(--gray-400);
    margin-right: 12px;
}

.search-premium input {
    border: none;
    outline: none;
    flex: 1;
    padding: 12px 0;
    font-size: 0.95rem;
    background: transparent;
}

/* ============================================
   MEDICO CARD PREMIUM
   ============================================ */
.medico-card-premium {
    background: white;
    border-radius: 24px;
    padding: 2rem 1.25rem 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    position: relative;
}

.medico-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.medico-avatar-premium {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(10, 43, 68, 0.15);
    position: relative;
}

.medico-avatar-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.medico-esp-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.medico-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.medico-esp {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.medico-exp {
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.btn-medico-reservar {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    width: 100%;
}

.btn-medico-reservar:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 43, 68, 0.25);
}

/* ============================================
   SERVICIO CARD PREMIUM
   ============================================ */
.servicio-card-premium {
    background: white;
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.servicio-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.serv-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.serv-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.serv-desc {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.serv-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

.serv-cat {
    background: var(--gray-100);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.serv-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
}

/* ============================================
   INFO SECTION (CENTRO MÉDICO)
   ============================================ */
.info-image-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 32px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 200, 207, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.2) 0%, transparent 40%);
}

.info-image-icon {
    position: relative;
    z-index: 2;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.info-image-badge {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    white-space: nowrap;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.info-item i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.info-contact {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(10, 43, 68, 0.08), rgba(0, 161, 171, 0.1));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-item small {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item strong {
    color: var(--primary);
    font-size: 0.95rem;
}

/* ============================================
   HORARIO CARD PREMIUM
   ============================================ */
.horario-card-premium {
    background: white;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    height: 100%;
}

.horario-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.horario-card-premium.cerrado {
    opacity: 0.65;
    background: var(--gray-50);
}

.horario-day {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.horario-hours {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.horario-hours i {
    color: var(--gray-400);
}

.horario-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-open {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.badge-closed {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* ============================================
   SCHEDULE INFO CARD
   ============================================ */
.schedule-info-card {
    background: white;
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    height: 100%;
}

.schedule-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.schedule-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.schedule-info-card h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.schedule-info-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

.schedule-info-card strong {
    color: var(--primary);
}

/* ============================================
   FOOTER PREMIUM
   ============================================ */
.footer-premium {
    background: linear-gradient(180deg, #0a1f33 0%, var(--primary-dark) 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--secondary);
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--secondary);
    width: 16px;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
}

.footer-legal {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal:hover {
    color: var(--secondary);
}

/* ============================================
   MODALES PREMIUM
   ============================================ */
.modal-content-premium {
    border: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-header-premium {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 1.5rem 1.75rem;
    border-bottom: none;
    color: white;
}

.modal-header-premium .modal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-body-premium {
    padding: 2rem 1.75rem;
}

/* ============================================
   FORM CONTROLS
   ============================================ */
.form-control-premium {
    border-radius: 16px;
    padding: 0.85rem 1.15rem;
    padding-right: 48px !important;
    border: 1.5px solid var(--gray-200);
    transition: var(--transition);
    background: var(--gray-50);
}

.form-control-premium:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(0, 161, 171, 0.12);
    background: white;
}

.toggle-password-btn {
    background: transparent !important;
    border: none !important;
    color: var(--gray-400) !important;
    transition: var(--transition);
    padding: 4px 8px !important;
    font-size: 1rem !important;
    z-index: 10 !important;
}

.toggle-password-btn:hover {
    color: var(--primary) !important;
}

.toggle-password-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-primary-premium {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: 40px;
    padding: 14px;
    font-weight: 700;
    color: white;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(10, 43, 68, 0.3);
    color: white;
}

/* ============================================
   CHANGE ICON
   ============================================ */
.change-icon {
    background: #fef3c7;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.change-icon i {
    font-size: 2rem;
    color: #f97316;
}

/* ============================================
   MEDICO MINI CARD
   ============================================ */
.medico-mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
}

.medico-mini-card:hover {
    background: white;
    border-color: var(--secondary);
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

.medico-img-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    overflow: hidden;
}

.medico-img-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   MEDICO IMG LG (modal detalle)
   ============================================ */
.medico-img-lg {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(10, 43, 68, 0.2);
}

/* ============================================
   SLOT BTN
   ============================================ */
.slot-btn {
    transition: var(--transition);
    font-weight: 600;
    border-width: 2px;
}

.slot-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(10, 43, 68, 0.2);
    border-color: var(--primary);
}

/* ============================================
   MODAL USUARIO MOBILE
   ============================================ */
.user-modal .modal-content {
    border: none;
    border-radius: 28px 28px 0 0;
    box-shadow: var(--shadow-xl);
    margin-top: auto;
}

.user-modal .modal-header {
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem 0.8rem;
}

.user-modal .modal-header .modal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

.user-modal .modal-body {
    padding: 0.5rem 0.5rem 1.5rem;
}

.user-modal .user-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 16px;
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.user-modal .user-menu-item:hover {
    background: var(--gray-100);
}

.user-modal .user-menu-item .menu-icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-icon-bg.primary { background: #eef2ff; color: var(--primary); }
.menu-icon-bg.success { background: #dcfce7; color: #16a34a; }
.menu-icon-bg.warning { background: #fef3c7; color: #f97316; }
.menu-icon-bg.danger { background: #fef2f2; color: #dc2626; }

.user-modal .user-menu-item .menu-text { flex: 1; }
.user-modal .user-menu-item .menu-subtext {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 400;
}

.user-modal .user-info-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    margin: 0.5rem 0.8rem 1rem;
    color: white;
}

.user-modal .user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-modal .user-fullname {
    font-weight: 700;
    font-size: 1.1rem;
}

.user-modal .user-email {
    font-size: 0.85rem;
    opacity: 0.8;
}

.user-modal .user-role-badge-modal {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

/* ============================================
   TOAST
   ============================================ */
.toast-notify {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    min-width: 280px;
    max-width: 90%;
    border-radius: 16px;
    border: none;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.especialidad-card-premium,
.medico-card-premium,
.servicio-card-premium,
.horario-card-premium,
.feature-card {
    animation: fadeInUp 0.5s ease-out both;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .section-title-premium { font-size: 2.25rem; }
    .navbar-nav {
        padding-top: 1rem;
    }
    .navbar-nav .nav-item {
        padding: 0.3rem 0;
    }
}

@media (max-width: 768px) {
    .top-bar { font-size: 0.75rem; }

    .user-dropdown-desktop { display: none !important; }
    .user-modal-trigger { display: block !important; }

    .user-name-display {
        max-width: 80px;
        font-size: 0.8rem;
    }

    .btn-login {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .hero-premium {
        padding: 60px 0 120px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-subtitle { font-size: 1.1rem; }
    .hero-description { font-size: 1rem; margin: 0 auto 1.5rem; }
    .hero-actions { justify-content: center; }

    .section-premium { padding: 3.5rem 0; }
    .section-title-premium { font-size: 1.85rem; }
    .section-subtitle { font-size: 1rem; }

    .stat-value { font-size: 1.85rem; }
    .stat-label { font-size: 0.8rem; }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 24px;
        font-size: 0.9rem;
        width: 100%;
    }

    .medico-img-lg {
        width: 90px;
        height: 90px;
    }

    #medicoDetalleBody .border-end {
        border-right: none !important;
        border-bottom: 1px solid var(--gray-100);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .info-image-wrapper {
        padding: 3rem 2rem;
        min-height: 300px;
    }
    .info-image-icon { font-size: 5rem; }
    .info-image-badge { font-size: 0.75rem; padding: 8px 18px; }

    .modal-content-premium { border-radius: 24px; }
    .modal-body-premium { padding: 1.5rem 1.25rem; }

    .toast-notify {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        min-width: auto;
    }

    .footer-premium { padding: 3rem 0 0; }
    .footer-bottom { margin-top: 2rem; text-align: center; }
    .footer-bottom .text-md-end { margin-top: 0.5rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .hero-badge { font-size: 0.75rem; padding: 6px 14px; }

    .section-title-premium { font-size: 1.6rem; }
    .esp-icon-premium { font-size: 2.25rem; }
    .medico-avatar-premium { width: 80px; height: 80px; font-size: 1.4rem; }
}