@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&family=Open+Sans:wght@400;600;700&display=swap');

body {
    background-color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    padding-top: 76px;
    /* Adjust based on navbar height to prevent overlay */
}

/* Header Section */
header {
    background-color: white;
}

.banner-content {
    padding: 4rem 0;
    background-color: #F3F6FC;
}

@media (min-width: 992px) {
    .banner-content {
        height: 736px;
        padding: 0;
    }
}

/* Navbar customization */
.navbar {
    background-color: #FFFFFF !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.navbar-brand img,
.navbar-brand svg {
    /* Logo styling if needed, otherwise handled by Bootstrap sizing classes */
    max-height: 50px;
}

.nav-link {
    color: #000000 !important;
    /* Ensure black text for readability on white */
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: #396FC8 !important;
}

/* Custom Button Class */
.btn-agendar {
    background-color: #396FC8 !important;
    color: white !important;
    border-radius: 9999px !important;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-conocer {
    background-color: #FFFFFF !important;
    color: #396FC8 !important;
    border: 1px solid #396FC8 !important;
    border-radius: 9999px !important;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-left: 1rem;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 36px;
    /* Mobile size */
    color: #19191F;
    line-height: 1.2;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 60px;
        line-height: 1.1;
    }
}

.hero-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: rgba(25, 25, 31, 0.9);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.hero-image {
    max-height: 428px;
    width: auto;
    max-width: 100%;
}

/* Services Section */
.services-section {
    width: 100%;
    height: auto;
    /* Default to auto for mobile */
    min-height: 746px;
    /* Use min-height instead of fixed height to prevent overflow issues */
    background-color: #FAFAFB;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    /* Add padding for mobile */
}

.services-title {
    font-family: 'Montserrat', sans-serif;
    color: #171A1F;
    font-weight: 700;
    /* Bold/Semibold */
    text-align: center;
    margin-bottom: 3rem;
    /* "Margen inferior amplio" */
}

.service-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    height: 100%;
    padding: 2rem;
    text-align: center;
    border: none;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (min-width: 992px) {
    .services-section {
        height: 746px;
        padding: 0;
        /* Reset padding if using fixed height/flex centering */
    }

    .service-card {
        width: 288px;
        margin: 0 auto;
        /* Ensure centering within the column */
        height: 394px;
        border-radius: 10px;
        border: 1px solid #DEE1E6;
        box-shadow: 0px 0px 1px #171a1f0D, 0px 0px 2px #171a1f14;
    }
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.service-card-title {
    font-family: 'Montserrat', sans-serif;
    color: #171A1F;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card-text {
    font-family: 'Open Sans', sans-serif;
    color: #565D6D;
    font-size: 16px;
    line-height: 1.6;
}

/* Testimonial Section */
.testimonial-section {
    padding: 5rem 0;
    background-color: #FFFFFF;
    /* White to alternate/clean look */
    text-align: center;
    height: auto;
    /* Ensure responsiveness */
}

.testimonial-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    /* Bold/Semibold */
    font-size: 36px;
    color: #171A1A;
    margin-bottom: 2rem;
}

.rating-block {
    margin-bottom: 4rem;
    /* Margen amplio separating title/rating from cards */
}

.stars img {
    width: 24px;
    height: 24px;
    margin: 0 2px;
}

.rating-highlight {
    font-family: 'Montserrat', sans-serif;
    /* Assuming Montserrat for hierarchy */
    font-weight: 700;
    font-size: 20px;
    color: #171A1F;
    margin-bottom: 0.5rem;
}

.rating-subtext {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #666;
    /* Softer tone */
}

/* Testimonial Cards */
.testimonial-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #F0F0F0;
    /* Subtle border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Subtle shadow */
    padding: 2.5rem;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #171A1F;
    font-style: italic;
    /* "Entre comillas" usually implies italic styling too, or just literal quotes */
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #396FC8;
    /* Blue accent color */
    margin-bottom: 0;
}

/* Specialized Services Section */
.specialized-services-section {
    background-color: #F3F6FC;
    padding: 3rem 0;
    /* Mobile default */
}

.specialized-title {
    font-family: 'Montserrat', sans-serif;
    color: #19191F;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 28px;
    /* Mobile size */
}

.specialized-card {
    height: 300px;
    /* Mobile height */
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

/* Gradient Overlay */
.specialized-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
}

.specialized-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    color: white;
    text-align: left;
}

.specialized-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 0.5rem;
    color: white;
}

.specialized-card-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: white;
    margin-bottom: 0;
    line-height: 1.5;
}

@media (min-width: 992px) {
    .specialized-services-section {
        height: 592px;
        padding: 4rem 0;
    }

    .specialized-title {
        font-size: 36px;
        margin-bottom: 3rem;
    }

    .specialized-col {
        height: 100%;
        /* For row height matching if row is flex */
        /* But row height isn't explicitly set to fill section minus title... fix: use h-100 logic or explicit height */
    }

    .specialized-card {
        height: 400px;
        /* Fixed height for desktop to fit within 592px section minus title/padding */
        /* Or simpler: make them fill the column if row has height */
    }
}

/* Values Section */
.values-section {
    background-color: #FFFFFF;
    padding: 5rem 0;
    text-align: center;
}

