:root {
    /* Colors - Premium Medical Palette */
    --primary-color: #2C3E50;
    /* Deep Slate Blue - Professional, trustworthy */
    --secondary-color: #546E7A;
    /* Neutral Dark Gray-Blue - Subtext */

    --accent-pink: #E8D5D9;
    /* Soft Dusty Rose - Accents/Underlines */
    --accent-pink-darkish: #C4A4AC;
    /* Darker Dusty Rose - Hover */

    --accent-blue: #F2F7FB;
    /* Very Soft Light Blue - Section Backgrounds */
    --accent-blue-darkish: #A8D0DB;
    /* Muted Blue - Accents */

    --white: #FFFFFF;
    --light-grey: #F2F7FB;
    /* REPLACED GRAY WITH SOFT BLUE */
    --border-color: #E0E6ED;

    --gradient-hero-home: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.75));
    --gradient-hero-empresas: linear-gradient(to right, rgba(242, 247, 251, 0.95), rgba(255, 255, 255, 0.4));

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(44, 62, 80, 0.05);
    /* Blue tinted shadow */
    --shadow-md: 0 10px 30px rgba(44, 62, 80, 0.08);
    --shadow-lg: 0 20px 40px rgba(44, 62, 80, 0.12);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Reset & Base HTML */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--primary-color);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

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

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.text-highlight {
    color: #6088A6;
    /* Soft blue for text emphasis */
    font-style: italic;
}

/* Section Dividers */
.divider-line {
    width: 80px;
    height: 3px;
    background-color: var(--accent-pink);
    margin: 2rem auto;
    border-radius: var(--radius-full);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--accent-pink);
    color: var(--primary-color);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--accent-pink-darkish);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Background Gradients & Colors */
.bg-light {
    background-color: var(--accent-blue);
}

/* Mapped to soft blue */
.bg-white {
    background-color: var(--white);
}

.bg-pink {
    background-color: var(--accent-pink);
}

.bg-blue {
    background-color: var(--accent-blue);
}

.bg-gradient-subtle {
    background: linear-gradient(180deg, var(--white) 0%, var(--accent-blue) 100%);
}

/* Components */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-pink-darkish);
}

/* Premium Institutional Cards */
.premium-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.05);
    /* Soft shadow as requested */
    border: 1px solid rgba(224, 230, 237, 0.5);
    /* Very subtle border */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-pink);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.08);
}

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

.premium-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.premium-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.premium-card h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-pink);
    margin-top: 0.5rem;
    border-radius: var(--radius-full);
}

.premium-card-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.premium-card-list li i {
    color: var(--accent-blue-darkish);
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.premium-card-list li strong {
    color: var(--primary-color);
    margin-right: 0.3rem;
    font-weight: 600;
}

.section-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-pink-darkish);
    margin: var(--spacing-xs) auto 0;
    border-radius: var(--radius-full);
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    /* Tightened padding */
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.logo img {
    max-height: 100px;
    /* Fixed height constraint */
    width: auto;
    display: block;
}

.text-link:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
    text-decoration-color: var(--accent-pink);
    text-underline-offset: 4px;
}

.desktop-nav ul li {
    position: relative;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    display: block;
}

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


/* Active Navigation State */
.nav-link {
    position: relative;
    /* transition: color 0.3s ease; Already handled by generic a tag rule, but good to be explicit if needed */
}

.nav-link.active {
    color: #a67c8b !important;
    /* soft brand accent - matches requested color */
    font-weight: 600;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #a67c8b;
    border-radius: 2px;
}

/* Hover Behavior for Nav Links */
.nav-link:hover {
    color: var(--secondary-color);
    /* Slightly darken text */
}

/* Submenu Styles */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    display: block;
}

.submenu a {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.submenu a:hover {
    background: var(--accent-blue);
    color: var(--primary-color);
    padding-left: 2rem;
}

.submenu li:last-child a {
    border-bottom: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.hero-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--accent-pink-darkish);
}

/* Feature Items */
.feature-item {
    padding: var(--spacing-sm);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-item i {
    transition: color 0.3s ease;
}

.feature-item:hover i {
    color: var(--primary-color) !important;
}

/* Tech Items */
.tech-item {
    transition: all 0.3s ease;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
}

.tech-item:hover {
    transform: scale(1.05);
    background-color: var(--accent-blue);
}

/* Google Map */
.map-section {
    position: relative;
    margin-top: var(--spacing-lg);
    border-top: 5px solid var(--primary-color);
}

.map-section iframe {
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-section:hover iframe {
    filter: none;
}

/* Founder Section */
.founder-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Booking Wizard (Keeping functionality, improving style) */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    background: var(--white);
    z-index: 1;
    padding: 0 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step.active {
    color: var(--primary-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--light-grey);
    color: var(--secondary-color);
    border-radius: 50%;
    border: 2px solid var(--border-color);
    font-weight: 700;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--accent-pink);
    color: var(--primary-color);
    border-color: var(--accent-pink-darkish);
    transform: scale(1.1);
}

.option-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-card:hover,
.option-card.selected {
    border-color: var(--accent-pink-darkish);
    background: var(--accent-pink);
    box-shadow: var(--shadow-md);
}

/* Form Elements */
input,
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-blue-darkish);
    box-shadow: 0 0 0 3px rgba(188, 224, 232, 0.3);
}

label {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Header */
@media (max-width: 992px) {
    .desktop-nav {
        display: none !important;
    }

    .header-actions {
        display: none !important;
        /* Hide CTA actions on mobile initially, or move inside menu */
    }

    .mobile-menu-toggle {
        display: block !important;
        cursor: pointer;
    }

    /* Mobile Menu Drawer (Simplified implementation) */
    .mobile-nav {
        display: none; /* Deprecated old menu */
    }

    #mobileMenu.is-open {
        right: 0 !important;
    }

    #mobileMenuOverlay.is-open {
        display: block !important;
        opacity: 1 !important;
    }

    body.menu-open {
        overflow: hidden;
    }

    .main-header .container {
        justify-content: space-between;
    }
}

/* Process/Timeline Steps (Modelo de Atención) */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-step {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue-darkish);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    background: var(--primary-color);
    color: var(--white);
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.process-step p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.5;
}

/* Differentiator Cards */
.differentiator-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.differentiator-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-pink);
}

.diff-icon {
    font-size: 2rem;
    color: var(--accent-pink-darkish);
    margin-bottom: 1.5rem;
}

.differentiator-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}