.cabezera-contacto{
    
    display: flex;
    align-items: center;
    margin-top: 110px;
}
.contacto {
    padding: 20px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.9)),
        url(../imagenes/ejemplo2.webp);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}
    
.contacto-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: black;
    transition: transform 0.5s ease;
    animation: fadeIn 1s ease-out forwards;
}

.contacto-form {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    min-height: 600px;
}

.contacto-form label {
    color: black;
    margin-bottom: 8px;
    font-weight: bold;
    display: block;
    text-align: left;
}

.contacto-form input, .contacto-form textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: 0px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #b3b6f23a;
}

.contacto-form .btn-enviar {
    padding: 10px 20px;
    background-color: #B3B6F2;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    border-radius: 8px;
    width: 100%; 
}

.contacto-form .btn-enviar:hover {
    background-color: #3038D9;
}

@media (max-width: 768px) {
    .contacto-form h2 {
        font-size: 38px; 
    }
}