/* General */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    /* Fuente legible */
    background-color: #f5f5f5;
    /* Fondo neutro */
}

/* Contenedor principal */
.contenedor {
    width: 100%;
    height: 100%;
    padding-top: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(../assets/banner.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Logo */
.contenedor img {
    height: auto;
    max-height: 100px;
    margin-bottom: 40px;
}

/* Caja de formulario */
.inicio {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 500px;
    /* Tamaño fijo */
    width: 400px;
    /* Tamaño fijo */
    border-radius: 7%;
    /* Bordes redondeados */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Sombra para resaltar */
    overflow: hidden;
    /* Para que el contenido no desborde el borde redondeado */
}

/* Encabezado */
/* Encabezado */
#top {
    background-color: #4a4a4a;
    /* Gris oscuro más neutro */
    width: 100%;
    padding: 20px 0;
    /* Espaciado interno para centrar mejor */
    border-top-left-radius: 7%;
    /* Coincide con .inicio */
    border-top-right-radius: 7%;
    text-align: center;
    margin-bottom: 35px;
    /* Separación con los campos */
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    /* Pequeño efecto en el borde */
}

#top h1 {
    color: white;
    font-size: 24px;
    /* Ajuste del tamaño de letra */
    font-weight: bold;
    /* Más énfasis */
    margin: 0;
}


/* Campos de texto y selección */
.nit {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.nit h3 {
    margin: 0;
    margin-right: 10px;
    font-size: 16px;
    padding-left: 43px;
}

.empresa {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.empresa h3 {
    margin: 0;
    margin-right: 10px;
    font-size: 16px;
}


input[type="text"],
select {
    flex: 1;
    /* Ocupa el espacio restante */
    width: 70%;
    /* Compatibilidad */
    padding: 10px 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Input de archivo */
input[type="file"] {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Botón */
button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 200px;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
}

/* Adaptabilidad */
@media (max-width: 600px) {
    .contenedor img {
        max-height: 80px;
    }

    .inicio {
        width: 90%;
        /* Se adapta a pantallas pequeñas */
        height: auto;
        /* Permite ajustar mejor el contenido */
    }

    #top h1 {
        font-size: 20px;
    }

    input[type="text"],
    select {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }
}

.sub {
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
}

.a {
    display: flex;
    flex-direction: column;
    align-items: center;
}