:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #20c997;
    --accent: #6f42c1;
    --dark: #1a1a2e;
    --light-bg: #f0f4f8;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --card-hover-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
    color: #333;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    padding: 0.8rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(26, 26, 46, 0.98);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 1px;
}

.navbar-brand .quantum-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1.2rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(32, 201, 151, 0.3); }
    50% { box-shadow: 0 0 20px rgba(32, 201, 151, 0.6); }
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
    border-radius: 8px;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #1a1a2e 50%, #16213e 100%);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/App/Layout/assets/img/background-index.png') center/cover no-repeat;
    opacity: 0.25;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(32, 201, 151, 0.3);
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--secondary) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero {
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.5);
    color: #fff;
}

.btn-hero-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    background: transparent;
}

.btn-hero-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(32, 201, 151, 0.1);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-title .title-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0.8rem auto;
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Search & Filter Bar */
.filter-bar {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
}

.search-box input {
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 12px 20px 12px 50px;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    outline: none;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 2px solid #e9ecef;
    background: #fff;
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

/* Analysis Cards */
.analysis-section {
    padding: 5rem 0;
}

.analysis-section:nth-child(even) {
    background: #fff;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-right: 15px;
    flex-shrink: 0;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.category-header p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.analysis-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.analysis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: transparent;
}

.analysis-card:hover::before {
    opacity: 1;
}

.analysis-card .card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.analysis-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.analysis-card .card-desc {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.analysis-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.card-tag {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary);
}

.card-tag.gender {
    background: rgba(111, 66, 193, 0.08);
    color: var(--accent);
}

.card-tag.version {
    background: rgba(255, 193, 7, 0.12);
    color: #e6a800;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(32,201,151,0.1) 0%, transparent 70%);
}

.contact-section .section-title h2 {
    color: #fff;
}

.contact-section .section-title p {
    color: rgba(255,255,255,0.7);
}

.contact-info-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-text h6 {
    font-weight: 600;
    margin-bottom: 3px;
}

.contact-info-text p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Calendar */
.calendar-container {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    color: #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

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

.calendar-header h5 {
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.calendar-nav {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #555;
}

.calendar-nav:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #adb5bd;
    text-transform: uppercase;
    padding: 5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
    position: relative;
}

.calendar-day:hover:not(.empty):not(.past) {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
}

.calendar-day.today {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.calendar-day.selected {
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
}

.calendar-day.past {
    color: #ccc;
    cursor: default;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.has-slots::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary);
}

.time-slots {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.time-slots h6 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.time-slot {
    padding: 8px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
}

.time-slot:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.time-slot.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.time-slot.unavailable {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    border-color: #f0f0f0;
}

/* Appointment Form */
.appointment-form {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
}

.form-group label {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-control:focus, .form-select:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.15);
    color: #fff;
}

.form-select option {
    background: var(--dark);
    color: #fff;
}

.btn-appoint {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-appoint:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.4);
    color: #fff;
}

/* Selected Analysis Summary */
.selected-summary {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.selected-summary .badge-analysis {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.8rem;
    margin: 2px;
    cursor: pointer;
}

.selected-summary .badge-analysis .remove {
    margin-left: 5px;
    opacity: 0.7;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--dark), #16213e);
    color: #fff;
    border: none;
    padding: 1.5rem 2rem;
}

.modal-header .close {
    color: #fff;
    opacity: 0.7;
    text-shadow: none;
}

.modal-body {
    padding: 2rem;
}

.modal-body h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.modal-body .info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.modal-body .info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #555;
    min-width: 140px;
}

.info-value {
    color: #333;
}

/* Footer */
.footer {
    background: #0d1117;
    color: rgba(255,255,255,0.6);
    padding: 3rem 0 1.5rem;
}

.footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
}

/* Toast notification */
.toast-container {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;
}

.custom-toast {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    margin-bottom: 10px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.custom-toast.success {
    border-left: 4px solid var(--secondary);
}

.custom-toast .toast-icon {
    font-size: 1.5rem;
    color: var(--secondary);
}

.custom-toast .toast-msg {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
}

/* Loading animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: rgba(255,255,255,0.6);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .filter-buttons {
        justify-content: center;
    }

    .time-slot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title h2 {
        font-size: 1.7rem;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Selected analyses counter */
.counter-badge {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
    z-index: 998;
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.counter-badge.show {
    display: flex;
}

.counter-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.5);
}


/* Selected Date and Time Fields - Dark Background */
.appointment-form .form-control[readonly],
.appointment-form input[readonly],
.appointment-form .fecha-seleccionada,
.appointment-form .hora-seleccionada,
.appointment-form input[type="text"][readonly] {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #fff !important;
}

.appointment-form .form-control[readonly]::placeholder,
.appointment-form input[readonly]::placeholder {
    color: rgba(255,255,255,0.4) !important;
}

/* If the fields have specific classes or IDs, target them directly */
.appointment-form .selected-date-field,
.appointment-form .selected-time-field {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}

/* Calendar day selected - ensure text is visible */
.calendar-day.selected {
    background: var(--secondary) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* Time slot selected - ensure text is visible */
.time-slot.selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}