 /*-------------------------------------------------------------------------------- BODY ----------------------------------------------------------------------------*/
 
 body {
     background-image: url(../img/img_main/contacto-bg.png);
     background-attachment: fixed;
     padding-top: 3.5rem;
 }

 body .navbar {
     background-color: var(--color-primary-1) !important;
     box-shadow: var(--shadow-sm);
     padding: 0 0;
 }

 .h1-contact {
     color: #FFFFFF;
     font-size: 3em;
     font-weight: 700;
     text-align: center;
 }
 
 @media (max-width: 800px) {
     .h1-contact {
         width: 90%;
         font-size: 2.8em;
     }
 }
 
 @media (max-width: 600px) {
     .h1-contact {
         font-size: 2.5em;
     }
 }
 
 @media (max-width: 400px) {
     .h1-contact {
         font-size: 2em;
     }
 }
 /*-------------------------------------------------------------------------------- ROW ----------------------------------------------------------------------------*/
 
 .contact-col {
     width: 50%;
     height: auto;
     float: left;
     padding: 15px;
 }
 
 @media(max-width: 800px) {
     .contact-col {
         width: 100%;
     }
 }
 
 .contact-box {
     /*background-color: rgb(25, 70, 140, 0.8);*/
     background-color: var(--color-primary-3);
     color: #FFFFFF;
     font-size: 1.167rem;
     border: none;
     padding: 35px;
     height: 100%;
 }
 
 @media(max-width: 800px) {
     .contact-box {
         margin-bottom: 30px;
         font-size: 1.167rem;
     }
 }
 /*-------------------------------------------------------------------------------- FORM ----------------------------------------------------------------------------*/
 
 .contact-form-section {
    background-color: var(--color-primary-3);
    padding: 0 0;
    color: white;
    margin-top: -7px;
}

.contact-form-section .h1-box {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.contact-form-section .h1-contact {
    font-family: var(--font-primary);
    font-size: 2.25rem;
    color: white;
    margin: 0 auto 0 auto;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    display: block;
}

.title-underline {
    width: 250px;
    height: 3px;
    background-color: white;
    margin: 0.5rem auto 2rem;
    border-radius: 2px;
}

.contact-form-section .h2-contact {
    font-family: var(--font-secondary);
    font-size: 1.167rem;
    color: white;
}

.contact-form-new .form-group {
    position: relative;
    margin-bottom: 2rem;
}

.contact-form-new .form-control {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid white;
    border-radius: 0;
    color: white;
    padding-left: 0;
    padding-right: 0;
    height: auto;
    line-height: 1.5;
}

.contact-form-new textarea.form-control {
    border: 2px solid white;
    border-radius: 4px;
    padding: 10px;
}

.contact-form-new .field-contactform-body label {
    top: -2rem;
}

.contact-form-new .field-contactform-body textarea.form-control {
    margin-top: 1.167rem;
    padding-top: 6px;
}

.contact-form-new .form-control:focus {
    background-color: transparent;
    border-color: white;
    box-shadow: none;
    color: white;
}

.contact-form-new .form-control::placeholder {
    color: transparent;
}

.contact-form-new label {
    font-family: var(--font-secondary);
    color: white;
    font-size: 1.167rem;
    font-weight: 700;
    position: absolute;
    top: -1.2em;
    left: 0;
    transition: all 0.3s ease;
}

.contact-form-new .form-control:not(:placeholder-shown) + label,
.contact-form-new .form-control:focus + label {
    top: -1.2em;
    font-size: 1.167rem;
    font-weight: 700;
    color: white;
}

.contact-form-new .help-block {
    color: #ffc107;
    font-size: 0.8rem;
    padding-left: 0;
}

.contact-form-new .btn-primary {
    background-color: var(--color-primary-5);
    border: none;
    border-radius: 25px;
    padding: 10px 80px;
    font-family: var(--font-secondary);
    font-weight: bold;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.contact-form-new .btn-primary:hover {
    background-color: #d63384; /* Un poco más oscuro para el hover */
}

.center-captcha {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-form-section .alert {
    margin-top: 20px;
}

input[type=submit] {
    background-color: var(--color-secondary-5);
    color: #FFFFFF;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #d63384;
    border: none;
}

.container {
    background-color: transparent;
    padding: 20px;
}

.spam-back-color{
    background-color: var(--index-blue);
}
#button-submit{
    background-color: var(--index-blue);
}
 /*-------------------------------------------------------------------------------- RESPONSIVE ----------------------------------------------------------------------------*/
 @media (min-width: 1014px) and (max-width: 1200px) {
     body .navbar {
         padding-top: 8px;
         padding-bottom: 8px;
     }
 }

/* Tablets (768px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    body .navbar {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .mapa iframe {
        height: 400px;
    }

    .contact-form-section {
        padding: 2.5rem 2rem;
    }

    .contact-form-section .h1-contact {
        font-size: 2rem;
    }

    .title-underline {
        width: 180px;
        margin-bottom: 2rem;
    }
}

/* Móviles pequeños (320px) y medianos */
@media (max-width: 575.98px) {
    body .navbar {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .mapa iframe {
        height: 250px;
    }

    .contact-form-section {
        padding: 1.5rem 1rem;
    }

    /* Forzar que las columnas de nombre y apellido se apilen */
    .name-fields .col-6,
    .contact-form-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-form-new .btn-primary {
        width: 100%;
        padding: 12px 20px;
        font-size: 1.1rem;
    }

    .contact-form-section .h1-contact {
        font-size: 1.65rem;
        margin-bottom: 0.8rem;
    }

    .title-underline {
        width: 120px;
        height: 2px;
        margin: 0 auto 1.2rem;
    }

    .contact-form-section .h2-contact {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .contact-form-new .form-group {
        margin-bottom: 1.5rem;
    }

    .contact-form-new .form-control {
        font-size: 0.95rem;
    }

    .contact-form-new label {
        font-size: 1rem;
    }
}

/* Dispositivos muy pequeños (320px o menos) */
@media (max-width: 320px) {
    body .navbar {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .contact-form-section .h1-contact {
        font-size: 1.5rem;
    }

    .contact-form-section .h2-contact {
        font-size: 0.85rem;
    }

    .contact-form-new .btn-primary {
        padding: 10px 15px;
        font-size: 1rem;
    }
}
 /*-------------------------------------------------------------------------------- MAPS ----------------------------------------------------------------------------*/
