/* Vista móvil */

.hero-contacto {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 40vh;
    color: white;
    overflow: hidden;
    padding: 40px 20px;
    background-image: url(../img/contacto.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #212529;
}

.hero-contacto::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-contenido {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-contacto h1 {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-contacto p {
    font-size: 1rem;
    max-width: 500px;
    opacity: 0.9;
    line-height: 1.6;
}

.seccion-contacto {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
}

.formulario-contacto {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mensaje-exito,
.mensaje-error {
    width: 100%;
    max-width: 620px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mensaje-exito {
    background-color: #e0ffe5;
    color: #27ae60;
}

.mensaje-error {
    background-color: #ffe0e0;
    color: #c0392b;
}

.formulario-contacto .campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.formulario-contacto .campo label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.formulario-contacto .campo input,
.formulario-contacto .campo textarea {
    width: 100%;
    padding: 13px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.formulario-contacto .campo input:focus,
.formulario-contacto .campo textarea:focus {
    border-color: #FFD447;
    box-shadow: 0 0 0 3px rgba(255, 212, 71, 0.25);
}

.formulario-contacto .campo input::placeholder,
.formulario-contacto .campo textarea::placeholder {
    color: #bbb;
}

.formulario-contacto .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    background-color: #FFD447;
    color: #212529;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.formulario-contacto .btn:hover {
    background-color: #E6B93C;
    transform: scale(1.02);
}

/* Vista tablet */
@media screen and (min-width: 768px) {

    .hero-contacto {
        min-height: 45vh;
    }

    .hero-contacto h1 {
        font-size: 2.6rem;
    }

    .hero-contacto p {
        font-size: 1.1rem;
    }
}

/* Vista escritorio */
@media screen and (min-width: 1024px) {

    .hero-contacto {
        min-height: 50vh;
    }

    .hero-contacto h1 {
        font-size: 3rem;
    }

    .hero-contacto p {
        font-size: 1.15rem;
        max-width: 600px;
    }

    .seccion-contacto {
        padding: 70px 20px;
    }

    .formulario-contacto .campo input,
    .formulario-contacto .campo textarea {
        padding: 14px 18px;
    }
}
