/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    /*display: flex;*/
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

form {
    max-width: 400px;
    width: 100%;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

select, input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px; /* Evita zoom en móviles */
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

#downloadBtn {
    margin-top: 20px;
    background-color: #28a745;
}

#downloadBtn:hover {
    background-color: #218838;
}

/* Estilos para teléfono móvil */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    form {
        padding: 15px;
        max-width: 100%;
    }

    select, input[type="password"], button {
        font-size: 16px; /* Evita zoom en móviles */
    }
}

/* Estilos para pantallas muy pequeñas */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    form {
        padding: 10px;
        border-radius: 4px;
    }

    select, input[type="password"] {
        padding: 8px;
        margin-bottom: 10px;
    }

    button {
        padding: 10px;
    }
}