/* 
   ESTILO GENERAL */
body {
    font-family: "Century Gothic", Arial, sans-serif;
    background-color: #9fa3a7;   /* gris medio corporativo */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 
   TARJETA PRINCIPAL */
.container {
    width: 65%;
    margin: 8vh auto;
    background-color: #ffffff;
    padding: 5vh 3vw;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

@media screen and (max-width: 1023px) {
    .container {
        width: 80%;
        margin: 5vh auto;
        padding: 2vh;
    }
}

/* 
   HEADER CORPORATIVO */
.header {
    display: flex;
    align-items: center;
    gap: 1vw;
    margin-bottom: 25px;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 15px;
}

@media screen and (max-width: 1023px) {
    .header {
        gap: 3vw;
        margin-bottom: 1vh;
        padding-bottom: 1vh;
    }
}

.logo {
    width: 4vw;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width: 1023px) {
    .logo {
        width: 13vw;
    }   
}

.title {
    font-size: 2vw;
    font-weight: 600;
    margin: 0;
    color: #0b2a4a;   /* azul corporativo */
}

@media screen and (max-width: 1023px) {
    .title {
        font-size: 3.5vw;
    }
}

/* 
   TEXTO DESCRIPTIVO */
.description {
    font-size: 1vw;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 30px;
}

@media screen and (max-width: 1023px) {
    .description {
        font-size: 2.2vw;
        line-height: 1.3;
        margin-bottom: 2vh;
    }
}

@media screen and (max-width: 479px) {
    .description {
        font-size: 2.5vw;
        line-height: 1.5;
    }
}

/*
   MENSAJES DE ERROR / ALERTA*/
.error-msg {
    background-color: #ffe6e6;
    border: 1px solid #cc0000;
    color: #990000;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}

@media screen and (max-width: 1023px) {
    .error-msg {
        padding: 0 2vw;
        border-radius: 6px;
        margin-bottom: 2vh;
    }   
}

@media screen and (max-width: 479px) {
    .error-msg {
        padding: 0 3vw;
    }   
}

.error-msg p {
    margin: 1vh 0;
    font-size: 1vw;
}

@media screen and (max-width: 1023px) {
    .error-msg p {
        margin: 1.5vh 0;
        font-size: 2.2vw;
    }   
}

@media screen and (max-width: 479px) {
    .error-msg p {
        font-size: 3vw;
    }   
}

/*
   SECCIONES*/
h2 {
    margin: 1.3vh 0;
    font-size: 22px;
    color: #0b2a4a;
    border-left: 5px solid hwb(210 4% 71%);
    padding-left: .7vw;
}

@media screen and (max-width: 1023px) {
    h2 {
        margin: 1vh 0;
        font-size: 2.7vw;
        border-left: 3px solid hwb(210 4% 71%);
        padding-left: .7vw;
    }   
}

@media screen and (max-width: 479px) {
    h2 {
        font-size: 3.5vw;
    }   
}

/* 
   FORMULARIOS
*/
form {
    margin-bottom: 30px;
}

@media screen and (max-width: 479px) {
    form {
        margin-bottom: 2vh;
    }  
}

label {
    display: block;
    font-size: 1vw;
    font-weight: bold;
    margin-bottom: 6px;
    color: #222222;
}

@media screen and (max-width: 1023px) {
    label {
        font-size: 2vw;
        margin-bottom: 1vh;
    }
}

@media screen and (max-width: 479px) {
    label {
        font-size: 2.7vw;
        margin-bottom: 0;
    }
}

label small {
    font-weight: normal;
    font-size: 12px;
    color: #555555;
}

@media screen and (max-width: 479px) {
    label small {
        font-size: 2.7vw;
    }
}

.file-upload-group {
    margin-top: .8vh;
}

input[type="file"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 1vh .7vw;
    font-size: 1vw;
    border-radius: .5vw;
    border: 1px solid #bbbbbb;
    margin-top: .5vh;
    margin-bottom: 2vh;
    box-sizing: border-box;
}

@media screen and (max-width: 1023px) {
    input[type="file"],
    input[type="password"],
    input[type="text"] {
        padding: .5vh .3vw;
        font-size: 2.2vw;
        margin-bottom: 1.5vh;
    }
}

@media screen and (max-width: 479px) {
    input[type="file"],
    input[type="password"],
    input[type="text"] {
        padding: .5vh .3vw;
        font-size: 3vw;
        margin-bottom: 1.5vh;
    }
}

input:focus {
    outline: none;
    border-color: #0b2a4a;
    box-shadow: 0 0 5px rgba(11, 42, 74, 0.4);
}

/* 
   CAPTCHA
*/
.captcha-box {
    background-color: #f3f5f7;
    border: 1px dashed #999999;
    padding: 1.5vh .8vw;
    border-radius: .5vw;
    margin-bottom: 20px;
}

@media screen and (max-width: 1023px) {
    .captcha-box {
        padding: 2vh 2vw;
        border-radius: .5vw;
        margin-bottom: 2vh;
    }   
}

@media screen and (max-width: 479px) {
    .captcha-box {
        padding: 1vh 2vw;
    }   
}

.captcha-question {
    display: block;
    font-size: 1vw;
    font-weight: bold;
    color: #0b2a4a;
    margin-top: .6vh;
    margin-bottom: .6vh;
}

@media screen and (max-width: 479px) {
    .captcha-question {
        font-size: 2.5vw;
        font-weight: bold;
        color: #0b2a4a;
    }   
}
/* 
   BOTONES
*/
button {
    background-color: #0b2a4a;
    color: #ffffff;
    font-size: 1vw;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 1.5vh 1.7vw;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

@media screen and (max-width: 1023px) {
    button {
        font-size: 2vw;
        padding: 1.2vh 3vw;
    }
}

@media screen and (max-width: 479px) {
    button {
        font-size: 2.5vw;
        padding: 1.2vh 3vw;
    }
}

button:hover {
    background-color: #103c66;
}

button:active {
    transform: scale(0.98);
}

/* 
   FOOTER
*/
.footer {
    margin-top: 1vh;
    text-align: center;
    font-size: 1vw;
    color: #555555;
    border-top: 1px solid #dddddd;
    padding-top: 1vh;
}

@media screen and (max-width: 1023px) {
    .footer {
        margin-top: 1vh;
        font-size: 2vw;
    }   
}

@media screen and (max-width: 479px) {
    .footer {
        font-size: 2.5vw;
    }   
}

/*
   DRAG & DROP ARCHIVOS
*/

.drop-zone {
    display: flex;
    position: relative;
    border: 2px dashed #0b2a4a;
    border-radius: 8px;
    padding: 30px;
    justify-content: center;
    cursor: pointer;
    background-color: #f8f9fb;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

@media screen and (max-width: 479px) {
    .drop-zone {
        padding: 5vh 2vw;
    }
}

.drop-zone:hover {
    background-color: #eef3f8;
}

.drop-zone.dragover {
    background-color: #e1ebf5;
    border-color: #103c66;
}

.drop-text {
    font-size: 1vw;
    color: #0b2a4a;
    font-weight: 600;
}

@media screen and (max-width: 1023px) {
    .drop-text {
        font-size: 2.2vw;
    }
}

@media screen and (max-width: 479px) {
    .drop-text {
        font-size: 2.5vw;
    }
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    z-index: -1;
}

.selected-file-name {
    margin-top: 10px;
    font-weight: bold;
    color: #0b2a4a;
    text-align: center;
}

@media screen and (max-width: 479px) {
    .selected-file-name {
        margin-top: 1vh;
        font-size: 3vw;
    }  
}

.selected-file-name.success {
    color: #28a745;
}

.drop-zone.success {
    border-color: #28a745;
    background-color: #e6ffec;
}

