/* Estilos base del modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background: #FFFFFF;
    width: 1480px;
    height: 805px;
    padding: 30px;
    border-radius: 81px;
    display: flex;  /* Cambiado a flex */
    flex-direction: row;  /* Asegura dirección horizontal */
    justify-content: space-between;  /* Distribuye el espacio entre columnas */
    max-width: 95%;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    overflow: hidden;  /* Evita desbordamiento */
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Columna izquierda - Información */
.modal-info {
    width: 50%;
    padding: 50px 60px;
    flex-shrink: 0;  /* Evita que se encoja */
}

/* Columna derecha - Formulario */
.modal-form {
    width: 50%;
    padding: 50px 35px;
    flex-shrink: 0;  /* Evita que se encoja */
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 122.9%;
    color: #019C9E;
    margin-bottom: 40px;
}

.modal-description{
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17.21px;
}

.modal-description-auto{
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 14.75px;
}

.contact-info-mobile{
    display: none;
}

.modal-form-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 122.9%;
    color: #019C9E;
    margin-bottom: 40px;
}

.modal-form-group {
    margin-bottom: 20px;
}


.form-group textarea {
    width: 600px;
    height: 200px;
    background: #FFFFFF;
    border: 3px solid #F68E2F;
    border-radius: 45px;
    padding: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #333;
    resize: none;
    /* Estilos para la barra de desplazamiento */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #888 #f1f1f1; /* Firefox */
    padding-right: 35px; /* Evitar superposición con la barra */
}

/* Estilos para navegadores WebKit (Chrome, Safari, Edge) */
.form-group textarea::-webkit-scrollbar {
    width: 8px;
}

.form-group textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin: 18px 0;
}

.form-group textarea::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.form-group textarea::-webkit-scrollbar-thumb:hover {
    background: #666;
}



.modal-form-control {
    width: 100%;
    height: 60px;
    background: #FFFFFF;
    border: 3px solid #F68E2F;
    border-radius: 45px;
    padding: 0 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
}

.modal-form-control.message {
    width: 639px;
    height: 200px;
    padding: 20px 30px;
    resize: none;
}


.modal-submit-button {
    background: #F68E2F;
    border-radius: 37px;
    padding: 15px 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 21px;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    margin-left: 460px;
}

.modal-submit-button:hover {
    background: #03C59D;
}

/* En modals.css - para los modales */
.modal-form .contact-info {
    width: 500px;
    margin-left: 20px;
    text-align: left;
    margin-top: -50px;
}

.contact-comunicate {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19.66px;
}
.contact-phone{
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 29.5px;
}

.contact-email {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19.66px;
}

/* En modals.css - para los modales */
.contact-info-mobile {
    width: 500px;
    margin-left: 20px;
    text-align: left;
    margin-top: -50px;
}

.contact-comunicate-mobile {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19.66px;
}
.contact-phone-mobile{
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 29.5px;
}

.contact-email-mobile {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19.66px;
}


/* Ajustar los estilos del botón de cierre */
.modal-close-button {
    position: absolute;
    top: 40px;
    right: 60px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.modal-close-button i {
    font-size: 40px;
    color: #019C9E;
    transition: color 0.3s ease;
}

.modal-close-button:hover {
    transform: rotate(90deg);
}

.modal-close-button:hover i {
    color: #F68E2F;
}



/* Estilos para el modal de éxito */
#success-modal .modal-content {
    animation: scaleIn 0.3s ease-in-out;
    transform-origin: center;
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#success-modal.active .modal-content {
    animation: pulseSuccess 0.5s ease-in-out;
}

@keyframes pulseSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

#success-modal i.fa-circle-check {
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}








