/* Fundesha Design System - Clean & Warm */

:root {
    --color-primary: #00AEEF;
    /* Celeste Vibrante */
    --color-primary-dark: #008CBF;
    /* Darker shade for hover */
    --color-footer-bg: #002D5A;
    /* Azul Marino Profundo */
    --color-text: #333333;
    /* Dark Gray */
    --color-text-light: #666666;
    /* Medium Gray */
    --color-white: #FFFFFF;
    --color-whatsapp: #25D366;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    /* Using Montserrat for consistency as requested */
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

ul {
    list-style: none;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    /* Fully rounded */
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
    padding: 10px 0;
    width: 100%;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-footer-bg);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    font-size: 16px;
}

.nav-link:hover {
    color: var(--color-primary);
}

.header-cta {
    display: block;
}

/* Mobile Menu Button (Hamburger) */
.mobile-menu-btn {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    margin-right: -10px;
}

.auth-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Animation for X shape */
.mobile-menu-btn.open .auth-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open .auth-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .auth-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Menu Styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 999;
        border-top: 1px solid #eee;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 1002;
    }

    .logo-text {
        font-size: 20px;
    }

    .header-cta {
        display: none;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom-links a {
        margin: 0 10px;
    }
}

/* --- Main Content Placeholder --- */
main {
    flex: 1;
    padding: 60px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-white);
    padding: 60px 0 0 0;
    font-family: var(--font-body);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    /* 3 Columns */
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 15px;
    display: block;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 300px;
}

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

.social-icon {
    color: var(--color-white);
    font-size: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
    /* Subtle movement */
}

.contact-info p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.contact-link:hover {
    color: var(--color-primary);
    text-decoration-color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    margin-top: 20px;
}

.footer-bottom-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 20px;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

/* --- Floating Button --- */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 32px;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .header-cta {
        display: none;
        /* Hide CTA on smaller screens for now or create mobile menu */
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}



/* --- Accordion Styles --- */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-bottom: 60px;
}

details {
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

details[open] {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #fff;
    border-bottom: none;
}

summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-footer-bg);
    padding: 10px 0;
    font-size: 16px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 24px;
    color: var(--color-primary);
    font-weight: 300;
    margin-left: 10px;
}

details[open] summary::after {
    content: '-';
}

details p {
    margin-top: 10px;
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.6;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .faq-grid {
        gap: 20px;
    }
}

/* --- Carousel Styles --- */
.testimonials-section {
    background-color: #f4f8fb;
    padding: 80px 0;
    margin-top: 40px;
    /* Resetting full width trick for better grid centering */
    width: 100%;
    margin-left: 0;
    transform: none;
}

.carousel-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 25px;
    /* Espaciado exacto de 25px */
    padding: 40px 10px;
    /* Padding reducido lateralmente dentro del scroll */

    /* Centrado y Ancho */
    width: fit-content;
    max-width: 90%;
    /* 90% del ancho de pantalla para "aire" limpio */
    margin: 0 auto;
    /* Centrado automático */

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 320px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 5px solid var(--color-primary);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    font-size: 15px;
}

.stars {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 14px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-footer-bg);
    display: flex;
    align-items: center;
    gap: 10px;
}



/* --- About Us Page (Premium Healthcare) --- */
.about-hero {
    text-align: center;
    padding: 80px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.about-hero h1 {
    color: var(--color-footer-bg);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.about-hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.about-history {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-history img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-history-text h2 {
    color: var(--color-footer-bg);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-history-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.pillar-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Sombra casi invisible */
    text-align: center;
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.pillar-icon {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.pillar-card h3 {
    color: var(--color-footer-bg);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.pillar-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.commitment-banner {
    background-color: #E6F7FF;
    /* Celeste muy suave */
    padding: 100px 20px;
    text-align: center;
    margin-top: 60px;
}

.commitment-banner h2 {
    color: var(--color-footer-bg);
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-history {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Home Page (Professional Design) --- */

/* Hero Section */
.home-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: url('hero_home.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left aligned content */
    padding: 0 40px;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(230, 247, 255, 0.9) 0%, rgba(230, 247, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: 5%;
}

.home-hero h1 {
    font-size: 3.5rem;
    color: var(--color-footer-bg);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.home-hero p {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Trust Bar */
.trust-bar {
    background-color: #004A99;
    padding: 15px 0;
    color: white;
}

.trust-bar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
}

/* Services Section (Home) */
.home-services {
    padding: 80px 20px;
    text-align: center;
    background: white;
}

.section-title {
    color: var(--color-footer-bg);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 50px;
}

.services-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto 40px;
}

.service-card-home {
    flex: 1 1 250px;
    background: #f9f9f9;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}

.service-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--color-primary);
}

.service-icon-home {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: block;
}

.service-card-home h3 {
    color: var(--color-footer-bg);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card-home p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Clinic Section */
.clinic-section {
    padding: 80px 20px;
    background: #fff;
    max-width: var(--max-width);
    margin: 0 auto;
}

.clinic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.clinic-gallery {
    display: grid;
    gap: 20px;
}

.clinic-main-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.clinic-sub-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.clinic-sub-imgs img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.clinic-map-container {
    background: #f4f4f4;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.map-embed {
    flex: 1;
    width: 100%;
    border: none;
}

.map-info {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

/* Final CTA */
.final-cta {
    background-color: var(--color-primary);
    /* Celeste Fundesha */
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.final-cta h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: white;
    padding: 15px 30px;
    font-size: 1.125rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    background-color: #1ebc57;
}

@media (max-width: 768px) {
    .home-hero {
        height: auto;
        min-height: auto;
        padding: 40px 20px;
        background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('hero_home.png');
        background-position: center;
        background-size: cover;
        align-items: center;
    }

    .home-hero-content {
        margin-left: 0;
        text-align: center;
        max-width: 100%;
        padding: 20px;
    }

    .home-hero h1 {
        font-size: 2.2rem;
        /* Adjusted for mobile */
        margin-bottom: 15px;
    }

    .home-hero p {
        font-size: 1.1rem;
    }

    .clinic-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Services Page (Clean Medical Catalog) --- */
.services-hero {
    text-align: center;
    padding: 80px 20px 40px;
    background-color: white;
}

.services-hero h1 {
    font-size: 3rem;
    color: var(--color-footer-bg);
    margin-bottom: 20px;
    line-height: 1.2;
}

.services-hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 20px 80px;
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .services-hero h1 {
        font-size: 2rem;
    }
}

.service-category-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-primary);
}

.service-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.category-icon {
    font-size: 32px;
    color: var(--color-primary);
    background: #e6f7ff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-header h2 {
    font-size: 1.35rem;
    color: var(--color-footer-bg);
    line-height: 1.3;
}

.service-list {
    list-style: none;
}

.service-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #eee;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h3 {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 5px;
    font-weight: 600;
}

.service-cta {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 5px;
}

.service-cta i {
    margin-right: 5px;
}

.service-cta:hover {
    text-decoration: underline;
}

.value-banner {
    background: linear-gradient(135deg, #004A99 0%, #002D5A 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-top: 40px;
}

.value-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.value-banner p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}