/* Estilos globales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Botón Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00bfa5;
    color: #ffffff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #00796b;
}

.hidden {
    display: none;
}

/* === SECCIÓN 1 === */
.section1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 10%;
    gap: 20px;
    background-color: #00bfa5;
    color: #ffffff;
}

.section1 .text-content {
    max-width: 55%;
}

.section1 .text-content img.logo {
    width: 200px;
    margin-bottom: 20px;
}

.section1 .text-content h1 {
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 10px;
}

.section1 .text-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
    color: #ffffff;
}

.section1 .text-content p {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.section1 .price-wrapper {
    font-size: 1.6rem;
    margin: 15px 0;
}

.section1 .price-wrapper span.old-price {
    text-decoration: line-through;
    font-size: 1.8rem;
    margin-right: 10px;
}

.section1 .price-wrapper span.new-price {
    font-size: 2.4rem;
    font-weight: bold;
}

.section1 .cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 35px;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #ffffff;
    border-radius: 50px;
    text-align: center;
    transition: all 0.3s ease;
}

.section1 .cta-button:hover {
    background-color: #ffffff;
    color: #00bfa5;
}

.section1 .media-content img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilo para el video en la sección 1 */
.video-content {
    max-width: 400px; /* Igual que la imagen */
    height: auto; /* Mantiene la proporción del video */
    border-radius: 10px; /* Esquinas redondeadas igual que la imagen */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra igual que la imagen */
}

/* === SECCIÓN 2 === */
.section2 {
    padding: 50px 10%;
    background-color: #ffffff;
    color: #00bfa5;
}

.treatment-container {
    border: 2px solid #00bfa5; /* Borde del contenedor */
    border-radius: 10px;
    padding: 20px;
    max-width: calc(100% - 40px); /* Mismo ancho que las columnas */
    margin: 0 auto 40px auto;
    text-align: left; /* Alinear todo a la izquierda */
}

.treatment-container h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 0px;
}

.treatment-list {
    display: flex;
    justify-content: space-between; /* Distribución uniforme */
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 20px;
}

.treatment-list li {
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    flex: 1; /* Cada elemento ocupa el mismo espacio */
}

.treatment-list li::before {
    content: "•";
    color: #00bfa5;
    margin-right: 10px;
}

.columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.column {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    text-align: center;
}

.column img {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ampliar ancho de las imágenes */
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.column h3 {
    font-size: 1.6rem; /* Aumentar título ligeramente */
    font-weight: bold;
    margin-bottom: 10px;
    color: #00bfa5;
}

.column p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666666;
    max-width: 400px; /* Texto ajustado al ancho de las imágenes */
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    margin-top: 30px;
    color: #00bfa5;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #00bfa5;
    border-radius: 50px;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #00bfa5;
    color: #ffffff;
}

.cta-wrapper {
    text-align: center;
    margin-top: 20px;
}

/* Responsividad */
@media (max-width: 768px) {
    .section1 {
        flex-direction: column;
        text-align: center;
    }

    .section1 .text-content {
        max-width: 100%;
    }

    .section1 .media-content img {
        max-width: 100%;
    }

    .columns {
        flex-direction: column;
        align-items: center;
    }

    .column {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .treatment-list {
        flex-wrap: wrap;
        gap: 10px;
    }

    .treatment-list li {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* === SECCIÓN 3 === */
.section3 {
    padding: 50px 10%;
    background-color: #00bfa5;
    color: #ffffff;
}

.section3 h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    line-height: 1.4;
}

.feature-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1200px; /* Limitar el ancho total */
    margin-left: auto; /* Centrar la fila */
    margin-right: auto; /* Centrar la fila */
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse; /* Alterna el orden de las imágenes y textos */
}

.text-content {
    flex: 1;
    max-width: 50%; /* Asegurar que ambas mitades ocupen el mismo espacio */
    text-align: left;
    box-sizing: border-box;
    padding: 0 20px; /* Espaciado interno consistente */
}

.text-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.text-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.8;
}

.text-content ul li {
    margin-bottom: 10px;
    position: relative;
}

.text-content ul li::before {
    content: "•";
    color: #ffffff;
    font-size: 1.4rem;
    margin-right: 10px;
    position: absolute;
    left: -20px;
}

.image-content {
    flex: 1;
    max-width: 50%; /* Mantener el ancho proporcional */
    text-align: left;
    box-sizing: border-box;
    padding: 0 20px; /* Espaciado interno consistente */
}

.image-content img {
    width: 100%;
    height: auto;
    max-width: 400px; /* Tamaño uniforme */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0 auto; /* Centrar la imagen en su contenedor */
}

/* Responsividad */
@media (max-width: 768px) {
    .feature-row {
        flex-direction: column;
        gap: 20px; /* Más espacio entre filas */
    }

    .text-content, .image-content {
        max-width: 100%;
        text-align: center;
        padding: 0; /* Quitar espaciado lateral en móviles */
    }

    .text-content ul li::before {
        position: static;
        margin-right: 5px;
    }
}