/* Ajustes responsivos */
@media screen and (max-width: 1536px) {
    /* Estilos base del modal */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        justify-content: center;
        align-items: center;
        padding: 16px; /* 20px * 0.8 */
    }

    .modal.active {
        display: flex;
        opacity: 1;
    }

    .modal-content {
        position: relative;
        background: #FFFFFF;
        width: 1184px; /* 1480px * 0.8 */
        height: 644px; /* 805px * 0.8 */
        padding: 24px; /* 30px * 0.8 */
        border-radius: 65px; /* 81px * 0.8 */
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        max-width: 95%;
        transform: scale(0.95);
        opacity: 0;
        transition: all 0.3s ease-in-out;
        overflow: hidden;
    }

    /* Columna izquierda - Información */
    .modal-info {
        width: 50%;
        padding: 40px 48px; /* 50px 60px * 0.8 */
        flex-shrink: 0;
    }

    /* Columna derecha - Formulario */
    .modal-form {
        width: 50%;
        padding: 40px 28px; /* 50px 35px * 0.8 */
        flex-shrink: 0;
    }

    .modal-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 16px; /* 20px * 0.8 */
        line-height: 122.9%;
        color: #019C9E;
        margin-bottom: 32px; /* 40px * 0.8 */
    }

    .modal-description{
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 11px; /* 14px * 0.8 */
        line-height: 14px; /* 17.21px * 0.8 */
    }

    .modal-description-auto{
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 10px; /* 12px * 0.8 */
        line-height: 10.4px; /* 14.75px * 0.8 */
    }

    .modal-form-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 16px; /* 20px * 0.8 */
        line-height: 122.9%;
        color: #019C9E;
        margin-bottom: 32px; /* 40px * 0.8 */
    }

    .modal-form-group {
        margin-bottom: 16px; /* 20px * 0.8 */
    }

    .modal-form-control {
        width: 100%;
        height: 48px; /* 60px * 0.8 */
        background: #FFFFFF;
        border: 2px solid #F68E2F; /* 3px * 0.8 ≈ 2px */
        border-radius: 36px; /* 45px * 0.8 */
        padding: 0 24px; /* 30px * 0.8 */
        font-family: 'Montserrat', sans-serif;
        font-size: 13px; /* 16px * 0.8 */
        font-weight: 300;
    }

    .modal-form-control.message {
        width: 511px; /* 600px * 0.8 */
        height: 120px; /* 150px * 0.8 */
        padding: 16px 24px; /* 20px 30px * 0.8 */
        resize: none;
    }

    .modal-submit-button {
        background: #F68E2F;
        border-radius: 30px; /* 37px * 0.8 ≈ 30px */
        padding: 12px 32px; /* 15px 40px * 0.8 */
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 17px; /* 21px * 0.8 */
        color: #FFFFFF;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
        margin-top: 10px; /* 20px * 0.8 */
        margin-left: 370px; /* 380px * 0.8 */
    }

    /* Para los modales */
    .modal-form .contact-info {
        width: 300px; /* 500px * 0.8 */
        margin-left: 16px; /* 20px * 0.8 */
        text-align: left;
        margin-top: -50px;
    }

    .contact-comunicate {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 13px; /* 16px * 0.8 */
        line-height: 16px; /* 19.66px * 0.8 */
    }

    .contact-phone {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 19px; /* 24px * 0.8 */
        line-height: 24px; /* 29.5px * 0.8 */
    }

    .contact-email {
        font-family: 'Montserrat', sans-serif;
        font-size: 13px; /* 16px * 0.8 */
        line-height: 16px; /* 19.66px * 0.8 */
    }

    /* Botón de cierre */
    .modal-close-button {
        position: absolute;
        top: 32px; /* 40px * 0.8 */
        right: 48px; /* 60px * 0.8 */
        background: none;
        border: none;
        cursor: pointer;
        z-index: 10;
        width: 40px; /* 50px * 0.8 */
        height: 40px; /* 50px * 0.8 */
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }

    .modal-close-button i {
        font-size: 32px; /* 40px * 0.8 */
        color: #019C9E;
        transition: color 0.3s ease;
    }
}


@media (max-width: 1366px) {
    .modal-content {
        height: auto;
        min-height: 600px;
        max-height: 80vh;
    }

    .modal-info,
    .modal-form {
        padding: 20px 20px;
    }

    .modal-description-auto{
        font-size: 11px;
    }

    .modal-form-control.message {
        width: 527px;
    }
}


/* Ajustes responsivos */
@media (max-width: 1200px) {
    .modal-content {
        height: auto;
        min-height: 480px; /* 600px * 0.8 */
        max-height: 90vh;
    }

    .modal-info,
    .modal-form {
        padding: 32px 24px; /* 40px 30px * 0.8 */
    }
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        height: auto;
    }

    .modal-info,
    .modal-form {
        width: 100%;
        padding: 30px 20px;
    }

    .modal-info {
        border-right: none;
        border-bottom: 1px solid #E5E5E5;
    }

    .modal-close-button {
        top: 20px;
        right: 20px;
    }
    
    .modal-close-button i {
        font-size: 20px;
    }
}


