body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: #f6faf7;
    color: #3a4d3f;
    scroll-behavior: smooth;
}

.header {
    background: #e3f6e8;
    padding: 0;
    border-bottom: 1px solid #cbead6;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 30px;
    height: 80px;
    position: relative;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1500px;
    position: relative;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-left {
    justify-content: flex-end;
    margin-right: 200px;
}

.nav-right {
    justify-content: flex-start;
    margin-left: 200px;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
}

.nav-item {
    margin: 0 15px;
    position: relative;
}

.nav-item a {
    font-weight: 100;
    color: #7ca98b;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
    padding-bottom: 4px;
}

.nav-item.active a {
    color: #3a4d3f;
    border-bottom: 2px solid #3a4d3f;
}

.nav-item a:hover {
    color: #3a4d3f;
}

.btn-cita a {
    background: #b6e2c6;
    color: #3a4d3f;
    padding: 8px 18px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-cita a:hover {
    background: #7ca98b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Botón de llamada - solo visible en móvil */
.btn-call {
    display: none;
}

.btn-call a {
    background: #ef947d;
    color: white;
    padding: 8px 18px;
    font-weight: bold;
    transition: all 0.3s;
    border-radius: 50px;
}

.btn-call a i {
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

.btn-call a:hover {
    background: #ff5639;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.btn-cita-hero a {
    display: none;
}
@media (max-width: 768px) {
    .btn-cita-hero a {
        background: #b6e2c6;
        color: #3a4d3f;
        padding: 10px 30px;
        font-weight: bold;
        transition: all 0.3s;
        margin: -50px auto;
        display: block;
    }

    .btn-cita-hero a:hover {
        background: #7ca98b;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
   
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-mm {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    color: #7ca98b;
    line-height: 1;
    letter-spacing: -0.9px;
    border-bottom: 1px solid #7ca98b;
    padding: 0 30px;
    font-weight: 100;
}

.logo-name {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #3a4d3f;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 100;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: #3a4d3f;
}

strong {
    font-weight: 600;
    letter-spacing: -2px;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.about-section {
    display: flex;
    gap: 60px;
    background: #e3f6e887;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    align-items: center;
    margin: 40px 0;
}

.about-images {
    flex: 0 0 60%;
    max-width: 800px;
    overflow: hidden;
}

.img-main {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-main:hover {
    transform: scale(1.02);
}

.about-text {
    flex: 0 0 30%;
    padding-left: 20px;
}

.about-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: #3a4d3f;
    margin-bottom: 24px;
    font-weight: 500;
}

.about-desc {
    font-size: 1rem;
    color: #4e6b5a;
    margin-bottom: 18px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #3a4d3f;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-weight: 100;
}

.divider {
    height: 3px;
    width: 60px;
    background: #b6e2c6;
    margin: 0 auto;
}

.clinic-text h3 {
    font-size: 1.8rem;
    color: #3a4d3f;
    margin-bottom: 20px;
}

.clinic-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #4e6b5a;
}

.clinic-features {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.feature i {
    font-size: 1.2rem;
    color: #7ca98b;
    margin-right: 10px;
}

.services-section {
    padding: 80px 0;
    background: #f0f8f2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 30px;
}

.service-card {
    background: white;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #cbead6;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: #e3f6e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 1.8rem;
    color: #7ca98b;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #3a4d3f;
    font-weight: 500;
    font-family: 'Oswald', sans-serif;
}

.service-card p {
    color: #4e6b5a;
    line-height: 1.7;
}

.process-section {
    padding: 80px 0;
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 50px;
    left: 25px;
    width: 3px;
    height: calc(100% + 20px);
    background: #b6e2c6;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #b6e2c6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #3a4d3f;
    margin-right: 30px;
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #3a4d3f;
}

.step-content p {
    color: #4e6b5a;
    line-height: 1.7;
}

.cta-section {
    background: linear-gradient(rgba(124, 169, 139, 0.422), rgba(124, 169, 139, 0.9)), url('../img/piedras.jpg') center/cover;
    padding: 80px 0;
    text-align: center;
    color: white;
    margin: 80px 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.cta-button {
    background: white;
    color: #3a4d3f;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #698370;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer {
    background: #7ca98b;
    color: white;
    padding: 60px 30px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #b6e2c6;
}

.footer-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.footer-logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.footer-logo-link:hover {
    transform: translateY(-3px);
}

.footer-logo .logo-mm {
    color: #b6e2c6;
    font-size: 1.8rem;
    border-bottom: 1px solid #b6e2c6;
}

.footer-logo .logo-name {
    color: white;
    font-size: 1rem;
    display: flex;
    justify-content: center;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.footer-section p i {
    margin-right: 10px;
    color: #b6e2c6;
}

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

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background: #b6e2c6;
    color: #3a4d3f;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.749);
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@media (max-width: 1100px) {
    .nav-left, .nav-right {
        display: none;
    }
    
    .logo {
        position: static;
        transform: none;
        margin: 0 auto;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-container.active .nav-left,
    .nav-container.active .nav-right {
        display: flex;
    }
    
    .nav-container.active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(246, 250, 247, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 50;
    }
    
    .nav-container.active .logo {
        position: absolute;
        top: 20px;
    }
    
    .nav-container.active .nav-left,
    .nav-container.active .nav-right {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        margin-top: 30px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .nav-container.active .nav-list {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .nav-container.active .nav-item {
        margin: 15px 0;
    }
    
    /* Mostrar botón de llamada en menú móvil */
    .nav-container.active .btn-call {
        display: block;
        margin-top: 20px;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 991px) {
    .about-section {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .about-images {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin: 0 auto 30px;
    }
    
    .img-main {
        max-height: 450px;
    }
    
    .about-text {
        flex: 0 0 100%;
        padding-left: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .nav-left, 
    .nav-right {
        justify-content: center;
        margin: 0 auto;
    }

    .nav-right {
        position: relative;
        top: -230px;
    }
    
    .about-section, .clinic-content {
        padding: 20px 15px;
    }
    
    .img-main, .clinic-img {
        max-height: 300px;
    }
    
    .feature {
        margin-right: 10px;
        flex-basis: 100%;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .services-container {
        grid-template-columns: 1fr;
    }
    .step-content {
        flex: 1;
        max-width: 70%;
    }
    
}

@media (max-width: 576px) {
    .navbar {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 0 15px;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .about-desc {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Clinic Section */
.clinic-content {
    display: flex;
    gap: 60px;
    background: #e3f6e887;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    align-items: center;
    margin: 60px 0;
    border-radius: 8px;
}

.clinic-images {
    flex: 0 0 40%;
    max-width: 800px;
    overflow: hidden;
}

.clinic-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.clinic-img:hover {
    transform: scale(1.02);
}

.clinic-img:last-child {
    margin-bottom: 0;
}

.clinic-text {
    flex: 1;
}

.clinic-text h3 {
    font-size: 1.8rem;
    color: #3a4d3f;
    margin-bottom: 20px;
}

.clinic-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #4e6b5a;
}

.clinic-features {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.feature i {
    font-size: 1.2rem;
    color: #7ca98b;
    margin-right: 10px;
}

/* Trabajo Section */
.work-section {
    padding: 80px 0;
}

.work-content {
    display: flex;
    gap: 60px;
    background: #e3f6e887;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    align-items: center;
    margin: 40px 0;
}

.work-images {
    flex: 0 0 40%;
    max-width: 800px;
    overflow: hidden;
}

.work-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: 0.6s ease;
}

.work-img:hover {
    filter: grayscale(70%);
}

.work-text {
    flex: 1;
}

.work-text h3 {
    font-size: 1.8rem;
    color: #3a4d3f;
    margin-bottom: 20px;
    font-weight: 500;
}

.work-text p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #4e6b5a;
}

.work-features {
    display: flex;
    flex-direction: column;
    margin: 30px 0;
    gap: 25px;
}

.work-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.work-feature i {
    font-size: 1.5rem;
    color: #7ca98b;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #3a4d3f;
    font-weight: 500;
    font-family: 'Oswald', sans-serif;
}

.feature-text p {
    font-size: 0.95rem;
    color: #4e6b5a;
    margin-bottom: 0;
}

.emphasis-text {
    font-size: 1.1rem;
    color: #3a4d3f;
    font-weight: 500;
    padding: 15px;
    background: rgba(182, 226, 198, 0.2);
    border-left: 4px solid #7ca98b;
}

@media (max-width: 991px) {
    .work-content {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .work-images {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin: 0 auto 30px;
    }
    
    .work-text {
        text-align: center;
    }
    
    .work-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .work-feature i {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .work-content {
        padding: 20px 15px;
    }
    
    .work-text h3 {
        font-size: 1.5rem;
    }
    
    .work-features {
        gap: 15px;
    }
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: #f0f8f2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 80px;
}

.form-container {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #cbead6;
}

.form-text {
    flex: 1;
    padding: 40px;
    background: #e3f6e887;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-text h2 {
    font-size: 1.8rem;
    color: #3a4d3f;
    margin-bottom: 20px;
    font-weight: 500;
}

.form-text p {
    color: #4e6b5a;
    line-height: 1.5;
    margin-bottom: 15px;
}

.contact-form {
    flex: 1;
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #3a4d3f;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 95%;
    padding: 12px;
    border: 1px solid #cbead6;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #3a4d3f;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7ca98b;
    box-shadow: 0 0 5px rgba(124, 169, 139, 0.3);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-button {
    background: #7ca98b;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.submit-button:hover {
    background: #3a4d3f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.form-alt-action {
    text-align: center;
    margin-top: 15px;
    color: #4e6b5a;
    font-size: 0.9rem;
}

.form-alt-action a {
    color: #7ca98b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.form-alt-action a:hover {
    color: #3a4d3f;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
    }
    .contact-form-section {
        padding: 0 10px;
        padding-bottom: 20px;
    }
    
    .form-text, 
    .contact-form {
        padding: 30px;
    }
}

/* Botón volver arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #7ca98bc6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(15px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #3a4d3f;
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
    }
    
    .form-text, 
    .contact-form {
        padding: 30px;
    }
}

/* Botón flotante de llamada */
.call-floating-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background-color: #fc977e;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    animation: pulse 1.5s infinite;
}

.call-floating-button i {
    font-size: 1.5rem;
}

.call-floating-button:hover {
    background-color: #ff5639;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .call-floating-button {
        display: flex;
    }
    
    /* Ajustar posición del botón para subir cuando está el de llamada */
    .back-to-top {
        right: 20px;
    }
    
    .form-container {
        flex-direction: column;
    }
}
