/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    background: #524594;
    color: #FAF2E0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #524594;
}

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

.nav-links a {
    text-decoration: none;
    color: #524594;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3d3470;
}

.pay-btn {
    background: #EBE554;
    color: #524594 !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: background 0.3s ease;
    font-weight: 600;
}

.pay-btn:hover {
    background: #d9d340;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #524594;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: url('diana-suarez.jpg') center top / cover no-repeat;
    background-position: center top;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-top: 80px;
    position: relative;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(250, 242, 224, 0.5) 0%, rgba(245, 234, 214, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-logo {
    margin-bottom: 2rem;
}

.main-logo {
    background: #524594;
    color: #FAF2E0;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 3rem;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(82, 69, 148, 0.3);
}

.main-logo-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(82, 69, 148, 0.3));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #524594;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: #524594;
    color: #FAF2E0;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(82, 69, 148, 0.3);
}

.cta-button:hover {
    background: #3d3470;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(82, 69, 148, 0.4);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #524594;
    margin-bottom: 3rem;
}

/* About Services Section */
.about-services {
    padding: 0;
    background: #E6EDEC;
    color: #524594;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.about-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about-services .section-title {
    color: #524594;
    text-align: left;
}

.about-content {
    padding: 5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #524594;
    text-align: justify;
}

/* Professionals Section */
.professionals {
    padding: 5rem 0;
    background: #fff;
}

.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.professional-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.professional-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FAF2E0;
}

.professional-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professional-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #524594;
    margin-bottom: 0.5rem;
}

.specialty {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.schedule {
    background: #FAF2E0;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.schedule p {
    margin-bottom: 0.5rem;
}

.professional-link {
    display: inline-block;
    background: #EBE554;
    color: #524594;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.professional-link:hover {
    background: #d9d340;
}
/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: #FAF2E0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
}

.testimonial-author {
    color: #524594;
    font-weight: 600;
}

/* Values Section */
.values {
    padding: 5rem 0;
    background: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #FAF2E0;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #524594;
    margin-bottom: 1rem;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #524594;
    color: #FAF2E0;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo {
    background: #FAF2E0;
    color: #524594;
}

.footer-logo .logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #FAF2E0;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(250, 242, 224, 0.2);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .main-logo {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .main-logo-img {
        width: 120px;
        height: 120px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .professionals-grid,
    .testimonials-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .hero {
        padding: 1rem;
        margin-top: 70px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        display: none;
    }
    
    .about-content {
        padding: 3rem 1.5rem;
    }
    
    .about-services .section-title {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .professional-card,
    .testimonial-card,
    .value-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.professional-card,
.testimonial-card,
.value-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #524594;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .hero {
        margin-top: 0;
    }
}

/* Avatar Icon Styles */
.avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FAF2E0;
}

.avatar-icon svg {
    width: 100%;
    height: 100%;
}

/* Contact Icons Styles */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-icons {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.contact-icons a {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.contact-icons a:hover {
    transform: scale(1.1);
}

.icon-map,
.icon-waze {
    width: 24px;
    height: 24px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FAF2E0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.whatsapp-link:hover {
    opacity: 0.8;
}

.icon-whatsapp {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Patient Access Button */
.patient-access-btn {
    background: #524594 !important;
    color: #FAF2E0 !important;
}

.patient-access-btn:hover {
    background: #3d3470 !important;
}