/* Responsividad específica para móviles */
@media (max-width: 768px) {
    .section3 .feature-row {
        flex-direction: column; /* Cambiar a disposición en columna */
        text-align: center; /* Centrar contenido en móviles */
        margin-bottom: 30px; /* Ajustar el espacio entre filas */
    }

    .section3 .image-content {
        order: 1; /* Asegurar que la imagen se muestre primero */
        max-width: 100%; /* La imagen ocupa todo el ancho disponible */
        padding: 0; /* Quitar padding lateral */
    }

    .section3 .image-content img {
        max-width: 90%; /* Reducir ligeramente el tamaño de la imagen */
        margin: 0 auto; /* Centrar la imagen */
        display: block; /* Asegurar que ocupe su propio espacio */
    }

    .section3 .text-content {
        order: 2; /* Asegurar que el texto se muestre después de la imagen */
        max-width: 100%; /* El texto ocupa todo el ancho disponible */
        padding: 0 10%; /* Añadir algo de margen lateral */
        margin-top: 15px; /* Espacio entre la imagen y el texto */
    }

    .section3 .text-content ul {
        padding: 0; /* Quitar padding lateral */
        text-align: left; /* Alinear el texto a la izquierda para mayor legibilidad */
    }
}

/* === SECCIÓN 4 === */
.section4 {
    padding: 50px 10%;
    background-color: #ffffff; /* Fondo blanco */
    color: #00bfa5;
    text-align: center;
}

.section4 h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.section4 p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0 auto 30px auto; /* Centrar automáticamente */
    max-width: 600px; /* Limitar el ancho del párrafo */
    text-align: justify; /* Justificar el texto */
}

.section4 strong {
    font-weight: bold;
    color: #00bfa5;
}

.section4 .cta-button {
    display: inline-block;
    padding: 15px 40px;
    margin-bottom: 30px;
    color: #ffffff;
    background-color: #00bfa5;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #00bfa5;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.section4 .cta-button:hover {
    background-color: #ffffff;
    color: #00bfa5;
}

/* Icon Section */
.icon-section {
    background-color: #ffffff;
    padding: 20px 0;
    margin-top: 20px;
    text-align: center;
}

.icon-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.icon-container img {
    width: auto;
    height: auto;
}

/* === SECCIÓN 5 === */
.section5 {
    padding: 50px 10%;
    background-color: #ffffff;
    text-align: center;
    color: #00bfa5;
}

.section5 h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.testimonials {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.testimonial {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    text-align: center;
}

.testimonial img {
    width: 40px; /* Tamaño de los íconos */
    margin-bottom: 20px;
}

.testimonial p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333333;
}

@media (max-width: 768px) {
    .testimonials {
        flex-direction: column; /* Apilarlos verticalmente */
        align-items: center; /* Centrar cada testimonio */
    }

    .testimonial {
        flex: 1 1 100%; /* Cada testimonio ocupa el ancho completo */
        max-width: 100%; /* Quitar el límite de ancho */
        margin-bottom: 20px; /* Espacio entre testimonios */
    }
}

.cta-wrapper {
    margin-bottom: 50px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    margin: 10px;
    color: #00bfa5;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #00bfa5;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #00bfa5;
    color: #ffffff;
}

.clinic-message {
    margin-top: 30px;
}

.clinic-message h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.clinic-message .cta-button {
    border-color: #00bfa5;
    color: #00bfa5;
}

/* Botones de la Sección 5 */
.section5 .cta-button {
    display: inline-block;
    padding: 15px 40px;
    margin: 10px;
    color: #00bfa5; /* Texto primario inicialmente */
    background-color: #ffffff; /* Fondo blanco inicialmente */
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #00bfa5;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.section5 .cta-button:hover {
    background-color: #00bfa5; /* Fondo primario al pasar el mouse */
    color: #ffffff; /* Texto blanco al pasar el mouse */
}

/* === SECCIÓN 6 === */
.section6 {
    padding: 50px 10%;
    background-color: #ffffff;
    text-align: center;
    color: #00bfa5;
}

.section6 h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #00bfa5;
}

.map-container {
    margin: 30px auto;
}

.map-container img {
    width: 100%;
    max-width: 600px; /* Ajustar el tamaño del mapa */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Columnas de contacto */
.contact-columns {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
}

.contact-column {
    flex: 1;
    max-width: 300px; /* Limitar el ancho de cada columna */
    font-size: 1rem;
    line-height: 1.6;
    color: #00bfa5;
}

.contact-column p {
    margin: 5px 0;
}

.contact-column a {
    color: #00bfa5;
    font-weight: bold;
    text-decoration: none;
}

.contact-column a:hover {
    text-decoration: underline;
}

/* Íconos sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 60px; /* Aumentar el espacio entre íconos */
    margin-top: 30px;
}

.social-icons a {
    font-size: 40px; /* Aumentar el tamaño de los íconos */
    color: #00bfa5;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
    transform: scale(1.3); /* Efecto hover más destacado */
    color: #00796b; /* Cambiar a un tono más oscuro */
}

/* Ajuste de la última sección para móviles */
@media (max-width: 768px) {
    .contact-columns {
        flex-direction: column; /* Cambiar disposición a columna */
        align-items: center; /* Centrar los textos */
        gap: 10px; /* Espaciado entre las columnas */
    }

    .contact-column {
        max-width: 100%; /* Asegurar que cada columna ocupe el ancho completo */
        text-align: center; /* Centrar el texto */
    }
}