.values-title {
    font-family: 'Montserrat', sans-serif;
    color: #171A1F;
    font-weight: 700;
    font-size: 28px;
    /* Mobile size */
    margin-bottom: 3rem;
}

.value-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #F0F0F0;
    /* Subtle border */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); Optional subtle shadow */
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.value-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #171A1F;
    margin-bottom: 0.5rem;
}

.value-card-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #565D6D;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .values-title {
        font-size: 36px;
    }
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
    background-color: #FAFAFB;
    /* Alternate background */
}

.blog-title {
    font-family: 'Montserrat', sans-serif;
    color: #171A1F;
    font-weight: 700;
    font-size: 28px;
    /* Mobile size */
    margin-bottom: 3rem;
    text-align: center;
}

.blog-card {
    border: 1px solid #F0F0F0;
    /* Subtle border */
    border-radius: 12px;
    background-color: #FFFFFF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
    /* Ensure image respects radius */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.blog-card-title {
    font-family: 'Montserrat', sans-serif;
    color: #171A1F;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card-text {
    font-family: 'Open Sans', sans-serif;
    color: #565D6D;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-link {
    font-family: 'Open Sans', sans-serif;
    color: #396FC8;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-link:hover {
    color: #295296;
    text-decoration: underline;
}

/* Button override/customization if needed */
.btn-outline-primary {
    color: #396FC8;
    border-color: #396FC8;
}

.btn-outline-primary:hover {
    background-color: #396FC8;
    border-color: #396FC8;
    color: white;
}

@media (min-width: 992px) {
    .blog-title {
        font-size: 36px;
    }
}

/* Contact Section */
.contact-section {
    background-color: #F3F6FC;
    padding: 5rem 0;
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    color: #19191F;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 3rem;
    text-align: center;
}

/* Form Styles */
.contact-form-container {
    background-color: #F3F6FC;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 0px 1px rgba(23, 26, 31, 0.08), 0px 0px 2px rgba(23, 26, 31, 0.08);
    /* #171a1f with alpha */
}

.form-title,
.info-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #19191F;
    margin-bottom: 1.5rem;
    font-size: 22px;
}

.form-label {
    font-family: 'Open Sans', sans-serif;
    color: #565D6D;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    background-color: #DEE1E6;
    border: 1px solid #DEE1E6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Open Sans', sans-serif;
    color: #171A1F;
    outline: none;
}

.form-control:focus {
    background-color: #DEE1E6;
    border-color: #396FC8;
    /* Focus color preference or keep same */
    box-shadow: none;
}

.form-control::placeholder {
    color: #9095A1;
}

.btn-submit {
    background-color: #396FC8;
    border-color: #396FC8;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #295296;
    border-color: #295296;
}

/* Contact Info Box */
.contact-info-box {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #F0F0F0;
}

.contact-list {
    margin-bottom: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    /* Align top for title+desc */
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon-wrapper {
    flex-shrink: 0;
    margin-right: 1rem;
    margin-top: 2px;
    /* Slight adjustment */
}

.contact-icon {
    width: 24px;
    height: 24px;
}

.contact-item-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #19191F;
    font-size: 16px;
    margin-bottom: 0.25rem;
}

.contact-item-desc {
    font-family: 'Open Sans', sans-serif;
    color: #565D6D;
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Map */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #DEE1E6;
    background-color: #EFEFEF;
}

/* Footer Section */
.site-footer {
    padding-top: 5rem;
    padding-bottom: 2rem;
    background-color: white;
    /* Default background */
}

.footer-logo {
    /* Assuming user wants the logo to be somewhat substantial, but prompted "max-width: 269px" for container? 
       That likely refers to the column width or something. I'll stick to a reasonable max-width for the logo. */
    max-width: 200px;
    height: auto;
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    color: #171A1F;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 18px;
}

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-list a {
    font-family: 'Open Sans', sans-serif;
    color: #171A1FCC;
    /* With opacity/alpha */
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-list a:hover {
    color: #396FC8;
}

.footer-divider {
    border-color: #EDEFF2;
    opacity: 1;
}

.copyright-text {
    font-family: 'Open Sans', sans-serif;
    color: #171A1FCC;
    font-size: 14px;
}

.social-link img {
    width: 24px;
    height: 24px;
    transition: opacity 0.2s;
}

.social-link:hover img {
    opacity: 0.7;
}

@media (min-width: 992px) {
    .contact-section {
        min-height: 1090px;
        /* As requested */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .contact-title {
        font-size: 40px;
        margin-bottom: 4rem;
    }
}

.btn-agendar:hover {
    background-color: #295296 !important;
    /* Darker shade for hover */
    color: white !important;
}

/* Footer Section */
footer {
    background-color: #FFFFFF;
    padding-top: 3rem;
    padding-bottom: 1rem;
    font-family: 'Open Sans', sans-serif;
}

.footer-logo {
    width: 150px;
    /* Fixed width for better consistency */
    max-width: 100%;
    display: block;
}

.footer-col-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.footer-link {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: #396FC8FF;
}

.footer-divider {
    border-top: 1px solid #dee2e6;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.copyright {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}