.contacto-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    gap: 10%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Contenedor del contacto */
.imagen-container {
    width: 50%;
}

/* Imagen del contacto */
.contacto-dpi {
    width: auto;
    position: relative;
    margin-top: -18vh;
    height: 160vh;
    margin-left: -40vh;
}

/* Formulario de contacto */
.formulario-container-form {
    transform: translateY(27vh);
    width: 80%;
}

.formulario-container {
    width: 50%;
}

.formulario-container h2 {
    font-size: 4vh;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2vh;
    line-height: 5vh;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3vh;
    align-items: center;
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    color: #616161;
    font-size: 2vh;
    padding: 2vh 5vh;
    border-radius: 10vh;
    border: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 15vh;
    max-height: 15vh;
    font-family: inherit;
    font-size: 2vh;
    line-height: 1.4;
    font-weight: 400;
}

.btn-enviar {
    width: 25vh;
    background: var(--primary-dark-blue);
    color: white;
    padding: 2vh 0vh;
    border: none;
    border-radius: 10vh;
    font-size: 2vh;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enviar:hover {
    background: #255990;
    transition: all 0.3s ease;
    transform: scale(1.1);
}

/* Ocultar spinners del input number */
.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

/* Estilos para mensajes de contacto */
.contact-message {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4vh;
    padding: 2vh 3vh;
    border-radius: 1vh;
    font-size: 1.8vh;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
}

.contact-message.show {
    max-height: 20vh;
    opacity: 1;
    transform: translateY(0);
}

.contact-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estilos para el botón de envío */
.btn-enviar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.btn-enviar:disabled .btn-text {
    display: none;
}

.btn-enviar:disabled .btn-loading {
    display: inline-block;
}

/* Animación de carga */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

@media (max-width: 992px) {
    .contact-form {
        width: 80%;
    }
    .contacto-section {
        gap: 0;
        height: 100%;
        flex-direction: column-reverse;
        align-items: center;
    }

    .formulario-container-form {
        transform: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .formulario-container {
        width: 90%;
        padding: 20vh 0 5vh 0;
    }

    .form-group textarea {
        min-height: 10vh;
        max-height: 10vh;
    }

    .contacto-dpi {
        margin-top: -35vw;
        margin-bottom: -42vw;
        height: 150vw;
        margin-left: -45vw;
    }

    .imagen-container {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .formulario-container h2 {
        font-size: 3.5vh;
        line-height: 1;
        margin-bottom: 0vh;
    }

    .contacto-dpi {
        margin-top: -40vw;
        margin-bottom: -55vw;
        height: 200vw;
        margin-left: -75vw;
    }

    .form-group input, .form-group select, .form-group textarea {
        font-size: 1.5vh;
        padding: 1.5vh 2.5vh;
    }

    .form-group textarea {
        font-size: 1.5vh;
    }

    .btn-enviar {
        width: 20vh;
        padding: 2vh 0vh;
        font-size: 2vh;
    }
}