/* Ajustes para dispositivos con altura reducida */
@media screen and (max-height: 800px) {
    .modal-content {
        margin: 10px auto;
    }
}

/* Ajustes de scroll para dispositivos móviles */
@media (hover: none) and (pointer: coarse) {
    .modal {
        -webkit-overflow-scrolling: touch;
    }
}

/* Ajustes para asegurar la visibilidad del botón de cierre */
@supports (-webkit-touch-callout: none) {
    /* Estilos específicos para iOS */
    .close-modal {
        position: fixed;
    }
}

/* Ajustes de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .modal,
    .submit-button {
        transition: none;
    }
}

/* Responsive mobile */
@media screen and (max-width: 430px) {
    /* Estilos para modals */
    .modal-content {
        width: 98%;
        height: auto;
        margin: 20px auto;
        padding: 15px;
        border-radius: 25px;
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-close-button {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    .modal-close-button i {
        font-size: 24px;
    }

    /* Info section */
    .modal-info {
        width: 100%;
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .modal-title {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .modal-description,
    .modal-description-auto {
        font-size: 12px;
        line-height: 1.4;
    }

    /* Form section */
    /* Ocultar completamente el formulario */
    .modal-form {
        display: none;
    }

    /* En modals.css - para los modales */
    .contact-info-mobile {
        display: flex;
        flex-direction: column;
        width: 350px;
        margin-top: 1rem;
        margin-left: 0;
        padding: 15px 0 0;
        text-align: center;
    }

    .contact-comunicate-mobile {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 19.66px;
    }
    .contact-phone-mobile{
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 14px;
        line-height: 29.5px;
    }

    .contact-email-mobile {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 19.66px;
    }

    /* Ajustes para listas dentro de modals */
    .modal-description ul,
    .modal-description-auto ul {
        padding-left: 12px;
    }

    .modal-description li,
    .modal-description-auto li {
        margin-bottom: 8px;
        font-size: 12px;
    }
}

@media screen and (max-width: 428px) {
    /* Estilos para modals */
    .modal-content {
        width: 98%;
        height: auto;
        margin: 20px auto;
        padding: 15px;
        border-radius: 25px;
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-close-button {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    .modal-close-button i {
        font-size: 24px;
    }

    /* Info section */
    .modal-info {
        width: 100%;
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .modal-title {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .modal-description,
    .modal-description-auto {
        font-size: 12px;
        line-height: 1.4;
    }

    /* Form section */
    /* Ocultar completamente el formulario */
    .modal-form {
        display: none;
    }

    /* En modals.css - para los modales */
    .contact-info-mobile {
        display: flex;
        flex-direction: column;
        width: 350px;
        margin-top: 1rem;
        margin-left: 0;
        padding: 15px 0 0;
        text-align: center;
    }

    .contact-comunicate-mobile {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 19.66px;
    }
    .contact-phone-mobile{
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 14px;
        line-height: 29.5px;
    }

    .contact-email-mobile {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 19.66px;
    }

    /* Ajustes para listas dentro de modals */
    .modal-description ul,
    .modal-description-auto ul {
        padding-left: 12px;
    }

    .modal-description li,
    .modal-description-auto li {
        margin-bottom: 8px;
        font-size: 12px;
    }
}

@media screen and (max-width: 414px) {
    /* Estilos para modals */
    .modal-content {
        width: 90%;
        height: auto;
        margin: 20px auto;
        padding: 15px;
        border-radius: 25px;
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal.active, .modal-content{
        transform: scale(1.1);
        opacity: 1;
    }


    .modal-close-button {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    .modal-close-button i {
        font-size: 24px;
    }

    /* Info section */
    .modal-info {
        width: 100%;
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .modal-title {
        font-size: 14px;
        margin: 10px 0 15px 0;
    }

    .modal-description,
    .modal-description-auto{
        margin-bottom: 50px;
    }

    .modal-description p{
        font-size: 13px;
        line-height: 1.4;
    }
    .modal-description li,
    .modal-description-auto li{
        font-size: 13px;
        line-height: 1.4;
    }

    /* Form section */
    /* Ocultar completamente el formulario */
    .modal-form {
        display: none;
    }

    /* En modals.css - para los modales */
    .contact-info-mobile {
        display: flex;
        width: 200px;
        margin-left: 50px;
        text-align: center;
        margin-top: -50px;
    }

    .contact-comunicate-mobile {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 19.66px;
    }
    .contact-phone-mobile{
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 14px;
        line-height: 29.5px;
    }

    .contact-email-mobile {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 19.66px;
    }
}

@media screen and (max-width: 412px) {
    /* Estilos para modals */
    .modal-content {
        width: 90%;
        height: auto;
        margin: 20px auto;
        padding: 15px;
        border-radius: 25px;
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal.active, .modal-content{
        transform: scale(1.1);
        opacity: 1;
    }


    .modal-close-button {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    .modal-close-button i {
        font-size: 24px;
    }

    /* Info section */
    .modal-info {
        width: 100%;
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .modal-title {
        font-size: 14px;
        margin: 10px 0 15px 0;
    }

    .modal-description,
    .modal-description-auto{
        margin-bottom: 50px;
    }

    .modal-description p{
        font-size: 13px;
        line-height: 1.4;
    }
    .modal-description li,
    .modal-description-auto li{
        font-size: 13px;
        line-height: 1.4;
    }

    /* Form section */
    /* Ocultar completamente el formulario */
    .modal-form {
        display: none;
    }

    /* En modals.css - para los modales */
    .contact-info-mobile {
        display: flex;
        width: 200px;
        margin-left: 50px;
        text-align: center;
        margin-top: -50px;
    }

    .contact-comunicate-mobile {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 19.66px;
    }
    .contact-phone-mobile{
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 14px;
        line-height: 29.5px;
    }

    .contact-email-mobile {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 19.66px;
    }
}

@media screen and (max-width: 390px) {
    /* Estilos para modals */
    .modal-content {
        width: 90%;
        height: auto;
        margin: 20px auto;
        padding: 15px;
        border-radius: 25px;
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal.active, .modal-content{
        transform: scale(1.1);
        opacity: 1;
    }


    .modal-close-button {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    .modal-close-button i {
        font-size: 24px;
    }

    /* Info section */
    .modal-info {
        width: 100%;
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .modal-title {
        font-size: 14px;
        margin: 10px 0 15px 0;
    }

    .modal-description,
    .modal-description-auto{
        margin-bottom: 50px;
    }

    .modal-description p{
        font-size: 13px;
        line-height: 1.4;
    }
    .modal-description li,
    .modal-description-auto li{
        font-size: 13px;
        line-height: 1.4;
    }

    /* Form section */
    /* Ocultar completamente el formulario */
    .modal-form {
        display: none;
    }

    /* En modals.css - para los modales */
    .contact-info-mobile {
        display: flex;
        width: 200px;
        margin-left: 40px;
        text-align: center;
        margin-top: -50px;
    }

    .contact-comunicate-mobile {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 19.66px;
    }
    .contact-phone-mobile{
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 14px;
        line-height: 29.5px;
    }

    .contact-email-mobile {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 19.66px;
    }
}

@media screen and (max-width: 360px) {
    /* Estilos para modals */
    .modal-content {
        width: 90%;
        height: auto;
        margin: 20px auto;
        padding: 15px;
        border-radius: 25px;
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal.active, .modal-content{
        transform: scale(1.1);
        opacity: 1;
    }


    .modal-close-button {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    .modal-close-button i {
        font-size: 24px;
    }

    /* Info section */
    .modal-info {
        width: 100%;
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .modal-title {
        font-size: 14px;
        margin: 10px 0 15px 0;
    }

    .modal-description,
    .modal-description-auto{
        margin-bottom: 50px;
    }

    .modal-description p{
        font-size: 12px;
        line-height: 1.4;
    }
    .modal-description li,
    .modal-description-auto li{
        font-size: 12px;
        line-height: 1.4;
    }

    /* Form section */
    .modal-form {
        display: none;
    }

    /* En modals.css - para los modales */
    .contact-info-mobile {
        display: flex;
        width: 200px;
        margin-left: 35px;
        text-align: center;
        margin-top: -50px;
    }

    .contact-comunicate-mobile {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 19.66px;
    }
    .contact-phone-mobile{
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 14px;
        line-height: 29.5px;
    }

    .contact-email-mobile {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 19.66px;
    }
}

