/*HHelvetica Font*/
@font-face {
	font-family: 'HelveticaBlackCond';
	src: url('../fonts/HelveticaNeue/HelveticaNeueBlackCondensed.ttf');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'HelveticaLight';
	src: url('../fonts/HelveticaNeue/HelveticaNeue-Thin.ttf');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Helvetica';
	src: url('../fonts/HelveticaNeue/HelveticaNeue.ttf');
	font-weight: normal;
	font-style: normal;
}

html, body {
   max-width: 100%;
   overflow-x: hidden;
}

/* Header */

/* Contacto Form */

.space-between-header{
    margin-top: 30px;
}

.container-form-background{
    background-image: url(../img/Portada.svg);
    background-repeat: no-repeat;
    background-position: 25%;
    background-size:contain;
    background-attachment: scroll;
}

.container-space{
    padding-top: 5%;
    padding-bottom: 5%;
}

.title-contact{
    text-align: center;
    font-family: "HelveticaBlackCond";
    font-size: 3em;
    font-style: normal;
    font-weight: 900;
    line-height: 150%;
    letter-spacing: -0.528px;
    background: linear-gradient(180deg, #FF002F 0%, #F05 48.56%, #FF8118 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle-contact{
    color: #333333;
    text-align: justify;
    font-family: "HelveticaLight";
    font-size: 32px;
    font-style: normal;
    font-weight: 200;
    line-height: 120%;
    letter-spacing: -0.352px;
}

.container-form{
    border-radius: 24px;
    border: 1px solid var(--Gray-5, #E0E0E0);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    padding-top: 5%;
    padding-left: 8%;
    padding-right: 8%;
    padding-bottom: 10%;
}

.question-text{
    color: #0E2A3F;
    font-family: "HelveticaLight";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 99%;
}

.answer-block{
    background: linear-gradient(white, white) padding-box,
              linear-gradient(180deg, rgba(255, 0, 47, 1), rgba(255, 0, 85, 1), rgba(255, 129, 24, 1))  border-box;
    border-radius: 24px;
    border: 1px solid transparent;
    width: 100%;
    height: 50px;  
    font-family: "HelveticaLight";
    padding-left: 2%;
    box-sizing: border-box;
}


.answer-block-mail{
    background: linear-gradient(white, white) padding-box,
              linear-gradient(180deg, rgba(255, 0, 47, 1), rgba(255, 0, 85, 1), rgba(255, 129, 24, 1))  border-box;
    border-radius: 24px;
    border: 1px solid transparent;
    width: 100%;
    height: 50px;  
    font-family: "HelveticaLight";
    padding-left: 2%;
    box-sizing: border-box;
}

.answer-block-tel-select{
    background: linear-gradient(white, white) padding-box,
              linear-gradient(180deg, rgba(255, 0, 47, 1), rgba(255, 0, 85, 1), rgba(255, 129, 24, 1)) border-box !important;
    border-radius: 24px;
    border: 1px solid transparent !important;
    width: 100%;
    height: 50px;
    font-family: "HelveticaLight";
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
    box-sizing: border-box;
    cursor: pointer;
}

.answer-block-tel-input{
    background: linear-gradient(white, white) padding-box,
              linear-gradient(180deg, rgba(255, 0, 47, 1), rgba(255, 0, 85, 1), rgba(255, 129, 24, 1))  border-box;
    border-radius: 24px;
    border: 1px solid transparent;
    width: 100%;
    height: 50px;
    font-family: "HelveticaLight";
    padding: 0 15px;
    font-size: 16px;
    box-sizing: border-box;
}

.answer-block-message{
    background: linear-gradient(white, white) padding-box,
              linear-gradient(180deg, rgba(255, 0, 47, 1), rgba(255, 0, 85, 1), rgba(255, 129, 24, 1))  border-box;
    border-radius: 24px;
    width: 100%;
    height: 140px;
    border: 1px solid transparent;
    font-family: "HelveticaLight";
    padding: 15px;
    box-sizing: border-box;
    resize: vertical;
}



.send-button-full {
    background-color: transparent;
    align-self: flex-end;
    margin-left: 60%;
    border: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 30px;
    width: auto;
    padding: 0;
    cursor: pointer;
}

.send-button {
    background: linear-gradient(white, white) padding-box,
              linear-gradient(180deg, rgba(255, 0, 47, 1), rgba(255, 0, 85, 1), rgba(255, 129, 24, 1)) border-box;
    border-radius: 24px;
    border: 1px solid transparent;
    width: 212px;
    height: 51px;
    text-align: center;
    color: #FF002F;
    font-family: "Helvetica";
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    line-height: 51px;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.submit-image {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.submit-image img {
    margin-bottom: 1px;
    vertical-align: middle;
}

/* Efecto hover */
.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 47, 0.2);
}

/* Estado deshabilitado */
.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Cards*/

.card{
    color: #ffffff;
    border-radius: 24px;
    border: 1px solid transparent;
    background: linear-gradient(180deg, rgba(255, 0, 47, 1), rgba(255, 0, 85, 1), rgba(255, 129, 24, 1)) ;
    padding-bottom: 1% !important;
    width: 110%;
    height: 78%;
}

.card-body{
    padding-bottom: 0% !important;
    padding-left: 8%;
    padding-right: 2%;
    padding-top: 5%;
}

.card-title{
    font-family: "HelveticaLight";
    font-size: 1.7em;
}

.card-text{
    font-family: "Helvetica";
    padding-bottom: 0% !important;
}

.card-image{
    padding-top: 0%;
    padding-bottom: 0% !important;
}

.container-cards-movil{
    padding-left: 8%;
    padding-right: 8%;
}

/* Footer */

.tda-icon{
    width: 90%;
    padding-left: 20%;
}

.social-title{
    text-align: center;
    font-family: "HelveticaBlackCond";
    font-size: 2em;
    padding-right: 9%;
}

.icon-socialmedia{
    width: 130%;
}

.footer-text{
    color:  #333333;
    font-family: "Helvetica";
    font-size: 1em;
    font-style: normal;
    font-weight: 300;
    line-height: 5px;
}



.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-container {
    background-color: white;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: default;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s ease-out 0.1s both;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    object-fit: contain;
}

.modal-title {
    font-family: "HelveticaLight";
    font-size: 3.5rem;
    font-weight: 200;
    line-height: 1.1;
    background: linear-gradient(180deg, #FF002F 0%, #F05 48.56%, #FF8118 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 15px 0;
}

.modal-subtitle {
    color: #0E2A3F;
    font-family: "Helvetica";
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.modal-message {
    color: #0E2A3F;
    font-family: "HelveticaLight";
    font-size: 1.4rem;
    font-weight: 200;
    line-height: 1.4;
    margin: 0;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.phone-container {
    width: 100%;
}

.phone-row {
    margin: 0 -5px;
}

.phone-hint {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 5px;
    font-family: "HelveticaLight";
}

.send-button-mobile {
    background: linear-gradient(white, white) padding-box,
              linear-gradient(180deg, rgba(255, 0, 47, 1), rgba(255, 0, 85, 1), rgba(255, 129, 24, 1)) border-box;
    border-radius: 24px;
    border: 1px solid transparent;
    padding: 12px 30px;
    color: #FF002F;
    font-family: "Helvetica";
    font-size: 1em;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 51px;
}

.send-button-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 47, 0.2);
}

.answer-block-tel-select:focus,
.answer-block-tel-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 47, 0.1);
}


/* Pantallas muy pequeñas (menos de 310px) */
@media screen and (max-width:310px) {
    .form-desktop{
        display: none;
    }

    .title-contact{
        font-size: 1.9em;
    }

    .subtitle-contact{
        font-size: 1.5em;
    }

    .container-space{
        margin-left: 3%;
        margin-right: 3%;
        padding-top: 5%;
        padding-bottom: 5%;
    }

    .question-text{
        font-size: 1em;
    }

    .answer-block,
    .answer-block-mail{
        height: 45px;
        padding-left: 4%;
        font-size: 14px;
    }

    .phone-row {
        flex-direction: column;
        margin: 0;
    }
    
    .phone-row .col-5,
    .phone-row .col-7,
    .phone-row .col-4,
    .phone-row .col-8 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0;
        margin-bottom: 10px;
    }
    
    .answer-block-tel-select,
    .answer-block-tel-input {
        height: 45px;
        font-size: 14px;
    }
    
    .answer-block-message{
        height: 120px;
        padding-left: 4%;
    }

    .send-button-full {
        margin-left: 15%;
        justify-content: center;
    }
    
    .send-button {
        width: 180px;
        height: 45px;
        line-height: 45px;
        font-size: 0.9em;
    }
    
    .submit-image {
        display: none;
    }

    .modal-container {
        max-width: 280px;
        padding: 25px 15px;
    }
    
    .modal-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
    
    .modal-message {
        font-size: 0.9rem;
    }

    .img-wait{
        width: 35%;
    }

    .cards-desktop{
        display: none;
    }

    .card{
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .card-body{
        padding: 5% !important;
    }

    .card-title{
        font-size: 1.5em;
    }

    .card-text{
        font-size: 1em;
    }

    .footer-desktop{
        display: none;
    }

    .tda-icon{
        width: 240%;
        padding-left: 0%;
        margin-top: 1%;
    }

    .social-title{
        text-align: right;
        font-family: "HelveticaBlackCond";
        font-size: 1.2em;
        padding-right: 0%;
    }

    .icon-socialmedia{
        width: 310%;
    }

    .footer-text{
        font-size: 0.7em;
        line-height: 2px;
    }
}

@media screen and (min-width:310px) and (max-width:389px) {
    .form-desktop{
        display: none;
    }

    .title-contact{
        font-size: 1.9em;
    }

    .subtitle-contact{
        font-size: 1.5em;
    }

    .container-space{
        margin-left: 3%;
        margin-right: 3%;
        padding-top: 5%;
        padding-bottom: 5%;
    }

    .question-text{
        font-size: 1em;
    }

    .answer-block,
    .answer-block-mail{
        height: 45px;
        padding-left: 4%;
        font-size: 14px;
    }

    .phone-row {
        flex-direction: column;
        margin: 0;
    }
    
    .phone-row .col-5,
    .phone-row .col-7,
    .phone-row .col-4,
    .phone-row .col-8 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0;
        margin-bottom: 10px;
    }
    
    .answer-block-tel-select,
    .answer-block-tel-input {
        height: 45px;
        font-size: 14px;
    }
    
    .answer-block-message{
        height: 120px;
        padding-left: 4%;
    }

    .send-button-full {
        margin-left: 15%;
        justify-content: center;
    }
    
    .send-button {
        width: 190px;
        height: 45px;
        line-height: 45px;
        font-size: 0.95em;
    }
    
    .submit-image {
        display: none;
    }

    .modal-container {
        max-width: 300px;
        padding: 30px 20px;
    }
    
    .modal-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .modal-subtitle {
        font-size: 1.1rem;
    }
    
    .modal-message {
        font-size: 1rem;
    }

    .img-wait{
        width: 35%;
    }

    .cards-desktop{
        display: none;
    }

    .card{
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .card-body{
        padding: 5% !important;
    }

    .card-title{
        font-size: 1.5em;
    }

    .card-text{
        font-size: 1em;
    }

    .footer-desktop{
        display: none;
    }

    .tda-icon{
        width: 180%;
        padding-left: 0%;
        margin-top: 1%;
    }

    .social-title{
        text-align: right;
        font-family: "HelveticaBlackCond";
        font-size: 1.2em;
        padding-right: 0%;
    }

    .icon-socialmedia{
        width: 190%;
    }

    .footer-text{
        font-size: 0.8em;
        line-height: 2px;
    }
}

@media screen and (min-width:390px) and (max-width:426px) {
    .form-desktop{
        display: none;
    }

    .title-contact{
        font-size: 1.9em;
    }

    .subtitle-contact{
        font-size: 1.5em;
    }

    .container-space{
        margin-left: 3%;
        margin-right: 3%;
        padding-top: 5%;
        padding-bottom: 5%;
    }

    .question-text{
        font-size: 1em;
    }

    .answer-block,
    .answer-block-mail{
        height: 50px;
        padding-left: 4%;
    }

    .phone-row {
        margin: 0 -5px;
    }
    
    .phone-row .col-5 {
        padding-right: 5px;
        flex: 0 0 40%;
        max-width: 40%;
    }
    
    .phone-row .col-7 {
        padding-left: 5px;
        flex: 0 0 60%;
        max-width: 60%;
    }
    
    .answer-block-tel-select {
        font-size: 13px;
        padding: 0 5px;
        background-position: right 5px center;
    }
    
    .answer-block-tel-input {
        font-size: 15px;
        padding: 0 10px;
    }
    
    .answer-block-message{
        height: 140px;
        padding-left: 4%;
    }

    .send-button-full {
        margin-left: 30%;
        justify-content: center;
    }
    
    .send-button {
        width: 200px;
        height: 50px;
        line-height: 50px;
        font-size: 1.1em;
    }
    
    .submit-image {
        display: none;
    }

    .modal-container {
        max-width: 320px;
        padding: 30px 20px;
    }
    
    .modal-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .modal-subtitle {
        font-size: 1.1rem;
    }
    
    .modal-message {
        font-size: 1rem;
    }

    .img-wait{
        width: 30%;
    }

    .cards-desktop{
        display: none;
    }

    .card{
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .card-body{
        padding: 5% !important;
    }

    .card-title{
        font-size: 1.5em;
    }

    .card-text{
        font-size: 1.1em;
    }

    .footer-desktop{
        display: none;
    }

    .tda-icon{
        width: 150%;
        padding-left: 0%;
        margin-top: 1%;
    }

    .social-title{
        text-align: center;
        font-family: "HelveticaBlackCond";
        font-size: 1.5em;
        padding-right: 2%;
    }

    .icon-socialmedia{
        width: 150%;
    }

    .footer-text{
        font-size: 0.8em;
        line-height: 8px;
    }
}

@media screen and (min-width: 427px) and (max-width: 767px) {
    .form-desktop{
        display: none;
    }

    .subtitle-contact{
        font-size: 1.9em;
    }

    .send-button-full {
        margin-left: 45%;
        justify-content: center;
    }
    
    .send-button {
        width: 220px;
        height: 51px;
        line-height: 51px;
        font-size: 1.2em;
    }
    
    .submit-image {
        display: none;
    }

    .container-space{
        margin-left: 6%;
        margin-right: 6%;
        padding-top: 5%;
        padding-bottom: 5%;
    }

    .phone-row {
        margin: 0 -8px;
    }
    
    .phone-row .col-5 {
        padding-right: 8px;
        flex: 0 0 35%;
        max-width: 35%;
    }
    
    .phone-row .col-7 {
        padding-left: 8px;
        flex: 0 0 65%;
        max-width: 65%;
    }
    
    .answer-block-tel-select {
        font-size: 14px;
    }

    .modal-container {
        max-width: 400px;
        padding: 35px 25px;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .modal-title {
        font-size: 2.5rem;
    }
    
    .modal-subtitle {
        font-size: 1.3rem;
    }
    
    .modal-message {
        font-size: 1.1rem;
    }

    .img-wait{
        width:18%;   
    }

    .cards-desktop{
        display: none;
    }

    .card{
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .footer-desktop{
        display: none;
    }

    .tda-icon{
        width: 140%;
        padding-left: 0%;
        margin-top: 10%;
    }

    .social-title{
        text-align: center;
        font-family: "HelveticaBlackCond";
        font-size: 1.5em;
        padding-right: 40%;
    }

    .icon-socialmedia{
        width: 140%;
    }

    .footer-text{
        font-size: 0.8em;
        line-height: 9px;
    }
}

@media screen and (min-width: 768px) and (max-width: 989px) {
    .form-desktop{
        display: none;
    }

    .subtitle-contact{
        font-size: 1.9em;
    }

    .send-button-full {
        margin-left: 65%;
        justify-content: center;
    }
    
    .send-button {
        width: 230px;
        height: 51px;
        line-height: 51px;
        font-size: 1.2em;
    }
    
    .submit-image {
        display: inline-block;
        margin-left: 10px;
    }

    .phone-row .col-5 {
        flex: 0 0 30%;
        max-width: 30%;
    }
    
    .phone-row .col-7 {
        flex: 0 0 70%;
        max-width: 70%;
    }

    .modal-container {
        max-width: 450px;
        padding: 40px 30px;
    }
    
    .modal-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .modal-title {
        font-size: 3rem;
    }
    
    .modal-subtitle {
        font-size: 1.5rem;
    }
    
    .modal-message {
        font-size: 1.2rem;
    }

    .cards-desktop{
        display: none;
    }

    .container-cards-movil {
        padding-left: 8%;
        padding-right: 13%;
    }

    .footer-desktop{
        display: none;
    }

    .tda-icon{
        width: 120%;
        padding-left: 0%;
    }

    .social-title{
        text-align: center;
        font-family: "HelveticaBlackCond";
        font-size: 2em;
        padding-right: 10%;
    }

    .icon-socialmedia{
        width: 100%;
    }

    .footer-text{
        font-size: 0.9em;
        line-height: 10px;
    }
}

@media screen and (min-width: 990px) and (max-width: 1439px) {
    .form-movil{
        display: none !important;
    }

    .send-button-full {
        margin-left: 50% !important;
    }

    .modal-container {
        max-width: 450px;
        padding: 40px 30px;
    }
    
    .modal-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .modal-title {
        font-size: 3rem;
    }
    
    .modal-subtitle {
        font-size: 1.5rem;
    }
    
    .modal-message {
        font-size: 1.2rem;
    }

    .cards-movil{
        display: none;
    }

    .card{
        width: 115%;
        height: 67%;
    }

    .card-body{
        padding-top: 8%;
    }

    .card-title{
        font-size: 1.1em;
    }

    .card-text{
        font-size: 0.8em;
    }

    .footer-movil{
        display: none;
    }

    .tda-icon{
        width: 90%;
        padding-left: 20%;
    }

    .social-title{
        font-size: 1.4em;
        padding-right: 1%;
    }

    .icon-socialmedia{
        width: 180%;
    }

    .footer-text{
        font-size: 0.9em;
        line-height: 8px;
    }
}

@media screen and (min-width: 1440px) and (max-width: 1900px) {
    .form-movil{    
        display: none !important;
    }

    .send-button-full {
        margin-left: 64%;
    }

    .modal-container {
        max-width: 500px;
        padding: 50px 40px;
    }
    
    .modal-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }
    
    .modal-title {
        font-size: 3.5rem;
    }
    
    .modal-subtitle {
        font-size: 1.8rem;
    }
    
    .modal-message {
        font-size: 1.4rem;
    }

    .cards-movil{
        display: none;
    }

    .card{
        width: 109%;
        height: 78%;
    }

    .card-title{
        font-size: 1.7em;
    }

    .card-text{
        font-size: 1em;
    }

    .footer-movil{
        display: none;
    }

    .tda-icon{
        width: 90%;
        padding-left: 20%;
    }

    .social-title{
        font-size: 1.8em;
        padding-right: 15%;
    }

    .icon-socialmedia{
        width: 100%;
    }

    .footer-text{
        font-size: 1em;
        line-height: 7px;
    }
}

@media screen and (min-width: 1901px) and (max-width: 3000px) {
    .form-movil{    
        display: none !important;
    }

    .send-button-full {
        margin-left: 70%;
    }

    .modal-container {
        max-width: 550px;
        padding: 60px 50px;
    }
    
    .modal-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 30px;
    }
    
    .modal-title {
        font-size: 4rem;
    }
    
    .modal-subtitle {
        font-size: 2rem;
    }
    
    .modal-message {
        font-size: 1.6rem;
    }

    .cards-movil{
        display: none;
    }

    .card{
        width: 100%;
        height: 89%;
    }

    .card-title{
        font-size: 1.9em;
    }

    .card-text{
        font-size: 1.5em;
    }

    .footer-movil{
        display: none;
    }

    .tda-icon{
        width: 90%;
        padding-left: 20%;
    }

    .social-title{
        font-size: 2em;
        padding-right: 17%;
    }

    .icon-socialmedia{
        width: 100%;
    }

    .footer-text{
        font-size: 1.2em;
        line-height: 15px;
    }
}

/* Pantallas muy altas */
@media screen and (min-height: 800px) and (max-width: 768px) {
    .modal-container {
        max-height: 400px;
    }
}

/* Si el modal es demasiado alto en móviles */
@media screen and (max-height: 600px) and (max-width: 768px) {
    .modal-container {
        padding: 20px 15px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .modal-title {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }
    
    .modal-subtitle {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    
    .modal-message {
        font-size: 0.85rem;
    }
}

/* Asegurar que el contenido nunca se salga */
.modal-container {
    overflow: hidden;
}

.modal-title,
.modal-subtitle,
.modal-message {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* iOS specific styles */
@supports (-webkit-touch-callout: none) {
    .answer-block-tel-select,
    .answer-block-tel-input {
        font-size: 16px;
    }
}

/* Validación visual mejorada */
.answer-block-tel-input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ff3860;
    background: linear-gradient(white, white) padding-box,
              linear-gradient(180deg, #ff3860, #ff3860) border-box;
}

.answer-block-tel-input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #23d160;
    background: linear-gradient(white, white) padding-box,
              linear-gradient(180deg, #23d160, #23d160) border-box;
}


/* En móvil, el botón no debe tener la imagen */
.form-movil .submit-image {
    display: none;
}

.form-movil .send-button-full {
    justify-content: center;
}


/* Asegurar que el botón contenedor no tenga estilos que interfieran */
button.send-button-full {
    background: none;
    border: none;
    font: inherit;
}

/* Asegurar que el input dentro del botón se vea correctamente */
button.send-button-full input.send-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}