@media (max-width: 768px) {
    .hero {
        position: relative;
        /* Asegura que los elementos hijos absolutos se posicionen en base a esta sección */
        overflow: hidden;
        /* Evita que aparezcan espacios en blanco */
    }

    .wave-container {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        overflow: hidden;
        z-index: 1;
        /* Asegura que la onda esté sobre la sección */
    }

    .wave-container svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .wave-container svg {
        width: 100%;
        height: auto;
        min-height: 120px;
        /* Ajusta si aún se ve el borde */
    }
}











.btn-container {
    margin-top: 20px;
}

.btn-agendar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-agendar span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-agendar:hover {
    background: linear-gradient(135deg, #0056b3, #00408d);
    transform: translateY(-3px);
    border: 2px solid #ffffff;
}

.btn-agendar:active {
    transform: translateY(0);
}












.video-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #f5f7fa, #c3cfe2);
}

.video-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.video-section p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.video-slider {
    max-width: 80%;
    margin: auto;
}

.video-item {
    position: relative;
    padding: 10px;
}

.video-item iframe {
    width: 100%;
    height: 315px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.video-item iframe:hover {
    transform: scale(1.05);
}







/* 📌 Sección de contacto */
.contact-section {
    padding: 80px 0;
    background: #f9f9f9;
}

/* 🔹 Contenedor principal */
.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 20px;
    gap: 20px;
}

/* 📌 Imagen decorativa */
.contact-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-image {
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* 🔹 Efecto hover en la imagen */
.contact-image:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

/* 📌 Formulario */
.contact-form-container {
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 10px;
    text-align: left;
}

/* 🎯 Títulos */
.contact-title {
    font-size: 28px;
    font-weight: bold;
    color: #6e45e2;
    text-align: center;
}

.contact-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

/* 📌 Campos del formulario */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

/* 🔹 Efecto de focus */
.input-group input:focus,
.input-group textarea:focus {
    border-color: #6e45e2;
    box-shadow: 0px 0px 8px rgba(110, 69, 226, 0.3);
    outline: none;
}

/* 📌 Botón de envío */
.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff4081, #e60073);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #e60073, #c70062);
    transform: scale(1.05);
}

/* 📌 Nueva sección con datos adicionales */
.extra-contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 50px auto 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 20px;
    gap: 20px;
}

/* 📌 Información de contacto */
.extra-text {
    flex: 1;
    padding: 20px;
    text-align: left;
}

.extra-text h2 {
    font-size: 24px;
    color: #6e45e2;
}

.extra-text p {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.extra-text a {
    color: #e60073;
    text-decoration: none;
    font-weight: bold;
}

.extra-text a:hover {
    text-decoration: underline;
}

/* 📌 Imagen adicional */
.extra-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.extra-image {
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* 🔹 Efecto hover en la imagen */
.extra-image:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

/* 📌 Contenedor principal */
.contact-info {
    padding: 50px 0;
    background: #f9f9f9;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 40px 50px;
    gap: 40px;
}

/* 📌 Texto */
.contact-text {
    flex: 1;
    text-align: left;
    max-width: 500px;
}

.contact-text h2 {
    font-size: 22px;
    color: #6e45e2;
    line-height: 1.5;
}

.contact-highlight {
    font-size: 18px;
    margin: 15px 0;
    color: #333;
    font-weight: bold;
}

.contact-detail {
    font-size: 16px;
    margin: 10px 0;
}

.contact-detail a {
    color: #e60073;
    text-decoration: none;
    font-weight: bold;
}

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

/* 📌 Imagen */
.contact-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-illustration {
    width: 80%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

/* 🔹 Efecto hover en la imagen */
.contact-illustration:hover {
    transform: scale(1.05);
}

/* 📌 Responsividad */
@media (max-width: 992px) {
    .contact-info-container {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 20px;
    }

    .contact-text {
        max-width: 100%;
    }

    .contact-image-container {
        width: 100%;
    }

    .contact-illustration {
        width: 100%;
        max-width: 350px;
    }
}

/* 📌 Responsividad */
@media (max-width: 992px) {

    .contact-container,
    .extra-contact-container {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
}