:root {
    /* Palette - Approximate hex codes based on Pantone descriptions */
    --color-primary: #19212D;
    /* Dress Blues - Dark Navy */
    --color-bg: #F9F9F7;
    /* Lucent White - Soft Off-white */
    --color-accent-dental: #A0C6C7;
    /* Eggshell Blue */
    --color-accent-aesthetic: #D6A4A1;
    /* Dusty Pink */
    --color-accent-natural: #A68E80;
    /* Natural Earth */
    --color-white: #FFFFFF;

    /* Typography */
    --font-headings: 'Montserrat', 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Layout */
    --header-height: 80px;
    --border-radius-organic: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1,
h2,
h3,
.nav-link,
.btn {
    font-family: var(--font-headings);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background-color: var(--color-white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
    text-decoration: none;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg);
}

.nav-menu ul {
    display: none;
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        gap: 2rem;
        text-align: center;
    }

    .nav-link {
        font-size: 1.2rem;
    }
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .nav-menu ul {
        display: flex;
        list-style: none;
        gap: 2rem;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent-dental);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--header-height) + 2rem) 1rem 2rem;
    /* Background Image with Overlay for readability */
    background: linear-gradient(rgba(25, 33, 45, 0.7), rgba(25, 33, 45, 0.5)), url('resources/fachada clinica.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Abstract Organic decorative shape */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: rgba(160, 198, 199, 0.1);
    /* Dental accent very subtle */
    border-radius: var(--border-radius-organic);
    z-index: 0;
    display: none;
    /* Hiding abstract shape to let the facade shine, or make it very subtle */
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    /* White text for contrast */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    /* Slightly grounded/architectural */
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-dental {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-dental:hover {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-aesthetic {
    background-color: var(--color-accent-aesthetic);
    /* Warmth */
    color: var(--color-white);
}

.btn-aesthetic:hover {
    background-color: transparent;
    border-color: var(--color-accent-aesthetic);
    color: var(--color-accent-aesthetic);
}

/* Services Split Section */
.services-split {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.service-column {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.service-dental {
    background-color: #F0F6F6;
    /* Very light tint of dental accent */
    color: var(--color-primary);
}

.service-aesthetic {
    background-color: #FAF4F4;
    /* Very light tint of warm accent */
    color: var(--color-primary);
}

.service-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    object-fit: cover;
}

/* Team Section */
.team-section {
    padding: 4rem 2rem;
    background-color: var(--color-white);
    text-align: center;
}

.team-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.team-img {
    max-width: 100%;
    max-height: 600px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Decorative partial curves for separation */
.service-dental h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent-dental);
    margin: 1rem auto;
}

.service-aesthetic h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent-aesthetic);
    margin: 1rem auto;
}

.service-column h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-column p {
    max-width: 400px;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Breadcrumbs */
.breadcrumb-nav {
    padding: calc(var(--header-height) + 1rem) 5% 1rem;
    background-color: var(--color-bg);
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 0.5rem;
    color: #ccc;
    font-size: 0.8rem;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--color-primary);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
    color: var(--color-accent-dental);
}

.breadcrumb li.active {
    font-weight: 600;
    opacity: 1;
}

/* LOCATION PAGE STYLES */

.page-location body {
    background-color: #F4F6F9 !important;
    /* Slightly distinct bg for location page if needed, or keep same */
}

/* Location Header */
.loc-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.loc-pre-title {
    font-size: 0.9rem;
    color: var(--color-accent-dental);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.loc-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.loc-header h1 strong {
    color: var(--color-accent-dental);
}

.loc-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-family: var(--font-body);
}

/* Container for Cards */
.loc-content-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem 6rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Metro Large Card */
.metro-large-card {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.metro-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.metro-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.metro-label {
    background-color: #E8F5F5;
    color: var(--color-accent-dental);
    /* Or a bit darker for text readability if needed */
    color: #5A8F91;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Timeline Visualization */
.metro-timeline-container {
    position: relative;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 120px;
}

/* The Line background */
.metro-line-bg {
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 8px;
    background-color: #eee;
    z-index: 0;
    transform: translateY(-50%);
    border-radius: 4px;
}

/* The Active Green Line */
.metro-line-active {
    position: absolute;
    top: 50%;
    left: 40px;
    width: 60%;
    /* Conceptual distance */
    height: 8px;
    background-color: #2ECC71;
    /* Metro green or use dental accent */
    background-color: var(--color-accent-dental);
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 4px;
}

/* Dotted remaining path */
.metro-line-active::after {
    content: '100 metros';
    position: absolute;
    right: -70px;
    top: -25px;
    background-color: #E8F5F5;
    color: var(--color-accent-dental);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.timeline-point {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 140px;
}

.point-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-white);
    border: 3px solid #eee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #ccc;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.timeline-point.start .point-icon {
    border-color: var(--color-accent-dental);
    color: var(--color-accent-dental);
    /* Metro Green style */
}

.timeline-point.end .point-icon {
    border-color: var(--color-primary);
    /* Destination */
    color: var(--color-white);
    background-color: var(--color-accent-dental);
    /* Filled */
    border-color: var(--color-accent-dental);
}

.point-name {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.point-desc {
    font-size: 0.85rem;
    color: #888;
}

.metro-footer-note {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-top: 1rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.info-card {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid transparent;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card.card-address {
    border-left-color: var(--color-accent-dental);
}

.info-card.card-hours {
    border-left-color: var(--color-accent-aesthetic);
}

/* Aesthetic/Pinkish for variety or Primary */
.info-card.card-contact {
    border-left-color: #6C5CE7;
    /* Or Primary */
    border-left-color: var(--color-primary);
}

.info-icon {
    width: 48px;
    height: 48px;
    background-color: #F5F7FA;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.card-address .info-icon {
    color: var(--color-accent-dental);
    background-color: #E8F5F5;
}

.card-hours .info-icon {
    color: var(--color-accent-aesthetic);
    background-color: #FAF4F4;
}

.card-contact .info-icon {
    color: var(--color-primary);
    background-color: #EAECEF;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.info-content {
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
}

.info-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-accent-dental);
    text-decoration: none;
    font-weight: 600;
}

.info-link:hover {
    text-decoration: underline;
}

/* Hours Table */
.hours-table {
    width: 100%;
    margin-top: 0.5rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.hours-label {
    font-weight: 600;
    color: #555;
}

.hours-val {
    color: #888;
}

.hours-val.closed {
    color: var(--color-accent-aesthetic);
}

/* Contact Specifics */
.contact-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary-solid {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary-solid:hover {
    background-color: #2c3846;
}

.btn-secondary-light {
    background-color: #E8EAF6;
    /* Light indigo/blue tint */
    color: var(--color-primary);
}

.btn-secondary-light:hover {
    background-color: #dbe0fc;
}


/* Bus Banner */
.bus-banner {
    background-color: #1A3C40;
    /* Dark Teal similar to image */
    background-color: #153839;
    /* Deep Teal/Green */
    color: white;
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(21, 56, 57, 0.2);
}

.bus-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.bus-content p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    font-size: 1rem;
}

.btn-white {
    background-color: white;
    color: #153839;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
}

.btn-white:hover {
    background-color: #f0f0f0;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 2rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }

    .services-split {
        grid-template-columns: 1fr 1fr;
    }

    /* Add an organic wave separator between the columns if desired,
       or just keep the clean split which is very "architectural".
       Let's add a curved overlap for the aesthetic side. */

    /* To simulate the "overlap with waves" from papelería
       We can use clip-path on one of the columns or a pseudo element.
       For cleanliness in CSS, we'll keep the split clean but maybe add an organic shape in the background. */
}