:root {
    /* Professional Medical Colors - Vibrant & Premium */
    --primary: #0369a1; /* Vibrant Sapphire */
    --primary-light: #0ea5e9; /* Light Cyan */
    --secondary: #059669; /* Emerald Green */
    --secondary-light: #d1fae5;
    --accent: #f59e0b; /* Amber */
    
    --bg-main: #f0fdfa; /* Very light teal background */
    --bg-card: #ffffff; /* Clean white cards */
    
    --text-main: #0f172a; /* Dark text */
    --text-muted: #475569;
    --text-inverse: #ffffff;
    
    --border-color: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 0;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-accent {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-inverse);
}

.btn-accent {
    background: var(--secondary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Main Layout Setup */
main {
    margin-top: 5rem;
    min-height: calc(100vh - 5rem - 300px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7rem 0 5rem 8%;
    background: linear-gradient(135deg, #e0f2fe 0%, #d1fae5 100%);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    min-height: 80vh;
}

.hero-content {
    flex: 0 1 45%;
    max-width: 700px;
    z-index: 2;
}

.hero-visual {
    flex: 0 1 55%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--primary-light);
    border-radius: 9999px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.highlight {
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(2deg);
}

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

.stat-text {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Page Headers */
.page-header {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 5%;
    text-align: center;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1);
}
.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}
.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text-muted);
}

/* --- CALENDAR STYLES --- */
.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.calendar-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.date-picker {
    padding: 0.5rem;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border-color);
}

.time-slot {
    background: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.time-slot.available {
    cursor: pointer;
}

.time-slot.available:hover {
    background: var(--secondary-light);
}

.time-slot.available .status-btn {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.time-slot.taken {
    background: #f8fafc;
    color: var(--text-muted);
    cursor: not-allowed;
}

.time-slot.taken .status-btn {
    background: #e2e8f0;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.time-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

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

.modal-header h2 {
    color: var(--primary);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--text-main);
    color: white;
    padding: 4rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #94a3b8;
}

.footer-links-group h3, .footer-contact h3 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.footer-links-group ul {
    list-style: none;
}

.footer-links-group ul li {
    margin-bottom: 0.75rem;
}

.footer-links-group a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-group a:hover {
    color: white;
}

.footer-contact p {
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 7rem 5% 3rem 5%;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-actions .btn-large {
        width: 100%;
    }
    
    .hero-composition {
        height: 380px;
        margin-top: 2rem;
    }
    
    .blob-1 { width: 200px; height: 200px; right: 5%; top: 35%; }
    .blob-2 { width: 140px; height: 140px; left: 5%; top: 5%; right: auto; }
    .blob-3 { width: 160px; height: 160px; left: 20%; bottom: 5%; right: auto; }
    
    .menu-toggle {
        display: block !important;
    }
    
    .nav-actions {
        display: none; /* Ocultamos el botón principal en móviles para dar espacio al menú */
    }
    
    .mobile-only-link {
        display: block !important;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    #nav-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }
    
    #nav-container.active {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

/* Premium Animations & Glassmorphism */
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.stat-card-2 {
    position: absolute;
    bottom: -20px;
    right: -20px;
    transform: rotate(-3deg);
    z-index: 2;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

.pulse-anim {
    animation: pulse-soft 2s infinite;
}

.shadow-hover:hover {
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.15);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: spin 30s linear infinite;
}

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

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

.testimonial-source {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}


/* Chatbot Mimito Styles */
#mimito-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chatbot-body {
    display: none;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg-bot {
    background: white;
    padding: 1rem;
    border-radius: 12px 12px 12px 0;
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
    align-self: flex-start;
    max-width: 85%;
    font-size: 0.95rem;
}

.msg-user {
    background: var(--primary-light);
    color: white;
    padding: 1rem;
    border-radius: 12px 12px 0 12px;
    box-shadow: var(--shadow-sm);
    align-self: flex-end;
    max-width: 85%;
    font-size: 0.95rem;
}

.chat-chip {
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
    display: block;
    width: 100%;
    text-align: left;
}

.chat-chip:hover {
    background: var(--primary);
    color: white;
}

.chat-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    outline: none;
}

.chatbot-whatsapp-btn {
    display: block;
    background: #25D366;
    color: white;
    text-align: center;
    padding: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.chatbot-whatsapp-btn:hover {
    background: #128C7E;
}

/* Custom Hero Blob Composition */
.hero-composition {
    position: relative;
    width: 100%;
    height: 500px;
}
.blob-img {
    position: absolute;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    border: 6px solid #fff;
}
.blob-img:hover {
    transform: translateY(-10px) scale(1.05);
}
.blob-1 {
    width: 280px;
    height: 280px;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: 2;
    background-color: #ffd166;
}
.blob-1:hover {
    transform: translateY(calc(-50% - 10px)) scale(1.05);
}
.blob-2 {
    width: 200px;
    height: 200px;
    right: 45%;
    top: 10%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
    background-color: #ef476f;
}
.blob-3 {
    width: 220px;
    height: 220px;
    right: 35%;
    bottom: 5%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 3;
    background-color: #06d6a0;
}
.particle {
    position: absolute;
    background: var(--primary);
    opacity: 0.8;
}
.particle-1 { width: 18px; height: 18px; top: 15%; right: 10%; transform: rotate(45deg); background-color: #ffd166; }
.particle-2 { width: 14px; height: 14px; bottom: 35%; right: 0%; transform: rotate(20deg); background-color: #118ab2; }
.particle-3 { width: 22px; height: 22px; top: 40%; right: 65%; transform: rotate(60deg); background-color: #ef476f; }
.particle-4 { width: 12px; height: 12px; bottom: 15%; right: 45%; transform: rotate(15deg); background-color: #06d6a0; }
