@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

/* RESET DE LA PÁGINA */
.trabaja-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* SECCIÓN HERO CON IMAGEN DE FONDO */
.trabaja-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;        
    background: url('../images/trabaja_con_nosotros.jpeg') no-repeat center center fixed; 
    background-size: cover;
    box-sizing: border-box;
    padding-top: 80px; 
    padding-bottom: 20px; 
}

/* CAPA OSCURA SOBRE LA IMAGEN */
.trabaja-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;    
    background-color: rgba(0, 26, 81, 0.5); 
    z-index: 1;
}

/* CONTENIDO PRINCIPAL */
.trabaja-content {
    position: relative;
    z-index: 2;
    width: 95%;
    max-width: 600px;
}

.trabaja-content h2 {
    color: #FFFFFF;
    text-align: center;
    margin: 20px 0 15px 0; /* Menos margen arriba y abajo */
    font-family: 'Roboto', sans-serif;
    font-size: 28px; /* Un poco más pequeño */
    font-weight: 700;
}

/* CONTENEDOR DEL FORMULARIO */
.form-container {
    width: 100%;
    padding: 25px 30px; /* Menos relleno interno */
    background-color: transparent;
    border-radius: 10px;
    border: 1px solid #ffffff;
    box-sizing: border-box;
}

/* GRUPOS DE INPUTS */
.form-group {
    margin-bottom: 15px; /* Menos separación entre los campos */
    color: #FFFFFF;
}

.form-group label {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: #ffffff;
    display: inline-block;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 15px; /* Campos de texto un poco más delgados */
    border: 1px solid #ffffff;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: transparent;
    color: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
}

.form-control::placeholder {
    color: #ffffff;
    opacity: 0.6;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.form-control:hover,
.form-control:focus {
    background-color: #ffffff;
    color: #001a51;
    border-color: #ffffff;
    outline: none;
}

.form-control:hover::placeholder,
.form-control:focus::placeholder {
    color: #001a51;
    opacity: 0.8;
}

/* TEXTOS DEL FORMULARIO */
.form-text p {
    font-family: 'Roboto Mono', monospace;
    color: #FFFFFF;
    font-size: 13px;
    line-height: 1.4;
    margin: 10px 0; /* Menos margen */
}

/* INPUT TIPO FILE */
.file-group {
    margin-top: 15px; /* Menos margen superior */
}

.custom-file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.custom-file input[type="file"] {
    display: none;
}

.custom-file-label {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.custom-file-label:hover {
    background-color: #ffffff;
    color: #001a51;
    border-color: #ffffff;
}

.file-name {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: #FFFFFF;
    opacity: 0.8;
}

/* BOTÓN DE ENVÍO */
.btn-dark {
    background-color: transparent;
    color: #ffffff;
    padding: 10px 20px; /* Botón un poco más delgado */
    border: 1px solid #ffffff;
    border-radius: 4px;
    cursor: pointer;
    width: 50%;
    display: block;
    margin: 20px auto 0 auto; /* Menos espacio arriba del botón */
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
}

.btn-dark:hover {
    background-color: #ffffff;
    color: #001a51;
}

/* MENSAJE DE ÉXITO */
.success-message {
    display: none;
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
}

.success-message h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.success-message p {
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    opacity: 0.9;
}

/* ANIMACIÓN REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media screen and (max-width: 600px) {
    .form-container {
        padding: 25px 20px;
    }
    
    .btn-dark {
        width: 100%;
    }
}